ModuleNotFoundError: No module named 'lxml'

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

ModuleNotFoundError: No module named 'lxml'

跳至解决方案
8,760 次查看
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 项奖励
回复
1 解答
8,633 次查看
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 项奖励
回复
7 回复数
8,712 次查看
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 项奖励
回复
8,696 次查看
Nina
Contributor I
thank you first. u see pic 1, that I have installed lxml, but the error still there.
0 项奖励
回复
8,674 次查看
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 项奖励
回复
8,657 次查看
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 项奖励
回复
8,634 次查看
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 项奖励
回复
8,230 次查看
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 项奖励
回复
8,746 次查看
Irene
NXP Pro Support
NXP Pro Support

l will look into this issue.

0 项奖励
回复