I have a simple serial port program that works perfectly when I run it from a remote serial login from my pc (putty). (not Ethernet). The pc is connected via a ftdi serial to 3.3V usb adapter. All good. But the problem is when I run the same program from the Python Shell running in the Dabian gui, the Python shell gives me an error:
Python 3.4.2 (default, Oct 19 2014, 13:31:11)
[GCC 4.9.1] on linux
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
Traceback (most recent call last):
File "/home/pi/my_python/my.py", line 7, in <module>
rcv = port.read(1)
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 460, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected?)')
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected?)
>>>
Thanks for any help.