We are trying to connect USB thermal printer using escpos. Below is the code:
from escpos.printer import getUSBPrinter
printer = getUSBPrinter(commandSet='Generic')(idVendor=0x067B,idProduct=0x2305)
printer.text("Hello")
printer.lf()
We are getting the below error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\EKPRSGR\AppData\Local\Continuum\anaconda3\lib\site-packages\usb\core.py", line 1263, in find
raise NoBackendError('No backend available')