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
Could not set configuration: [Errno None] Other error
Traceback (most recent call last):
File "demo01.py", line 25, in
typewriter.image(img)
File "/home/ntq/.local/lib/python3.8/site-packages/escpos/escpos.py", line 99, in image
self._raw(header + im.to_raster_format())
File "/home/ntq/.local/lib/python3.8/site-packages/escpos/printer.py", line 85, in _raw
self.device.write(self.out_ep, msg, self.timeout)
File "/home/ntq/.local/lib/python3.8/site-packages/usb/core.py", line 979, in write
return fn(
File "/home/ntq/.local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 837, in bulk_write
return self.__write(self.lib.libusb_bulk_transfer,
File "/home/ntq/.local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 938, in __write
_check(retval)
File "/home/ntq/.local/lib/python3.8/site-packages/usb/backend/libusb1.py", line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 5] Input/Output Error
lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0aa7 Intel Corp.
Bus 001 Device 005: ID 1d90:20f1 Citizen Thermal Printer
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I'm having the same thing. I keep getting usb.core.USBError: [Errno 5] Input/Output Error
I'm using a raspberry pi zero 2 and I'm only trying to print an image and 3 lines of text
Here's my code:
python-escpos version: 2.2.0
python version: 3.8.5
operating system: Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-44-generic x86_64)
Printer: Citizen CT-D150
Problem:
lsusb:
check Usb Thermal Printer:
In python code:
typewriter = printer.Usb(0x1d90, 0x20f1, 0, 0x81, 0x2)
What I done:
sudo udevadm control --reload && sudo udevadm trigger
I do not know how to fix/solve this problem
Please advice/suggest.
best regards
The text was updated successfully, but these errors were encountered: