The problem: " Traceback (most recent call last): File "/home/../.platformio/penv/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:
"
Open the terminal and write:
sudo chmod a+rw /dev/ttyUSB0
Just running chmod for a specific device is a temporary workaround. The proper and permanent solution is to install PlatformIO udev rules by running the following command: