Python is not my native language. I was born into Basic Assemble Language and machine code. That said, here is the issue I am getting:
OS is Linux Mint
Python 3.6ish using IDLE
Meshtastic on Heltec Wireless Stick and TTGO OLED.
Traceback (most recent call last):
File "/home/dennis/.local/lib/python3.6/site-packages/serial/serialposix.py", line 265, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 13] Permission denied: '/dev/ttyUSB0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dennis/Desktop/gob.py", line 3, in <module>
interface=meshtastic.StreamInterface()
File "/home/dennis/.local/lib/python3.6/site-packages/meshtastic/__init__.py", line 365, in __init__
devPath, 921600, exclusive=True, timeout=0.5)
File "/home/dennis/.local/lib/python3.6/site-packages/serial/serialutil.py", line 240, in __init__
self.open()
File "/home/dennis/.local/lib/python3.6/site-packages/serial/serialposix.py", line 268, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
Yes...I installed PYSERIAL and uninstalled Serial.
The program is Three Line starting with Import Meshtastic. It just beacon HELLO every 60 sec for the purpose of seeing how far I can get using Meshtastic.
Note: I have written many Arduino Apps with LoRa and Ive gotton DX of 10 mile LOS.