Error while setting Zephyr environment up in VSCode (python7.4-venv?)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error while setting Zephyr environment up in VSCode (python7.4-venv?)

Jump to solution
360 Views
fjrg76
Contributor IV

Hi.

I was trying to set Zephyr environment up in VSCode, but there was an error when clicked the Install button in MCUXpresso Installer. Among other things (I was following a short tutorial posted in LinkedIn by NXP) I set Zephyr Developer for installation.

 

Tutorial: https://www.nxp.com/company/about-nxp/smarter-world-videos/HELLO-WORLD-DEMO-ZEPHYR-VID

 

The system asked for my password dozens of times (Linux box); however, everytime I got an error when the installer executed this line:

[info] Executing command "pkexec apt -y install python7.4-venv"

 

Is python7.4 even a thing?

 

Then I got these messages:

[error] Command pkexec exited with code 100.
[error] The python virtual environment module could not be installed.
[error] Error occurred while installing Zephyr Python Dependencies: The virtual environment cound not be created. Skipping...

 

It's not a mispelling. Check this image out:

Captura de pantalla de 2025-12-04 23-39-26.png

Any hints? Did I missed something?

 

Thank you in advanced!

Tags (3)
0 Kudos
Reply
1 Solution
165 Views
fjrg76
Contributor IV

Ok, the workaround worked!

However, the package to be eliminated is called python3-qrcode. And the program Warpinator was eliminated as well:

$ sudo apt remove python3-qrcode 
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Los siguientes paquetes se ELIMINARÁN:
  python3-qrcode warpinator
...

 

The good news is that I recovered Warpinator after applying the workaround.

 

Thank you and  don't forget to test your releases before you release them

View solution in original post

Tags (3)
0 Kudos
Reply
5 Replies
303 Views
AlexandraMaracine
NXP Employee
NXP Employee

Hello @fjrg76,

Could you please share a few more details about the issue?

What Linux distribution are you using? You can check by running:

cat /etc/os-release

What installer version are you using? You’ll find this information in the menu on the right, under the About section.

Which Python versions are installed on your system? You can verify by running these commands:

whereis python3
which python3
ls -ls /usr/bin/python*

Thank you,
Alexandra

0 Kudos
Reply
266 Views
fjrg76
Contributor IV

Hi! Thanks for your prompt reply. Sorry for the lack of details in the last post.

 

fjrg76@fjrg76-amd:~$ cat /etc/os-release 
NAME="Linux Mint"
VERSION="22.2 (Zara)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 22.2"
VERSION_ID="22.2"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=zara
UBUNTU_CODENAME=noble


fjrg76@fjrg76-amd:~$ whereis python3
python3: /usr/bin/python3 /usr/lib/python3 /etc/python3 /usr/share/python3 /usr/share/man/man1/python3.1.gz


fjrg76@fjrg76-amd:~$ which python3
/usr/bin/python3


fjrg76@fjrg76-amd:~$ ls -ls /usr/bin/python*
   0 lrwxrwxrwx 1 root root      10 nov 12 06:15 /usr/bin/python3 -> python3.12
7832 -rwxr-xr-x 1 root root 8016832 nov  6 07:44 /usr/bin/python3.12
   0 lrwxrwxrwx 1 root root      34 nov  6 07:44 /usr/bin/python3.12-config -> x86_64-linux-gnu-python3.12-config
   0 lrwxrwxrwx 1 root root      17 nov 12 06:15 /usr/bin/python3-config -> python3.12-config
   4 -rwxr-xr-x 1 root root     945 dic 11  2023 /usr/bin/python3-qr

 

And for the installer:

MCUXpresso Installer Changelog
Version 25.09.179

Improvements

-Introduced mechanism to exclude component versions that may lead to compatibility issues.

 

If you require more information, please don't hesitate.

 

0 Kudos
Reply
207 Views
AlexandraMaracine
NXP Employee
NXP Employee

Thank you for the additional details @fjrg76!

The MCUXpresso Installer is mistakenly interpreting your python3-qr module as a Python version. We will address this issue in next week’s release. In the meantime, you can apply a temporary workaround by uninstalling the python3-qr module, running the MCUXpresso Installer setup, and then reinstalling the module.
 

