Community mailing list archives

community@mail.odoo.com

Re: what is the solution of the problem for "hw_escpos" module in odoo v9??

by
Alien Group Lda, Alaney Kilson Dória
- 04/20/2016 16:25:15
if it is linux, you need to set the permission rules for this device so you can have access without root user. See linux device rules

<img src="cid:part1.07000502.00080505@alien-group.com" alt="ALIEN GROUP LDA">

Alaney Dória

CEO | Odoo Consultant

em.alaney.doria@alien-group.com

tm.+244 913 728 600

<img src="cid:part9.09000107.05090404@alien-group.com" alt="Código QR">

Rua Doutor Agostinho Neto, 156, Bairro Azul, Luanda - Angola, Tel: +244 913 728 600 | +244 913 728 650,
Website: www.alien-group.com, Email: geral@alien-group.com

<img src="cid:part12.00080102.09050704@alien-group.com" style="vertical-align:top;" alt=""> Não imprima este email caso não seja estritamente necessário. A Terra agradece-lhe!

On 04/13/2016 03:07 PM, omar frikha wrote:
raceback (most recent call last):
  File "/home/odoo/odoo-dev/odoo/addons/hw_escpos/controllers/main.py", line 148, in run
    printer = self.get_escpos_printer()
  File "/home/odoo/odoo-dev/odoo/addons/hw_escpos/controllers/main.py", line 105, in get_escpos_printer
    printers = self.connected_usb_devices()
  File "/home/odoo/odoo-dev/odoo/addons/hw_escpos/controllers/main.py", line 92, in connected_usb_devices
    'name': usb.util.get_string(printer, 256, printer.iManufacturer) + " " + usb.util.get_string(printer, 256, printer.iProduct)
  File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0b2-py2.7.egg/usb/util.py", line 271, in get_string
    langid
  File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0b2-py2.7.egg/usb/control.py", line 173, in get_descriptor
    data_or_wLength = desc_size)
  File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0b2-py2.7.egg/usb/core.py", line 955, in ctrl_transfer
    self._ctx.managed_open()
  File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0b2-py2.7.egg/usb/core.py", line 105, in managed_open
    self.handle = self.backend.open_device(self.dev)
  File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0b2-py2.7.egg/usb/backend/libusb1.py", line 722, in open_device
    return _DeviceHandle(dev)
  File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0b2-py2.7.egg/usb/backend/libusb1.py", line 600, in __init__
    _check(_lib.libusb_open(self.devid, byref(self.handle)))
  File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0b2-py2.7.egg/usb/backend/libusb1.py", line 552, in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
USBError: [Errno 13] Access denied (insufficient permissions)

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe