Open rokobertcm opened 2 months ago
Hi @rokobertcm I don't have access to a computer running MacOS, so I have not supported the os. I could get a fix for this problem, but I would need some help to test modifications to the extension to resolve the issue.
If you have availability to help debug this issue please let me know and we can try a few things.
Off the bat it seems like the python virtual environment is not being enabled before the west update command is being run.
Hi @rijesha,
Yes, of course I could help. Just tell me what to do.
Best regards, Robert Konc
This question here basically is going through the same problem. https://stackoverflow.com/questions/78036376/how-to-activate-python-environment-in-zsh-using-vscode-terminal I'll have a look tomorrow morning to see how to set up the virtual environment if zsh is used. Do you have bash installed as well? Somehow setting that as your default for vscode may cause the app to use it by default and the problems may be fixed on there own.
I have check and "Activate Python environment in all terminals" is enabled in VS Code global settings.
My default shell is zsh(zsh 5.9 (x86_64-apple-darwin23.0)). But bash(GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)) is also installed.
I'm testing prerelease version 1.1.2 and it is same problem. When start "Initialise Workspace", at "West update" stop working, Same error.
In your settings.json can you add the following line. Restart VScode and try setting up the workspace again?
"terminal.integrated.defaultProfile.osx": "bash",
Hi,
I'm tested with those settings and result was same.
Maybe it is something wrong that »initialize Worskace« use old Python 3.9.6 which is part of Xcode. I have installed Python 3.12 but is not use by Zephyr IDE.
When I press »Initialize Workspace« button process stop and wait at »Setting up Python Environment (2/5)« @.***
and pop up screen is shown in botton right corner @.***
When I press »Reinitialize« then process goes on and stop with error.
@.***
From: Rijesh Augustine @.> Date: Wednesday, 28 August 2024 at 18:32 To: mylonics/zephyr-ide @.> Cc: Robert Konc @.>, Mention @.> Subject: Re: [mylonics/zephyr-ide] west update fail on Mac M (Issue #55)
In your settings.json can you add the following line. Restart VScode and try setting up the workspace again?
"terminal.integrated.defaultProfile.osx": "bash",
— Reply to this email directly, view it on GitHubhttps://github.com/mylonics/zephyr-ide/issues/55#issuecomment-2315802829, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZRWXCHDGRJEWC763N3OQ3TZTX3RXAVCNFSM6AAAAABNEPF2PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVHAYDEOBSHE. You are receiving this because you were mentioned.Message ID: @.***>
[W3Schools.com]
To elektronsko sporocilo in vse morebitne priloge so poslovna skrivnost in namenjene izkljucno naslovniku. Ce ste sporocilo prejeli pomotoma, Vas prosimo, da obvestite pošiljatelja, sporocilo pa takoj unicite. Kakršnokoli razkritje, distribucija ali kopiranje vsebine sporocila je izrecno prepovedano. Ni nujno, da to sporocilo odraža uradno stališce družbe.
This e-mail and any attachments may contain confidential and/or privileged information and is intended solely for the addressee. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. This e-mail may not necessarily reflect the official viewpoint of the Compton.
Disclaimer from Controlmatik ABW, Domzale d.o.o.
Unfortunately the images didn't make it through via email
Then I will put it on github Issues.
From: Rijesh Augustine @.> Date: Wednesday, 28 August 2024 at 19:15 To: mylonics/zephyr-ide @.> Cc: Robert Konc @.>, Mention @.> Subject: Re: [mylonics/zephyr-ide] west update fail on Mac M (Issue #55)
Unfortunately the images didn't make it through via email
— Reply to this email directly, view it on GitHubhttps://github.com/mylonics/zephyr-ide/issues/55#issuecomment-2315879881, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZRWXCDJB2DMISCB4HF3KCDZTYAUNAVCNFSM6AAAAABNEPF2PGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJVHA3TSOBYGE. You are receiving this because you were mentioned.Message ID: @.***>
[W3Schools.com]
To elektronsko sporocilo in vse morebitne priloge so poslovna skrivnost in namenjene izkljucno naslovniku. Ce ste sporocilo prejeli pomotoma, Vas prosimo, da obvestite pošiljatelja, sporocilo pa takoj unicite. Kakršnokoli razkritje, distribucija ali kopiranje vsebine sporocila je izrecno prepovedano. Ni nujno, da to sporocilo odraža uradno stališce družbe.
This e-mail and any attachments may contain confidential and/or privileged information and is intended solely for the addressee. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. This e-mail may not necessarily reflect the official viewpoint of the Compton.
Disclaimer from Controlmatik ABW, Domzale d.o.o.
Hi,
I'm tested with those settings and result was same.
Maybe it is something wrong that »initialize Worskace« use old Python 3.9.6 which is part of Xcode. I have installed Python 3.12 but is not use by Zephyr IDE.
When I press »Initialize Workspace« button process stop and wait at »Setting up Python Environment (2/5)«
and pop up screen is shown in botton right corner
When I press »Reinitialize« then process goes on and stop with error.
Can you open a new zephyr ide terminal in vscode and post the results of: which python which python3 Can you also open a new zsh terminal in vscode and post the same results.
Here are results from Zephyr IDE terminal.
which python /opt/homebrew/bin/python which python3 /usr/bin/python3
And from zsh terminal is same.
And also versions:
python -V Python 3.12.5 python3 -V Python 3.9.6
I have pushed a new prerelease update. It is v1.1.3.
Could you try it an let me know if it works for you? You should go through a full workspace setup and see if it installs ok.
I'm install new version. Create new folder. Start "Workspace initialize".
Same problem. Stop at west update. When start installing requirements.
The terminal process "/bin/zsh '-l', '-c', 'pip install -r */requirements.txt'" failed to launch (exit code: 1).
But I noticed that there is no more stop at "Setting up Python Environment (2/5)".
I just released a v1.1.4. Could you please try again with that one.
Still same problem. This is log from Output window in VS Code.
Zephyr IDE will now check if build tools are installed and available in system path. Please follow the section Install Dependencies. https://docs.zephyrproject.org/latest/develop/getting_started/index.html#install-dependencies. The remaining sections on that page will automatically be handled by the zephyr tools extension For Windows you may use Chocolately, for debian you may use apt, and for macOS you may use Homebrew git version 2.39.3 (Apple Git-146) [SETUP] git installed Python 3.9.6 [SETUP] python installed pip 21.2.4 from /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip (python 3.9) [SETUP] pip installed [SETUP] python3 venv installed cmake version 3.30.2
CMake suite maintained and supported by Kitware (kitware.com/cmake). [SETUP] cmake installed Version: DTC 1.7.1 [SETUP] dtc installed [SETUP] Python Virtual Environment created Collecting west Using cached west-1.2.0-py3-none-any.whl (95 kB) Collecting packaging Using cached packaging-24.1-py3-none-any.whl (53 kB) Collecting colorama Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB) Requirement already satisfied: setuptools in ./.venv/lib/python3.9/site-packages (from west) (58.0.4) Collecting PyYAML>=5.1 Using cached PyYAML-6.0.2-cp39-cp39-macosx_11_0_arm64.whl (172 kB) Collecting pykwalify Using cached pykwalify-1.8.0-py2.py3-none-any.whl (24 kB) Collecting ruamel.yaml>=0.16.0 Using cached ruamel.yaml-0.18.6-py3-none-any.whl (117 kB) Collecting python-dateutil>=2.8.0 Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB) Collecting docopt>=0.6.2 Using cached docopt-0.6.2-py2.py3-none-any.whl Collecting six>=1.5 Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting ruamel.yaml.clib>=0.2.7 Using cached ruamel.yaml.clib-0.2.8-cp39-cp39-macosx_12_0_arm64.whl (134 kB) Installing collected packages: six, ruamel.yaml.clib, ruamel.yaml, python-dateutil, docopt, PyYAML, pykwalify, packaging, colorama, west Successfully installed PyYAML-6.0.2 colorama-0.4.6 docopt-0.6.2 packaging-24.1 pykwalify-1.8.0 python-dateutil-2.9.0.post0 ruamel.yaml-0.18.6 ruamel.yaml.clib-0.2.8 six-1.16.0 west-1.2.0 [SETUP] west installed [SETUP] West Python Environment Setup complete! [SETUP] Installing zephyr-sdk-0.16.8 toolchain... tar -xvf "/Users/robert.konc/.zephyr_ide/downloads/zephyr-sdk-0.16.8_macos-aarch64_minimal.tar.xz" -C "/Users/robert.konc/.zephyr_ide/toolchains" zephyr-sdk-0.16.8/setup.sh -t arm-zephyr-eabi Zephyr SDK 0.16.8 Setup
All done. tar -xvf "/Users/robert.konc/.zephyr_ide/downloads/toolchain_macos-aarch64_arm-zephyr-eabi.tar.xz" -C "/Users/robert.konc/.zephyr_ide/toolchains/zephyr-sdk-0.16.8" [SETUP] Installing zephyr-sdk-0.16.8 complete Running cmd: west init -l /Users/robert.konc/Soft/zpIDE1/application Starting Task: Zephyr IDE: West Init Running cmd: west update Starting Task: Zephyr IDE: West Update Running cmd: west update Starting Task: Zephyr IDE: West Update Running cmd: pip install -r /Users/robert.konc/Soft/zpIDE1/external/zephyr/scripts/requirements.txt Starting Task: Zephyr IDE: West Update
When you run it are all the integrated terminals closed? If terminals are reused it may not work properly.
I have another new version that may fix it.
Just for information. If I run command in Zephyr IDE Terminal under venv then it run successfully.
pip install -r /Users/robert.konc/Soft/zpIDE1/external/zephyr/scripts/requirements.txt
But if I want to compile some project it said that I must run first West Update command from Zephyr IDE extension.
When you run it are all the integrated terminals closed? If terminals are reused it may not work properly.
I have another new version that may fix it.
Yes I started in new windows and create empty folder.
Could you specify in settings which python will Zephy IDE use when creates venv? Is it possible that python 3.9.6 makes problem?
If I look in requirements for Zephyr it is written that minimum Phyton version is 3.10.
Ok. I have pushed a new update. It has a command to Zephyr IDE: Mark West as Ready. This will allow you to try out the rest of the app to see if there are issues.
Before the virtual environment was being made with python3 for linux and macos. I have changed it in 1.1.4 to use python. And python in your system should be v3.12 where as python3 is the older version.
Could you try another new folder with the latest version of the app V1.2.0. Setup the folder to use a workspace install, and run Check Build Dependencies, Setup West Environment, and West Init. Then could you zip the entire folder and post it here?
Now it is working. Great job!!!
It would be nice to figure out why the venv is still not set. Is the Zephyr IDE terminal based on bash or zsh now?
Running these commands should give the type of terminal it is. echo $0 echo $SHELL
And what are the contents of your settings.json file?
Could you try another new folder with the latest version of the app V1.2.0. Setup the folder to use a workspace install, and run Check Build Dependencies, Setup West Environment, and West Init. Then could you zip the entire folder and post it here?
Here is entire folder as you requested. Zephyr IDE workspace.zip
It would be nice to figure out why the venv is still not set. Is the Zephyr IDE terminal based on bash or zsh now?
Running these commands should give the type of terminal it is. echo $0 echo $SHELL
And what are the contents of your settings.json file?
echo $0
/bin/zsh
echo $SHELL
/bin/zsh
source .venv/bin/activate
echo $SHELL
/bin/zsh
echo $0
/bin/zsh
settings.json file: settings.json
Could you try setting it up again with the latest prerelease. 1.2.1. Im trying to get it to force the use of bash instead of zsh.
Could you try setting it up again with the latest prerelease. 1.2.1. Im trying to get it to force the use of bash instead of zsh.
I'm tested and it is the same result.
It stop at pip install requirements.
The terminal process "/bin/zsh '-l', '-c', 'pip install -r *requirements.txt'" failed to launch (exit code: 1).
If I select Zephyr IDE terminal and set venv. source .venv/bin/activate echo $SHELL /bin/zsh echo $0 /bin/zsh
can you send the new settings.json file
can you send the new settings.json file
Here is settings.json file from last test. settings.json
I added a new command in v1.2.2, called Zephyr IDE: Shell Test. Can you run this command and post the results from the output window.
Here is windows output after Shell Test.
macos detected macos bash default set to something else Setting terminal to: bash bash Finished
And if I run West Update, got same problem. But now it is use bash shell. Output window:
Running cmd: west update Starting Task: Zephyr IDE: West Update Running cmd: pip install -r */requirements.txt Starting Task: Zephyr IDE: West Update
And terminal window:
- The terminal process "/bin/bash '-l', '-c', 'pip install -r */requirements.txt'" failed to launch (exit code: 1).
Ok thanks for all your help in this. I think I may try a different solution of adding the virtual environment to the path and see if that fixes the problem. I may take me a few days but I will get back to you when I have an answer.
I'm debuging Zephyr IDE. And there is my observation.
I'm put shell command "echo $PATH" instead of "pip install */requirements.txt" in westUpdate function.
Here is output form bash terminal.
And here is same command executed in "Zephyr IDE Terminal".
As you see that paths sequence is not same. And because of that pip was taken globally. Maybe you must run tasks in Zephyr IDE terminal instead in bash terminal as it now.
PS: If I change command ".~/.venv/bin/pip install */requirements.txt" in westUpdate function work OK.
Regards, Robert
Hello guys, i also have a Mac M2 and have a similar problem when setting up workspace. The problem is that Zephyr IDE is trying to use Python 2.7 (found at /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python) but i don't know why. i have pyenv installed so i can manage my python versions.
This is the log output
Executing task in folder vs-firmware: west update
=== updating zephyr (deps/zephyr):
HEAD is now at 36940db938a release: Zephyr v3.7.0
=== updating cmsis (deps/modules/hal/cmsis):
HEAD is now at 4b96cbb doc: Update documentations for CMSIS 5.9.0
=== updating hal_espressif (deps/modules/hal/espressif):
HEAD is now at 87e7902d71 cmakelists: let bootloader sources into mcuboot build
=== updating hal_st (deps/modules/hal/st):
HEAD is now at b77157f drivers: sensor: st: Move to vendor subdirectory
=== updating mbedtls (deps/modules/crypto/mbedtls):
HEAD is now at 2f24831ee md: fix guards for mbedtls_md_error_from_psa
=== updating tinycrypt (deps/modules/crypto/tinycrypt):
HEAD is now at 1012a3e Fix warnings reported by UBSAN
* Terminal will be reused by tasks, press any key to close it.
* Executing task in folder vs-firmware: pip install -r /Users/userr/Project/ProjectVasoSmart/Development/Firmware/vs-firmware/deps/zephyr/scripts/requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Ignoring windows-curses: markers 'sys_platform == "win32"' don't match your environment
Ignoring python-magic-bin: markers 'sys_platform == "win32"' don't match your environment
Collecting pyelftools>=0.29 (from -r /Users/userr/Project/ProjectVasoSmart/Development/Firmware/vs-firmware/deps/zephyr/scripts/requirements-base.txt (line 7))
Using cached https://files.pythonhosted.org/packages/88/56/0f2d69ed9a0060da009f672ddec8a71c041d098a66f6b1d80264bf6bbdc0/pyelftools-0.31.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/6x/jlwly1vx4dg6122w4ds182k00000gn/T/pip-build-env-dbRyE8/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 46.4.0'
cwd: None
Complete output (6 lines):
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting setuptools>=46.4.0
ERROR: Could not find a version that satisfies the requirement setuptools>=46.4.0 (from versions: 0.6b1, 0.6b2, 0.6b3, 0.6b4, 0.6rc1, 0.6rc2, 0.6rc3, 0.6rc4, 0.6rc5, 0.6rc6, 0.6rc7, 0.6rc8, 0.6rc9, 0.6rc10, 0.6rc11, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.7.7, 0.7.8, 0.8, 0.9, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 1.0, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.2, 1.3, 1.3.1, 1.3.2, 1.4, 1.4.1, 1.4.2, 2.0, 2.0.1, 2.0.2, 2.1, 2.1.1, 2.1.2, 2.2, 3.0, 3.0.1, 3.0.2, 3.1, 3.2, 3.3, 3.4, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.5, 3.5.1, 3.5.2, 3.6, 3.7, 3.7.1, 3.8, 3.8.1, 4.0, 4.0.1, 5.0, 5.0.1, 5.0.2, 5.1, 5.2, 5.3, 5.4, 5.4.1, 5.4.2, 5.5, 5.5.1, 5.6, 5.7, 5.8, 6.0.1, 6.0.2, 6.1, 7.0, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.1, 8.2, 8.2.1, 8.3, 9.0, 9.0.1, 9.1, 10.0, 10.0.1, 10.1, 10.2, 10.2.1, 11.0, 11.1, 11.2, 11.3, 11.3.1, 12.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 12.0.5, 12.1, 12.2, 12.3, 12.4, 13.0.1, 13.0.2, 14.0, 14.1, 14.1.1, 14.2, 14.3, 14.3.1, 15.0, 15.1, 15.2, 16.0, 17.0, 17.1, 17.1.1, 18.0, 18.0.1, 18.1, 18.2, 18.3, 18.3.1, 18.3.2, 18.4, 18.5, 18.6, 18.6.1, 18.7, 18.7.1, 18.8, 18.8.1, 19.0, 19.1, 19.1.1, 19.2, 19.3, 19.4, 19.4.1, 19.5, 19.6, 19.6.1, 19.6.2, 19.7, 20.0, 20.1, 20.1.1, 20.2.2, 20.3, 20.3.1, 20.4, 20.6.6, 20.6.7, 20.6.8, 20.7.0, 20.8.0, 20.8.1, 20.9.0, 20.10.1, 21.0.0, 21.1.0, 21.2.0, 21.2.1, 21.2.2, 22.0.0, 22.0.1, 22.0.2, 22.0.4, 22.0.5, 23.0.0, 23.1.0, 23.2.0, 23.2.1, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 24.1.0, 24.1.1, 24.2.0, 24.2.1, 24.3.0, 24.3.1, 25.0.0, 25.0.1, 25.0.2, 25.1.0, 25.1.1, 25.1.2, 25.1.3, 25.1.4, 25.1.5, 25.1.6, 25.2.0, 25.3.0, 25.4.0, 26.0.0, 26.1.0, 26.1.1, 27.0.0, 27.1.0, 27.1.2, 27.2.0, 27.3.0, 27.3.1, 28.0.0, 28.1.0, 28.2.0, 28.3.0, 28.4.0, 28.5.0, 28.6.0, 28.6.1, 28.7.0, 28.7.1, 28.8.0, 28.8.1, 29.0.0, 29.0.1, 30.0.0, 30.1.0, 30.2.0, 30.2.1, 30.3.0, 30.4.0, 31.0.0, 31.0.1, 32.0.0, 32.1.0, 32.1.1, 32.1.2, 32.1.3, 32.2.0, 32.3.0, 32.3.1, 33.1.0, 33.1.1, 34.0.0, 34.0.1, 34.0.2, 34.0.3, 34.1.0, 34.1.1, 34.2.0, 34.3.0, 34.3.1, 34.3.2, 34.3.3, 34.4.0, 34.4.1, 35.0.0, 35.0.1, 35.0.2, 36.0.1, 36.1.0, 36.1.1, 36.2.0, 36.2.1, 36.2.2, 36.2.3, 36.2.4, 36.2.5, 36.2.6, 36.2.7, 36.3.0, 36.4.0, 36.5.0, 36.6.0, 36.6.1, 36.7.0, 36.7.1, 36.7.2, 36.8.0, 37.0.0, 38.0.0, 38.1.0, 38.2.0, 38.2.1, 38.2.3, 38.2.4, 38.2.5, 38.3.0, 38.4.0, 38.4.1, 38.5.0, 38.5.1, 38.5.2, 38.6.0, 38.6.1, 38.7.0, 39.0.0, 39.0.1, 39.1.0, 39.2.0, 40.0.0, 40.1.0, 40.1.1, 40.2.0, 40.3.0, 40.4.0, 40.4.1, 40.4.2, 40.4.3, 40.5.0, 40.6.0, 40.6.1, 40.6.2, 40.6.3, 40.7.0, 40.7.1, 40.7.2, 40.7.3, 40.8.0, 40.9.0, 41.0.0, 41.0.1, 41.1.0, 41.2.0, 41.3.0, 41.4.0, 41.5.0, 41.5.1, 41.6.0, 42.0.0, 42.0.1, 42.0.2, 43.0.0, 44.0.0, 44.1.0, 44.1.1)
ERROR: No matching distribution found for setuptools>=46.4.0
WARNING: You are using pip version 19.2.3, however version 20.3.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/6x/jlwly1vx4dg6122w4ds182k00000gn/T/pip-build-env-dbRyE8/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 46.4.0' Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.3.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
* The terminal process "/bin/zsh '-l', '-c', 'pip install -r /Users/userr/Project/ProjectVasoSmart/Development/Firmware/vs-firmware/deps/zephyr/scripts/requirements.txt'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
@dj-fiorex @rokobertcm I am wondering if the issue is due to installing everything with homebrew in bash. The instructions in the zephyr getting started guide are for installing with bash.
Did you run (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile source ~/.zprofile
did you add the homebrew python folder to the path, (echo; echo 'export PATH="'$(brew --prefix)'/opt/python/libexec/bin:$PATH"') >> ~/.zprofile source ~/.zprofile
You may need to add the homebrew python folder to the path in your .bashrc file and .zshrc file so that it is always available on startup.
@andre-stefanov I noticed that you are using zsh in one of the snippets you posted. Are you using mac os and did you have any issues setting up zephyr-ide?
I'm try to reinstall zephyr requirements as it is written in "zephyr getting started guide" and check ".zprofile file. Same problem. But I noticed that .bashrc and .zshrc file was not in my home folder. So I was created them and add homebrew python folder as it describe in previous comment. Still same problem in West Update:
pip install -r */requirements.txt'" terminated with exit code: 1.
I'm playing with bash integrated terminal and found that "westUpdate" works when I remove "-l"(login) switch. Reason, why "-l" switch make problem is that on macOS when starting shell and adding folders to $PATH from config files is in reverse order that is on Windows and Linux.
It is described here in bottom of page.
@rijesha could you check if it is necessary to use "-l" switch. If it is then please also check could we use "-l" with "--noprofile" switch.
I'm using MacOS 14.6.1 and my computer is MacBook Pro with M3 processor. When I tray to use Zephyr IDE >Initialize Wokspace< work Ok. And when I came to west update, I get following error.
West update fail at:
pip install -r */requirements.txt
This is log from terminal window.
Regards, Robert