Regards,

Alexandra

0 Kudos
Reply
166 Views
fjrg76
Contributor IV

Ok, the workaround worked!

However, the package to be eliminated is called python3-qrcode. And the program Warpinator was eliminated as well:

$ sudo apt remove python3-qrcode 
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Los siguientes paquetes se ELIMINARÁN:
  python3-qrcode warpinator
...

 

The good news is that I recovered Warpinator after applying the workaround.

 

Thank you and  don't forget to test your releases before you release them

Tags (3)
0 Kudos
Reply
169 Views
fjrg76
Contributor IV

Hi!

Such package doesn't exist:

E: No se ha podido localizar el paquete python3-qr

A quick search on Google threw no results for "python3-qr". Did you mean: "python3-qrcode"?

$ dpkg -l | grep python3 | grep qr
ii python3-qrcode 7.4.2-4 all QR Code image generator library - Python 3.x

 

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2255724%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EError%20while%20setting%20Zephyr%20environment%20up%20in%20VSCode%20(python7.4-venv%3F)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255724%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi.%3C%2FP%3E%3CP%3EI%20was%20trying%20to%20set%20Zephyr%20environment%20up%20in%20VSCode%2C%20but%20there%20was%20an%20error%20when%20clicked%20the%20Install%20button%20in%26nbsp%3B%3CSTRONG%3EMCUXpresso%20Installer%3C%2FSTRONG%3E.%20Among%20other%20things%20(I%20was%20following%20a%20short%20tutorial%20posted%20in%20LinkedIn%20by%20NXP)%20I%20set%20%3CSTRONG%3EZephyr%20Developer%3C%2FSTRONG%3E%26nbsp%3Bfor%20installation.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ETutorial%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fcompany%2Fabout-nxp%2Fsmarter-world-videos%2FHELLO-WORLD-DEMO-ZEPHYR-VID%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fcompany%2Fabout-nxp%2Fsmarter-world-videos%2FHELLO-WORLD-DEMO-ZEPHYR-VID%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20system%20asked%20for%20my%20password%20dozens%20of%20times%20(Linux%20box)%3B%20however%2C%20everytime%20I%20got%20an%20error%20when%20the%20installer%20executed%20this%20line%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E%5Binfo%5D%20Executing%20command%20%22pkexec%20apt%20-y%20install%20python7.4-venv%22%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EIs%20%3CSTRONG%3Epython7.4%3C%2FSTRONG%3E%20even%20a%20thing%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThen%20I%20got%20these%20messages%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%5Berror%5D%20Command%20pkexec%20exited%20with%20code%20100.%0A%5Berror%5D%20The%20python%20virtual%20environment%20module%20could%20not%20be%20installed.%0A%5Berror%5D%20Error%20occurred%20while%20installing%20Zephyr%20Python%20Dependencies%3A%20The%20virtual%20environment%20cound%20not%20be%20created.%20Skipping...%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EIt's%20not%20a%20mispelling.%20Check%20this%20image%20out%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Captura%20de%20pantalla%20de%202025-12-04%2023-39-26.png%22%20style%3D%22width%3A%20879px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Captura%20de%20pantalla%20de%202025-12-04%2023-39-26.png%22%20style%3D%22width%3A%20879px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Captura%20de%20pantalla%20de%202025-12-04%2023-39-26.png%22%20style%3D%22width%3A%20879px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Captura%20de%20pantalla%20de%202025-12-04%2023-39-26.png%22%20style%3D%22width%3A%20879px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Captura%20de%20pantalla%20de%202025-12-04%2023-39-26.png%22%20style%3D%22width%3A%20879px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368700i5289CDCC154CDCDC%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Captura%20de%20pantalla%20de%202025-12-04%2023-39-26.png%22%20alt%3D%22Captura%20de%20pantalla%20de%202025-12-04%2023-39-26.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAny%20hints%3F%20Did%20I%20missed%20something%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThank%20you%20in%20advanced!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2256385%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Error%20while%20setting%20Zephyr%20environment%20up%20in%20VSCode%20(python7.4-venv%3F)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2256385%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi!%20Thanks%20for%20your%20prompt%20reply.%20Sorry%20for%20the%20lack%20of%20details%20in%20the%20last%20post.%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3Efjrg76%40fjrg76-amd%3A~%24%20cat%20%2Fetc%2Fos-release%20%0ANAME%3D%22Linux%20Mint%22%0AVERSION%3D%2222.2%20(Zara)%22%0AID%3Dlinuxmint%0AID_LIKE%3D%22ubuntu%20debian%22%0APRETTY_NAME%3D%22Linux%20Mint%2022.2%22%0AVERSION_ID%3D%2222.2%22%0AHOME_URL%3D%22https%3A%2F%2Fwww.linuxmint.com%2F%22%0ASUPPORT_URL%3D%22https%3A%2F%2Fforums.linuxmint.com%2F%22%0ABUG_REPORT_URL%3D%22http%3A%2F%2Flinuxmint-troubleshooting-guide.readthedocs.io%2Fen%2Flatest%2F%22%0APRIVACY_POLICY_URL%3D%22https%3A%2F%2Fwww.linuxmint.com%2F%22%0AVERSION_CODENAME%3Dzara%0AUBUNTU_CODENAME%3Dnoble%0A%0A%0Afjrg76%40fjrg76-amd%3A~%24%20whereis%20python3%0Apython3%3A%20%2Fusr%2Fbin%2Fpython3%20%2Fusr%2Flib%2Fpython3%20%2Fetc%2Fpython3%20%2Fusr%2Fshare%2Fpython3%20%2Fusr%2Fshare%2Fman%2Fman1%2Fpython3.1.gz%0A%0A%0Afjrg76%40fjrg76-amd%3A~%24%20which%20python3%0A%2Fusr%2Fbin%2Fpython3%0A%0A%0Afjrg76%40fjrg76-amd%3A~%24%20ls%20-ls%20%2Fusr%2Fbin%2Fpython*%0A%20%20%200%20lrwxrwxrwx%201%20root%20root%20%20%20%20%20%2010%20nov%2012%2006%3A15%20%2Fusr%2Fbin%2Fpython3%20-%26gt%3B%20python3.12%0A7832%20-rwxr-xr-x%201%20root%20root%208016832%20nov%20%206%2007%3A44%20%2Fusr%2Fbin%2Fpython3.12%0A%20%20%200%20lrwxrwxrwx%201%20root%20root%20%20%20%20%20%2034%20nov%20%206%2007%3A44%20%2Fusr%2Fbin%2Fpython3.12-config%20-%26gt%3B%20x86_64-linux-gnu-python3.12-config%0A%20%20%200%20lrwxrwxrwx%201%20root%20root%20%20%20%20%20%2017%20nov%2012%2006%3A15%20%2Fusr%2Fbin%2Fpython3-config%20-%26gt%3B%20python3.12-config%0A%20%20%204%20-rwxr-xr-x%201%20root%20root%20%20%20%20%20945%20dic%2011%20%202023%20%2Fusr%2Fbin%2Fpython3-qr%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EAnd%20for%20the%20%3CSTRONG%3Einstaller%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EMCUXpresso%20Installer%20Changelog%0AVersion%2025.09.179%0A%0AImprovements%0A%0A-Introduced%20mechanism%20to%20exclude%20component%20versions%20that%20may%20lead%20to%20compatibility%20issues.%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EIf%20you%20require%20more%20information%2C%20please%20don't%20hesitate.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2255974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Error%20while%20setting%20Zephyr%20environment%20up%20in%20VSCode%20(python7.4-venv%3F)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255974%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F27063%22%20target%3D%22_blank%22%3E%40fjrg76%3C%2FA%3E%2C%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CP%3ECould%20you%20please%20share%20a%20few%20more%20details%20about%20the%20issue%3F%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhat%20Linux%20distribution%20are%20you%20using%3F%3C%2FSTRONG%3E%20You%20can%20check%20by%20running%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Ecat%20%2Fetc%2Fos-release%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSTRONG%3EWhat%20installer%20version%20are%20you%20using%3F%3C%2FSTRONG%3E%20You%E2%80%99ll%20find%20this%20information%20in%20the%20menu%20on%20the%20right%2C%20under%20the%20About%20section.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhich%20Python%20versions%20are%20installed%20on%20your%20system%3F%3C%2FSTRONG%3E%20You%20can%20verify%20by%20running%20these%20commands%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Ewhereis%20python3%3C%2FCODE%3E%3CBR%20%2F%3E%3CCODE%3Ewhich%20python3%3C%2FCODE%3E%3CBR%20%2F%3E%3CCODE%3Els%20-ls%20%2Fusr%2Fbin%2Fpython*%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThank%20you%2C%3CBR%20%2F%3EAlexandra%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2257218%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Error%20while%20setting%20Zephyr%20environment%20up%20in%20VSCode%20(python7.4-venv%3F)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2257218%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20the%20additional%20details%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F27063%22%20target%3D%22_blank%22%3E%40fjrg76%3C%2FA%3E!%3C%2FP%3E%0A%3CDIV%3EThe%20MCUXpresso%20Installer%20is%20mistakenly%20interpreting%20your%20%3CCODE%3Epython3-qr%3C%2FCODE%3E%20module%20as%20a%20Python%20version.%20We%20will%20address%20this%20issue%20in%20next%20week%E2%80%99s%20release.%20In%20the%20meantime%2C%20you%20can%20apply%20a%20temporary%20workaround%20by%20uninstalling%20the%20%3CCODE%3Epython3-qr%3C%2FCODE%3E%20module%2C%20running%20the%20MCUXpresso%20Installer%20setup%2C%20and%20then%20reinstalling%20the%20module.%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EAlexandra%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2258567%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Error%20while%20setting%20Zephyr%20environment%20up%20in%20VSCode%20(python7.4-venv%3F)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2258567%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOk%2C%20the%20workaround%20worked!%3C%2FP%3E%3CP%3EHowever%2C%20the%20package%20to%20be%20eliminated%20is%20called%20%3CSTRONG%3Epython3-qrcode%3C%2FSTRONG%3E.%20And%20the%20program%20%3CSTRONG%3EWarpinator%3C%2FSTRONG%3E%20was%20eliminated%20as%20well%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%24%20sudo%20apt%20remove%20python3-qrcode%20%0ALeyendo%20lista%20de%20paquetes...%20Hecho%0ACreando%20%C3%A1rbol%20de%20dependencias...%20Hecho%0ALeyendo%20la%20informaci%C3%B3n%20de%20estado...%20Hecho%0ALos%20siguientes%20paquetes%20se%20ELIMINAR%C3%81N%3A%0A%20%20python3-qrcode%20warpinator%0A...%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EThe%20good%20news%20is%20that%20I%20recovered%20%3CSTRONG%3EWarpinator%3C%2FSTRONG%3E%20after%20applying%20the%20workaround.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThank%20you%20and%26nbsp%3B%20don't%20forget%20to%20test%20your%20releases%20before%20you%20release%20them%20%3CLI-EMOJI%20id%3D%22lia_grinning-face-with-big-eyes%22%20title%3D%22%3Agrinning_face_with_big_eyes%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2258549%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Error%20while%20setting%20Zephyr%20environment%20up%20in%20VSCode%20(python7.4-venv%3F)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2258549%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi!%3C%2FP%3E%3CP%3ESuch%20package%20doesn't%20exist%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3EE%3A%20No%20se%20ha%20podido%20localizar%20el%20paquete%20python3-qr%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EA%20quick%20search%20on%20Google%20threw%20no%20results%20for%20%22python3-qr%22.%20Did%20you%20mean%3A%20%22%3CSTRONG%3Epython3-qrcode%3C%2FSTRONG%3E%22%3F%3C%2FP%3E%3CP%3E%3CSTRONG%3E%24%20dpkg%20-l%20%7C%20grep%20python3%20%7C%20grep%20qr%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3Eii%20python3-qrcode%207.4.2-4%20all%20QR%20Code%20image%20generator%20library%20-%20Python%203.x%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E