ModuleNotFoundError: No module named 'lxml'

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

ModuleNotFoundError: No module named 'lxml'

Jump to solution
5,155 Views
Nina
Contributor I

Heart that there is new release for  ararch64 , I try the example jn5189dk6_zigbee_router_bm. The problem is still there. 

I can use python on terminal.

terminal: 'lxml' python worksterminal: 'lxml' python works

also terminal in MCUXpresso IDE.

termina: 'lxml' python workstermina: 'lxml' python works

build the example jn5189dk6_zigbee_router_bm.

tools build does not work. (ZPSConfig)

still  ModuleNotFoundError:No module named 'lxml'.

build tool errorbuild tool error

no pdum_gen.hno pdum_gen.h

Do I miss sth.

Look forward to your kind advice.

0 Kudos
Reply
1 Solution
5,028 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

By any chance, do you have multiple Python versions installed on your system? Also, please consider upgrading pip.

Regards,
Eduardo.

View solution in original post

0 Kudos
Reply
7 Replies
5,107 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @Nina

Hope you are doing well.

This error may be due to some missing python modules, could you please try installing lxml module for python? You can try using:

pip install lxml

Regards,
Eduardo. 

0 Kudos
Reply
5,091 Views
Nina
Contributor I
thank you first. u see pic 1, that I have installed lxml, but the error still there.
0 Kudos
Reply
5,069 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

What is your MCUXpresso IDE version? Which SDK version are you using?

Could you please confirm that you have correctly added Python to the system's PATH? Did you install pycryptodome python module?

Regards,
Eduardo.

0 Kudos
Reply
5,052 Views
Nina
Contributor I

thanks.
I use the MCUXPressoIDE_11.8.0_1165.aarch64.pkg.
MCUXpresso IDE v11.8.0 [Build 1165] [2023-07-26]
SDK_2_6_12_JN5189DK6

nina@fengdeMacBook-Pro-2 ~ % which python
python: aliased to /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
nina@fengdeMacBook-Pro-2 ~ % 


nina@fengdeMacBook-Pro-2 ~ % pip install pycryptodome
Requirement already satisfied: pycryptodome in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (3.17)
 
[notice] A new release of pip is available: 23.1.2 -> 23.2.1
[notice] To update, run: pip install --upgrade pip
nina@fengdeMacBook-Pro-2 ~ % 
0 Kudos
Reply
5,029 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

By any chance, do you have multiple Python versions installed on your system? Also, please consider upgrading pip.

Regards,
Eduardo.

0 Kudos
Reply
4,625 Views
Nina
Contributor I

Thanks very much.

 

I update to macOS Monterey(12.7).


add path "/usr/local/bin" to MCUXpresso IDE Paths.

1697723757476.jpg

restart IDE.

it works.

0 Kudos
Reply
5,141 Views
Irene
NXP Pro Support
NXP Pro Support

l will look into this issue.

0 Kudos
Reply