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
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
Picture of the issue: https://twitter.com/sezzyann72/status/739477225637052416
It looks like permissions on
/dev/ttyS0
are not set up correctly. When you type:You should get the following readout:
Also,
should return:
The important group to have is
dialout
.This error can usually be fixed with:
I'm opening this issue for discussion.
The text was updated successfully, but these errors were encountered: