Page 1 of 1

nextion.py - Python 3 conversion for 4.2.0 and 4.2.0

Posted: Tue Feb 06, 2024 5:56 pm
by VE3RD
Just a followup

sudo python3 nextion3.py /home/pi-star/Nextion_Temp/NX3224K024.tft /dev/ttyUSB0
Traceback (most recent call last):
File "/home/pi-star/Scripts/nextion3.py", line 19, in <module>
import serial
ModuleNotFoundError: No module named 'serial'

Re: 4.2.0 Beta feedback

Posted: Wed Feb 07, 2024 8:56 pm
by MW0MWZ
VE3RD wrote: Tue Feb 06, 2024 5:56 pm Just a followup

sudo python3 nextion3.py /home/pi-star/Nextion_Temp/NX3224K024.tft /dev/ttyUSB0
Traceback (most recent call last):
File "/home/pi-star/Scripts/nextion3.py", line 19, in <module>
import serial
ModuleNotFoundError: No module named 'serial'
You might need the python3-serial module installed

Code: Select all

sudo apt update && sudo apt -y install python3-serial

Re: nextion.py - Python 3 conversion for 4.2.0 and 4.2.0

Posted: Sun Feb 11, 2024 3:37 pm
by MW0MWZ
nextion.py python3 conversion is now done, you can find it in /usr/local/bin/nextion/ along with all the stock screen layouts.
it should call python3 without you needing any additional gymnastics, and it should remind you of what module to install if you do not have it.

@VR3RD - I hope this helps solve your issue.

Re: nextion.py - Python 3 conversion for 4.2.0 and 4.2.0

Posted: Sun Feb 11, 2024 11:16 pm
by VE3RD
Thankyou Andy
I had a little twiddling on the setup script, but it all worked out
Works like a charm

Thankyou
Phil Ve3Rd