Fix PlatformIO [Errno 13] Permission denied: '/dev/ttyUSB0' with Linux

The problem:
Traceback (most recent call last):
  File "/home/../.platformio/penv/lib/python3.6/site-packages/serial/", line 265, in open
    self.fd =, 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

Source: link

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel