Community mailing list archives

community@mail.odoo.com

Re: POS Configuration V9

by
justice
- 09/26/2016 20:19:41
Hi Martin,

thank you for you response.

i now update my pyusb package from pyusb==1.0.0 to pyusb==1.0.0b1

now i get another error.

-------------------------------------------------------------------------------------

2016-09-27 00:13:35,926 19339 ERROR ? 
openerp.addons.hw_escpos.controllers.main: ESC/POS Error: 'NoneType' 
object has no attribute 'bmAttributes'
2016-09-27 00:13:35,926 19339 ERROR ? 
openerp.addons.hw_escpos.controllers.main: 'NoneType' object has no 
attribute 'bmAttributes'
------------------------------------------------------------
Traceback (most recent call last):
   File "/home/justice/repo/odoo/addons/hw_escpos/controllers/main.py", 
line 168, in run
     self.print_status(printer)
   File "/home/justice/repo/odoo/addons/hw_escpos/controllers/main.py", 
line 202, in print_status
     eprint.text('\n\n')
   File "/home/justice/repo/odoo/addons/hw_escpos/escpos/escpos.py", 
line 826, in text
     self._raw(txt)
   File "/home/justice/repo/odoo/addons/hw_escpos/escpos/printer.py", 
line 68, in _raw
     if len(msg) != 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'
------------------------------------------------------------

thanks in advance


On 26.09.2016 11:17, Martin Trigaux wrote:
> On 24/09/16 17:47, Justice wrote:> i get an error saying "ESC/POS Error: The device does not support 
> the > specified langid".
>
> Hi,
>
> Could you check which version of pyusb you have installed? The
> recommanded one is 1.0.0b1
>
> Martin
> -- Martin Trigaux Odoo https://odoo.com https://github.com/mart-e
>
> _______________________________________________
> Mailing-List: https://www.odoo.com/groups/community-59
> Post to: mailto:community@mail.odoo.com
> Unsubscribe: https://www.odoo.com/groups?unsubscribe
>