You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SerialException: Could not open port /dev/ttyS0 [Errno 13] Permission denied: '/dev/ttyS0' #17
I have updated and upgraded still it is showing
Traceback (most recent call last):
File "serial_read.py", line 11, in
timeout=1
File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 261, in init
self.open()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 278, in open
raise SerialException("could not open port %s: %s" % (self._port, msg))
serial.serialutil.SerialException: could not open port /dev/ttyS0: [Errno 2] No such file or directory: ' /dev/ttyS0'
this error what i need to do
I had the same problem, make sure that serial port communication is enabled :)
sudo raspi-config
then
5 Interfacing Options
P6 Serial.
Select NO to Would you like a login console...
Select YES to Would you like the serial port hardware ...
It will then show
The serial login shell is disabled
The serial interface is enabled
Ok
Finish
Reboot - Yes.
Reacted by akeech, snappercayt, khan, guntiger7, Zachary Sasser, Daniel López Puig, hanoi-s, Cuneyt12, Alex Dolphin, Tommy Falgout and 3 more
Reacted by akeech and Byeongrok Chae
Reacted by akeech, snappercayt, Andreas Schwab, Rajesh Rudravarjula, Alejandro-Dom, Cuneyt12, Alex Dolphin, aachermann, Irem Nisa Oz, Tommy Falgout and 1 more
Reacted by akeech and Byeongrok Chae
Reacted by akeech, Tommy Falgout and Byeongrok Chae
Activity
mahesh-sankaraiah commentedon May 29, 2018
I have updated and upgraded still it is showing
Traceback (most recent call last):
File "serial_read.py", line 11, in
timeout=1
File "/usr/lib/python2.7/dist-packages/serial/serialutil.py", line 261, in init
self.open()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 278, in open
raise SerialException("could not open port %s: %s" % (self._port, msg))
serial.serialutil.SerialException: could not open port /dev/ttyS0: [Errno 2] No such file or directory: ' /dev/ttyS0'
this error what i need to do
Alisa1989 commentedon Aug 22, 2018
I had the same problem, make sure that serial port communication is enabled :)
sudo raspi-config
then
Select NO to Would you like a login console...
Select YES to Would you like the serial port hardware ...
It will then show
The serial login shell is disabled
The serial interface is enabled
mpendwavivi commentedon Feb 18, 2019
thank you alisa, it has worked for me