Community mailing list archives
community@mail.odoo.com
Browse archives
Re: POS Configuration V9
byHi,You're using an unsupported printer, sometimes different printers use different endpoints. You could try to find out if this is the case and set them in the code [1]. People have had success doing this in the past [2].Kind regards,JorenOn Tue, Sep 27, 2016 at 3:18 PM, justice Nanhou <justice.nanhou@gmail.com> wrote: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.contr
ollers.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.p y", line 168, in run
self.print_status(printer)
File "/home/justice/repo/odoo/addons/hw_escpos/controllers/main.p y", 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:
> 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-eOn 24/09/16 17:47, Justice wrote:______________________________
_________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe
______________________________
_________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe
______________________________
_________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe