ModuleNotFoundError: No module named 'lxml'

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

ModuleNotFoundError: No module named 'lxml'

996件の閲覧回数
Tome-mbedded
Contributor II

hello everyone@nxp

I have re-installed MCUpressoIDE, python3, and sdk of JN8189, and imported the project JN-AN-1246, but failed to compile LTO,It has the following error

捕获.PNG

 

The ide version I am using is MCUXpressoIDE 11.9.02144

SDK version:SDK_2_6_12_JN5189

JN-AN-1246:v2008

python is also installed

捕获1.PNG

What is the reason for this error?

Please help solve it. 

thank you

 

0 件の賞賛
9 返答(返信)

948件の閲覧回数
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Tome-mbedded 

Thanks for thinking of NXP products and hope you are doing well.

Can you please let me know the detailed steps on this case?

Firstly import the SDK then import the project or firstly import the project  then install the SDK?

So that I can have a try to see whether I can reproduce is locally.

And also please unzip the project file before import to have a try.

 

Best regards,

Christine.

タグ(1)
0 件の賞賛

940件の閲覧回数
Tome-mbedded
Contributor II

thank you @Christine_Li 

I first installed MCU Xpresso IDE, installed Python, installed sdk, and imported JN1426 project, but the compilation failed and the error message did not show lxml, but this has already been installed.

Is there something wrong with my installation environment?

I installed it according to this procedure

https://www.nxp.com.cn/document/guide/getting-started-with-jn5189:GS-JN5189

 

0 件の賞賛

926件の閲覧回数
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Tome-mbedded 

Thanks for your reply.

I think your steps are no problem.

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,

Christine.

0 件の賞賛

922件の閲覧回数
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Tome-mbedded 

I tried on my side and after installed lxml, this issue can be resolved.

Christine_Li_0-1709106242517.png

 

Please help to try.

And also remind, please check and confirm you have add python into the environment variables PATH.

Best regards,

Christine.

タグ(1)
0 件の賞賛

902件の閲覧回数
Tome-mbedded
Contributor II

hi @Christine_Li 

I reinstalled lxml, but the compilation still failed

Tomembedded_0-1709138743714.png

Tomembedded_1-1709139421185.png

 

 

0 件の賞賛

893件の閲覧回数
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Tome-mbedded 

Can you please check and confirm you have add python into the environment variables PATH.

 

Best regards,

Christine.

0 件の賞賛

790件の閲覧回数
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Tome-mbedded 

Did you check the python environment variables path?

Anything else I can do for you on this case?

 

Best regards,

Christine.

タグ(1)
0 件の賞賛

785件の閲覧回数
Tome-mbedded
Contributor II

thank you,

I have added python to the environment variables, but the compilation returns the same error.

I can't take the next step.

Is there any other reason? Maybe I need to reinstall the entire environment

0 件の賞賛

779件の閲覧回数
Christine_Li
NXP TechSupport
NXP TechSupport

Hi, @Tome-mbedded 

I am so sorry about the inconvenience.

But according to my experience, this error is related to python environment variable path and lxml install.

Also, as you can see my attachment,  I have reproduced this issue on my side, and after re-installed lxml, issue is resolved.

So please double check your python environment variable path and if still failed, then please re-try with a new environment.

I apologize for the inconvenience again.

 

Best regards,

Christine.

タグ(1)
0 件の賞賛