Skip to content

Instantly share code, notes, and snippets.

@alcidesrivera
Created October 21, 2015 01:43
Show Gist options
  • Save alcidesrivera/269998bf62251394496e to your computer and use it in GitHub Desktop.
Save alcidesrivera/269998bf62251394496e to your computer and use it in GitHub Desktop.
2015-10-21 01:30:10,616 1179 INFO ? openerp.addons.hw_escpos.controllers.main: error : [Errno 32] Pipe error
2015-10-21 01:30:10,619 1179 ERROR ? openerp.addons.hw_escpos.controllers.main: ESC/POS Error: [Errno 32] Pipe error
2015-10-21 01:30:10,620 1179 ERROR ? openerp.addons.hw_escpos.controllers.main: [Errno 32] Pipe error
------------------------------------------------------------
Traceback (most recent call last):
File "/home/openerp/apps/odoo/addons/hw_escpos/controllers/main.py", line 148, in run
printer = self.get_escpos_printer()
File "/home/openerp/apps/odoo/addons/hw_escpos/controllers/main.py", line 105, in get_escpos_printer
printers = self.connected_usb_devices()
File "/home/openerp/apps/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/usb/util.py", line 271, in get_string
langid
File "/usr/local/lib/python2.7/dist-packages/usb/control.py", line 173, in get_descriptor
data_or_wLength = desc_size)
File "/usr/local/lib/python2.7/dist-packages/usb/core.py", line 971, in ctrl_transfer
self.__get_timeout(timeout))
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 819, in ctrl_transfer
timeout))
File "/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 552, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
USBError: [Errno 32] Pipe error
------------------------------------------------------------
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/home/openerp/apps/odoo/addons/hw_escpos/controllers/main.py", line 188, in run
printer.close()
File "/home/openerp/apps/odoo/addons/hw_escpos/escpos/printer.py", line 52, in close
if not self.device.is_kernel_driver_active(self.interface):
AttributeError: 'NoneType' object has no attribute 'is_kernel_driver_active'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment