ModuleNotFoundError: No module named 'lxml'

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

ModuleNotFoundError: No module named 'lxml'

ソリューションへジャンプ
8,781件の閲覧回数
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,654件の閲覧回数
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,733件の閲覧回数
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,717件の閲覧回数
Nina
Contributor I
thank you first. u see pic 1, that I have installed lxml, but the error still there.
0 件の賞賛
返信
8,695件の閲覧回数
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,678件の閲覧回数
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,655件の閲覧回数
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,251件の閲覧回数
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,767件の閲覧回数
Irene
NXP Pro Support
NXP Pro Support

l will look into this issue.

0 件の賞賛
返信