jaredwolff Hello Mr. Wolff,
I apologize for reopening this old discussion, however I am in need of assistance. I also experienced an error while trying to run Zephyr Setup. I am quite new to software engineering, so I suspect it is an Layer 8 error.
When trying to run Zephyr Setup I receive the following error:

git version 2.30.2
[SETUP] git installed
python3 –version
[SETUP] python3 found
python3 -m pip install virtualenv
python3 -m virtualenv “/home/sean/.zephyrtools/env”
[SETUP] unable to setup virtualenv

My OS is Debian GNU/Linux 11 (bullseye) and my VSCOde version is 1.85.1-1702462158. I would be very grateful about some hints on how to solve this issue. Let me know if you need further information regarding my system.

Thank you very much in advance.
SJM

@SJM you should take a look at the install instructions here. Specifically, make sure you have python3 along with all the dependencies for the plugin to work.

If your system has apt simply run:

sudo apt install git python3 python3-pip

Hope that helps.

Additionally, are the permission to your home folder set correctly? What happens if you run the setup command again?

Thanks for the swift reply and continued support.
I will try your recommended Python installation. If I run the setup again, it throws the same error. I will also check the permissions to my home folder. I will get back to you ASAP.

So I ran the suggested command with the following result:

Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
git ist schon die neueste Version (1:2.30.2-1+deb11u2).
python3-pip ist schon die neueste Version (20.3.4-4+deb11u1).
python3 ist schon die neueste Version (3.9.2-3).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

(Translation: python3 is already up to date)

I assume the permission for the folder might be set wrong? How do they need to be set?

UPDATE

I fixed it! Iḿ not quite sure what I did, but it worked. I tried to execute the commands from the output manually and followed it to the error source: /usr/lib/python3/dist-packages/OpenSSL/crypto.py

I tried some stuff from stackoverflow, but in the end I executed:
sudo apt remove python3-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py

-After reboot-

pip install pyopenssl –upgrade

it showed a missing installation of PyYAML5.1

after running pip install PyYAML==5.1

I reran pip install pyopenssl –upgrade

Finally I retried the Zephyr Setup and it worked!! Perhaps this will assist someone in the future, perhaps not.

When you’re in VSCode can you run which python3 to check the location of your Python executable?

Also, can you try running the failed command manually?

python3 -m virtualenv “/home/sean/.zephyrtools/env”

Terms and Conditions | Privacy Policy