adafruit / Python-Thermal-Printer

217 stars 147 forks source link

SerialException: write failed: [Errno 5] Input/output error #26

Closed parikh5555 closed 6 years ago

parikh5555 commented 6 years ago

Connected Thermal printer with Ubuntu PC but not working Given all permission to USB port

Traceback (most recent call last): File "/media/abhishek/New Volume/OSPL_Energy/ABS sensor tester/Knorr_bremse/thermal_printer.py", line 22, in printer.inverseOn() File "/media/abhishek/New Volume/OSPL_Energy/ABS sensor tester/Knorr_bremse/Adafruit_Thermal.py", line 402, in inverseOn self.writeBytes(29, 66, 1) File "/media/abhishek/New Volume/OSPL_Energy/ABS sensor tester/Knorr_bremse/Adafruit_Thermal.py", line 189, in writeBytes super(Adafruit_Thermal, self).write(chr(arg)) File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 571, in write raise SerialException('write failed: {}'.format(e)) SerialException: write failed: [Errno 5] Input/output error

ladyada commented 6 years ago

hiya if you purchased from adafruit we do tech support in our forums. thanks!