Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/home/pi/.local/lib/python3.5/site-packages/serial/serialposix.py", line 265, in open
  3. self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
  4. PermissionError: [Errno 13] Permission denied: '/dev/serial0'
  5.  
  6. During handling of the above exception, another exception occurred:
  7.  
  8. Traceback (most recent call last):
  9. File "Desktop/Old/mustwork.py", line 14, in <module>
  10. timeout=1
  11. File "/home/pi/.local/lib/python3.5/site-packages/serial/serialutil.py", line 240, in __init__
  12. self.open()
  13. File "/home/pi/.local/lib/python3.5/site-packages/serial/serialposix.py", line 268, in open
  14. raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
  15. serial.serialutil.SerialException: [Errno 13] could not open port /dev/serial0: [Errno 13] Permission denied: '/dev/serial0'
  16.  
  17. $ uname -a
  18. Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
  19.  
  20. $ cat /boot/config.txt
  21. enable_uart=1
  22.  
  23. $ grep -v ^# /boot/config.txt
  24. enable_uart=1
  25.  
  26. $ ls -lh /dev/serial*
  27. lrwxrwxrwx 1 root root 5 mai 18 20:59 /dev/serial0 -> ttyS0
  28. lrwxrwxrwx 1 root root 7 mai 18 20:59 /dev/serial1 -> ttyAMA0
  29.  
  30. $ groups ${USER}
  31. pi : pi adm tty dialout cdrom sudo audio video plugdev games users input netdev spi i2c gpio
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement