myersg@SOI-MYERSG:~$ cd hellolt myersg@SOI-MYERSG:~/hellolt$ python hello.reflect.45.py command line: hello.light.45.py serial_port myersg@SOI-MYERSG:~/hellolt$ sudo python hello.reflect.45.py [sudo] password for myersg: command line: hello.light.45.py serial_port myersg@SOI-MYERSG:~/hellolt$ sudo python hello.reflect.45.py command line: hello.light.45.py serial_port myersg@SOI-MYERSG:~/hellolt$ myersg myersg: command not found myersg@SOI-MYERSG:~/hellolt$ python hello.reflect.45.py command line: hello.light.45.py serial_port myersg@SOI-MYERSG:~/hellolt$ myersg myersg: command not found myersg@SOI-MYERSG:~/hellolt$ python hello.reflect.45.py /dev/ttyUSB0 Traceback (most recent call last): File "hello.reflect.45.py", line 75, in ser = serial.Serial(port,9600) 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/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0' myersg@SOI-MYERSG:~/hellolt$ sudo python hello.reflect.45.py /dev/ttyUSB0 Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1489, in __call__ return self.func(*args) File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 536, in callit func(*args) File "hello.reflect.45.py", line 40, in idle byte4 = ord(ser.read()) File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 460, in read raise SerialException('device reports readiness to read but returned no data (device disconnected?)') SerialException: device reports readiness to read but returned no data (device disconnected?) ^CTraceback (most recent call last): File "hello.reflect.45.py", line 101, in root.mainloop() File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1073, in mainloop self.tk.mainloop(n) KeyboardInterrupt myersg@SOI-MYERSG:~/hellolt$ ^C myersg@SOI-MYERSG:~/hellolt$ ^C myersg@SOI-MYERSG:~/hellolt$ ^C myersg@SOI-MYERSG:~/hellolt$