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
Dear community;
I use Rasbian, I got the phoenix printer
(http://pyramidacceptors.com/phoenix-printer/) from PTI. I use Rasbian as OS. I
attach a dump of the details of printer. I used following python code:
from escpos import *
Epson = printer.Usb(0x2504,0x0300)
Epson.text("Hello World")
Epson.cut()
Running this code as root results:
File "gpio.py", line 5, in <module>
Epson.text("Hello World")
File "/usr/local/lib/python2.7/dist-packages/escpos/escpos.py", line 264, in text
self._raw(text)
File "/usr/local/lib/python2.7/dist-packages/escpos/printer.py", line 58, in _raw
self.device.write(self.out_ep, msg, self.interface)
File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 625, in write
fn = fn_map[self._ctx.get_endpoint_type(self, endpoint, intf)]
File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 180, in get_endpoint_type
etype = util.endpoint_type(e.bmAttributes)
AttributeError: 'NoneType' object has no attribute 'bmAttributes'
All the best;
Original issue reported on code.google.com by [email protected] on 18 Jul 2014 at 2:52
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 18 Jul 2014 at 2:52The text was updated successfully, but these errors were encountered: