nextion.py - Python 3 conversion for 4.2.0 and 4.2.0

General support for the Pi-Star System
Post Reply
VE3RD
Posts: 113
Joined: Thu Oct 11, 2018 7:21 pm

nextion.py - Python 3 conversion for 4.2.0 and 4.2.0

Post 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'
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: 4.2.0 Beta feedback

Post 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
Andy

73 de MW0MWZ
http://pistar.uk
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

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

Post 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.
Andy

73 de MW0MWZ
http://pistar.uk
VE3RD
Posts: 113
Joined: Thu Oct 11, 2018 7:21 pm

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

Post 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
Post Reply