Re: Zephyr escaping its virtual environment
Jason Bens <jason.bens@...>
Hey Marti, thanks for the advice.toggle quoted messageShow quoted text
In this case specifically, I tracked it down to a pretty silly mistake. I was using the nRF extension for VS Code, but also had the CMake extension installed. I had been hitting the CMake extension's build button, not the nRF extension's, without realizing it was bypassing west. So, an easy enough fix once I realized it.
From: Bolivar, Marti <Marti.Bolivar@...>
Sent: Friday, November 12, 2021 6:53 PM
To: Jason Bens <Jason.Bens@...>; users@...
Subject: RE: [Zephyr-users] Zephyr escaping its virtual environment
It's hard to diagnose issues like this remotely, and especially with so few details.
If you are looking for general advice:
- check your PATH for where west is installed
- check things like 'py -3 -m pip freeze' inside and outside
your virtual environment to check what is installed where
- uninstall any pythons on your system, making sure you do not have
'west' on your PATH, then reinstalling them
Using Zephyr with a python virtual environment is supported, does work, and is my strong personal recommendation. Unfortunately, if you have been inconsistent about using venvs, it can leave your system in a mixed state that you will need to untangle.
I have been pushing for virtual environments to be the default recommendation in the getting started guide for years, but other maintainers have disagreed with me, and it hasn't happened. Sorry for any inconvenience.
On Fri, Nov 12 2021, Jason Bens wrote: