ModuleNotFoundError: No module named 'lxml'

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

ModuleNotFoundError: No module named 'lxml'

659 Views
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 Kudos
9 Replies

611 Views
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.

Tags (1)
0 Kudos

603 Views
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 Kudos

589 Views
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 Kudos

585 Views
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.

Tags (1)
0 Kudos

565 Views
Tome-mbedded
Contributor II

hi @Christine_Li 

I reinstalled lxml, but the compilation still failed

Tomembedded_0-1709138743714.png

Tomembedded_1-1709139421185.png

 

 

0 Kudos

556 Views
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 Kudos

453 Views
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.

Tags (1)
0 Kudos

448 Views
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 Kudos

442 Views
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.

Tags (1)
0 Kudos