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
When instantiating a USB printer under Windows 11 using libsusb and class escpos.impl.epson.GenericESCPOS I discovered that you have to put in a delay of at least ~130 ms before calling init(). Otherwise there will be an error by libusb (or Windows, actually?) that the device could not be opened.
Quick'n'dirty™ workaround:
while True:
try:
printer.init()
except:
continue
else:
break
The text was updated successfully, but these errors were encountered:
anoraxx
changed the title
Timeout after instantiating GenericESCPOS
Delayed availability of USB instance of GenericESCPOS
Feb 24, 2022
When instantiating a USB printer under Windows 11 using libsusb and class
escpos.impl.epson.GenericESCPOS
I discovered that you have to put in a delay of at least ~130 ms before callinginit()
. Otherwise there will be an error by libusb (or Windows, actually?) that the device could not be opened.Quick'n'dirty™ workaround:
The text was updated successfully, but these errors were encountered: