ygate icon indicating copy to clipboard operation
ygate copied to clipboard

Line 60 issue

Open KO4LFZ opened this issue 1 year ago • 3 comments

I am setting this up on a Pi Zero W on a FTM-300. I have made the correction to the serial port by adding placing the following in line 36 SERIAL_PORT = '/dev/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0' ## Linux

When I run the script I get the following:

File "/home/KO4LFZ/./ygate.py", line 60 SERIAL_PORT = '/dev/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0# ^ SyntaxError: unterminated string literal (detected at line 60)

I have upgraded to python 3.12.2

KO4LFZ avatar Mar 10 '24 00:03 KO4LFZ

missing the close quote at the end of your device name. should be using ttyUSB0 too?

craigerl avatar Mar 10 '24 01:03 craigerl

No this is the error.

/home/KO4LFZ/./ygate.py:174: SyntaxWarning: invalid escape sequence '[' if (re.search('[.] <UI.>:', str(line))): # Yaesu's nmea9-formatted suffix means we found a routing block /home/KO4LFZ/./ygate.py:176: SyntaxWarning: invalid escape sequence '[' routing = re.sub(' [.] <UI.>:', ',qAO,' + USER + ':', routing) # drop nmea/yaesu gunk, append us to routing block Traceback (most recent call last): File "/home/KO4LFZ/./ygate.py", line 22, in import serial ModuleNotFoundError: No module named 'serial'

I have attached the script as a notepad file APRS.txt

KO4LFZ avatar Mar 10 '24 04:03 KO4LFZ

from the readme,

If you see errors like missing modules, or "not defined", you might need additional python libraries. For example, if you see serial errors, make sure pyserial is installed. "sudo pip3 install pyserial"

craigerl avatar Mar 11 '24 03:03 craigerl