Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "word-roller.py", line 7, in <module>
  3. printer = serial.Serial('/dev/usb/lp0',19200,timeout = 5) # open serial ports
  4. File "/usr/local/lib/python2.7/dist-packages/serial/serialutil.py", line 236, in __init__
  5. self.open()
  6. File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 272, in open
  7. self._reconfigure_port(force_update=True)
  8. File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 315, in _reconfigure_port
  9. raise SerialException("Could not configure port: {}".format(msg))
  10. serial.serialutil.SerialException: Could not configure port: (25, 'Inappropriate ioctl for device')
  11.  
  12. import serial
  13. printer = serial.Serial('/dev/usb/lp0',19200,timeout = 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement