Incomplete installation on MacOS, file permission issue ?

Hi All,

After hours of reading this forum, I could not find a solution to an annoying issue I have with nRF Connect SDK installation on macOS Sonoma.

Please kindly note that I don't want to go through manual installation ;-)

Whenever I try to install the SDK (both via the nRF Connect for desktop App or from with Visual Studio Code):

- in my development account, the SDK directory is not populated at first and further, any attempt to "Update SDK" does not populate it neither

- in my "root" account, the SDK directory is properly populated and the visual studio environment is ready for development.

    - but when back in my account, the visual studio nRF panel, "WELCOME" zone, only allows to create a blank application: the "copy from sample" is missing.

I have redone the automatic process many times, rebooted in between, deleted the installed directories, ...

No way to succeed

Any help would be much appreciated !

Parents
  • Hi Jean,

    I am a Mac user (M1 Macboo+Sonoma) with an Admin account. There is no problem in my experience.

    nRF Connect Extension supports full management with nRF Connection SDK(installation, toolchain and so on). nRF Connect for Desktop->ToolChain Manager app is not needed anymore.

    For the problem you experienced, I also suspect it is permission-related. Could you try to assign your development account as Admin using your "root account"? then reinstall NCS and Toolchain in VS code through the nRF Connect Extension.

    Best regards,

    Charlie

  • Hi Charlie,

    Thanks for the hint.

    I have tried giving my account the Administration privileges, deleting the nRF Connect for Desktop and then reinstalling it.

    Then deleting the nordic directory and reinstalling everything under my account (not root).

    But, still the same issue !

    Any other idea ?

    TIA

  • Hi TIA,

    I have installed the NCS under opt/ncs folder.

    I can see and click on "Copy a sample". Do you have any screenshots or error reminders that can show?

    Best regards,

    Charlie

  • Hi Charlie,

    Yes, this is what I can see when logged in the root account after the "root installation" but when under my account and after the installation from my account, the "copy a sample" is missing

    So, still at pain on this subject

    Thank you In Advance

    JRSN

  • Hi again,

    I might have made one good move

    I have deleted the Nordic directory and then, from within VS Studio code, I have tried to install the toolchain and then the SDK

    But when trying to install the SDK, I get an error ("SDK installation failed"), the v2.5.0 directory remains empty and I get these error messages :

    ...

    ...

    Updating files: 100% (8223/8223), done.
    Traceback (most recent call last):
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1296, in __init__
    validate(source_data)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 474, in validate
    raise ManifestVersionError(min_version_str)
    west.manifest.ManifestVersionError: ('0.13', None)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File "/opt/nordic/ncs/toolchains/20d68df7e5/bin/west", line 8, in <module>
    sys.exit(main())
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 781, in main
    app.run(argv or sys.argv[1:])
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 106, in run
    self.run_command(argv)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 336, in run_command
    cmd.run(args, unknown, self.topdir, manifest=self.manifest)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/commands.py", line 140, in run
    self.do_run(args, unknown)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/project.py", line 198, in do_run
    topdir = self.bootstrap(args)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/project.py", line 286, in bootstrap
    projects = Manifest.from_file(temp_manifest,
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1153, in from_file
    return Manifest(**kwargs)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1298, in __init__
    raise ManifestVersionError(mv.version, file=source_file) from mv
    west.manifest.ManifestVersionError: ('0.13', PosixPath('/opt/nordic/ncs/v2.5.99-dev1/.west/manifest-tmp/west.yml'))

    Is this of any helps for someone ?

Reply
  • Hi again,

    I might have made one good move

    I have deleted the Nordic directory and then, from within VS Studio code, I have tried to install the toolchain and then the SDK

    But when trying to install the SDK, I get an error ("SDK installation failed"), the v2.5.0 directory remains empty and I get these error messages :

    ...

    ...

    Updating files: 100% (8223/8223), done.
    Traceback (most recent call last):
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1296, in __init__
    validate(source_data)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 474, in validate
    raise ManifestVersionError(min_version_str)
    west.manifest.ManifestVersionError: ('0.13', None)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
    File "/opt/nordic/ncs/toolchains/20d68df7e5/bin/west", line 8, in <module>
    sys.exit(main())
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 781, in main
    app.run(argv or sys.argv[1:])
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 106, in run
    self.run_command(argv)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 336, in run_command
    cmd.run(args, unknown, self.topdir, manifest=self.manifest)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/commands.py", line 140, in run
    self.do_run(args, unknown)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/project.py", line 198, in do_run
    topdir = self.bootstrap(args)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/project.py", line 286, in bootstrap
    projects = Manifest.from_file(temp_manifest,
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1153, in from_file
    return Manifest(**kwargs)
    File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1298, in __init__
    raise ManifestVersionError(mv.version, file=source_file) from mv
    west.manifest.ManifestVersionError: ('0.13', PosixPath('/opt/nordic/ncs/v2.5.99-dev1/.west/manifest-tmp/west.yml'))

    Is this of any helps for someone ?

Children
  • Ok, could you try the following command to update to the latest version of west?

    pip3 install west

  • Hi Charlie,

    I really value your continuous interest in this issue. Thanks !

    I have tried "pip3 install west" under my, admin enabled, account, then deletion of the nordic nordic directory together with the nRF Connect for Desktop.

    However, the reinstallation from the nRF Connect for Desktop still yields in an empty v2.5.0 directory.

    And from within the VS Studio Code nRF extension, the toolchain installation seems to succeed but the SDK installation stil fails.

    I am hintless !

  • Ok, I also run out of idea now.

    Do you have any chance to test on another Mac?

    Maybe this will help to do some comparison.

    Best regards,

    Charlie

  • Hi all,

    I had put my development on hold, hoping a new release would solve this issue.

    But since I cannot wait any longer I tried again.

    It seems Nrf Connect for desktop is more verbose and I got the following error messages.

    I have tried to reinstall everything from scratch with Admin rights attached to my account, no way to have it work, again :-(

    Is it of any helps to solve my issues .

    Again, any support for this nice community would be much appreciated 

    ************************************

    There are multiple errors:
    Failed to clone the repositories: Error: Cloning into '/opt/nordic/ncs/v2.5.1/.west/manifest-tmp'... Note: switching to '87355af5914e498f449b7a68bb5641031a7b8885'.

    You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

    If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

    git switch -c <new-branch-name>

    Or undo this operation with:

    git switch -

    Turn off this advice by setting config variable advice.detachedHead to false

    Updating files: 50% (4054/8086) Updating files: 51% (4124/8086) Updating files: 52% (4205/8086) Updating files: 53% (4286/8086) Updating files: 54% (4367/8086) Updating files: 55% (4448/8086) Updating files: 56% (4529/8086) Updating files: 57% (4610/8086) Updating files: 58% (4690/8086) Updating files: 59% (4771/8086) Updating files: 60% (4852/8086) Updating files: 61% (4933/8086) Updating files: 62% (5014/8086) Updating files: 63% (5095/8086) Updating files: 64% (5176/8086) Updating files: 65% (5256/8086) Updating files: 66% (5337/8086) Updating files: 67% (5418/8086) Updating files: 68% (5499/8086) Updating files: 69% (5580/8086) Updating files: 70% (5661/8086) Updating files: 71% (5742/8086) Updating files: 72% (5822/8086) Updating files: 73% (5903/8086) Updating files: 74% (5984/8086) Updating files: 75% (6065/8086) Updating files: 76% (6146/8086) Updating files: 77% (6227/8086) Updating files: 78% (6308/8086) Updating files: 79% (6388/8086) Updating files: 80% (6469/8086) Updating files: 81% (6550/8086) Updating files: 82% (6631/8086) Updating files: 83% (6712/8086) Updating files: 84% (6793/8086) Updating files: 85% (6874/8086) Updating files: 86% (6954/8086) Updating files: 87% (7035/8086) Updating files: 88% (7116/8086) Updating files: 89% (7197/8086) Updating files: 90% (7278/8086) Updating files: 91% (7359/8086) Updating files: 92% (7440/8086) Updating files: 93% (7520/8086) Updating files: 94% (7601/8086) Updating files: 95% (7682/8086) Updating files: 96% (7763/8086) Updating files: 97% (7844/8086) Updating files: 98% (7925/8086) Updating files: 99% (8006/8086) Updating files: 100% (8086/8086) Updating files: 100% (8086/8086), done. Traceback (most recent call last): File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1296, in init validate(source_data) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 474, in validate raise ManifestVersionError(min_version_str) west.manifest.ManifestVersionError: ('0.13', None)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last): File "/opt/nordic/ncs/toolchains/20d68df7e5/bin/west", line 8, in <module> sys.exit(main()) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 781, in main app.run(argv or sys.argv[1:]) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 106, in run self.run_command(argv) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 336, in run_command cmd.run(args, unknown, self.topdir, manifest=self.manifest) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/commands.py", line 140, in run self.do_run(args, unknown) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/project.py", line 198, in do_run topdir = self.bootstrap(args) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/project.py", line 286, in bootstrap projects = Manifest.from_file(temp_manifest, File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1153, in from_file return Manifest(**kwargs) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1298, in init raise ManifestVersionError(mv.version, file=source_file) from mv west.manifest.ManifestVersionError: ('0.13', PosixPath('/opt/nordic/ncs/v2.5.1/.west/manifest-tmp/west.yml')) Error: Launched process exited with non-zero status: 1

    Error: Cloning into '/opt/nordic/ncs/v2.5.1/.west/manifest-tmp'... Note: switching to '87355af5914e498f449b7a68bb5641031a7b8885'.

    You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

    If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

    git switch -c <new-branch-name>

    Or undo this operation with:

    git switch -

    Turn off this advice by setting config variable advice.detachedHead to false

    Updating files: 50% (4054/8086) Updating files: 51% (4124/8086) Updating files: 52% (4205/8086) Updating files: 53% (4286/8086) Updating files: 54% (4367/8086) Updating files: 55% (4448/8086) Updating files: 56% (4529/8086) Updating files: 57% (4610/8086) Updating files: 58% (4690/8086) Updating files: 59% (4771/8086) Updating files: 60% (4852/8086) Updating files: 61% (4933/8086) Updating files: 62% (5014/8086) Updating files: 63% (5095/8086) Updating files: 64% (5176/8086) Updating files: 65% (5256/8086) Updating files: 66% (5337/8086) Updating files: 67% (5418/8086) Updating files: 68% (5499/8086) Updating files: 69% (5580/8086) Updating files: 70% (5661/8086) Updating files: 71% (5742/8086) Updating files: 72% (5822/8086) Updating files: 73% (5903/8086) Updating files: 74% (5984/8086) Updating files: 75% (6065/8086) Updating files: 76% (6146/8086) Updating files: 77% (6227/8086) Updating files: 78% (6308/8086) Updating files: 79% (6388/8086) Updating files: 80% (6469/8086) Updating files: 81% (6550/8086) Updating files: 82% (6631/8086) Updating files: 83% (6712/8086) Updating files: 84% (6793/8086) Updating files: 85% (6874/8086) Updating files: 86% (6954/8086) Updating files: 87% (7035/8086) Updating files: 88% (7116/8086) Updating files: 89% (7197/8086) Updating files: 90% (7278/8086) Updating files: 91% (7359/8086) Updating files: 92% (7440/8086) Updating files: 93% (7520/8086) Updating files: 94% (7601/8086) Updating files: 95% (7682/8086) Updating files: 96% (7763/8086) Updating files: 97% (7844/8086) Updating files: 98% (7925/8086) Updating files: 99% (8006/8086) Updating files: 100% (8086/8086) Updating files: 100% (8086/8086), done. Traceback (most recent call last): File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1296, in init validate(source_data) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 474, in validate raise ManifestVersionError(min_version_str) west.manifest.ManifestVersionError: ('0.13', None)

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last): File "/opt/nordic/ncs/toolchains/20d68df7e5/bin/west", line 8, in <module> sys.exit(main()) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 781, in main app.run(argv or sys.argv[1:]) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 106, in run self.run_command(argv) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/main.py", line 336, in run_command cmd.run(args, unknown, self.topdir, manifest=self.manifest) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/commands.py", line 140, in run self.do_run(args, unknown) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/project.py", line 198, in do_run topdir = self.bootstrap(args) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/app/project.py", line 286, in bootstrap projects = Manifest.from_file(temp_manifest, File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1153, in from_file return Manifest(**kwargs) File "/Users/myAccount/Library/Python/3.9/lib/python/site-packages/west/manifest.py", line 1298, in init raise ManifestVersionError(mv.version, file=source_file) from mv west.manifest.ManifestVersionError: ('0.13', PosixPath('/opt/nordic/ncs/v2.5.1/.west/manifest-tmp/west.yml')) Error: Launched process exited with non-zero status: 1

  • Hi Charlie,

    I have posted an update. Would it be useful to better understand the issue and solve it ?

    TIA for any help

    Rgds

Related