Odoo Help

0

No module named usb.core

By
548
on 8/27/14, 3:44 AM 7,377 views

I am trying to install this module ESC/POS Hardware Driver But giving this error except_orm: ('Error', u'Unable to install module "hw_escpos" because an external dependency is not met: No module named usb.core')

Any one can help how to install it??

 

1
John Baldwin
On 2/9/15, 4:58 AM

Prequisites:

##Remove existing Ubuntu/Deb usb app
sudo apt-get remove python-usb

##Since all versions of pyusb are either alpha or beta you must declare a specific version. 1.0.0b2 was the latest at this time.
pip install pyusb==1.0.0b2 

##QR Code is the next requirement
apt-get install python-qrcode

Hopefully this will save everyone a ton of headaches.

1
Mario Arias Badila
On 8/27/14, 1:24 PM

Hi, you need to install lates pyusb...

'sudo pip install --pre pyusb'

Regards,

-Mario

0
Malik Sikandar Hayat
On 4/27/17, 1:32 AM

Hi,

I am having same challenge but I have windows 2010 so how to install this usb.core? tks

Under windows you need :

- have libusb-win32 installed on system.

- download pysub zip file from sourceforge https://sourceforge.net/projects/pyusb/ .It contains auto installer

zahid
on 4/27/17, 6:29 AM

Hi Zahid,

Thanks for your reply and seems I was able to install but still when I try to install module same message. Is there any other step I need to take,

I am following this url,

https://github.com/walac/pyusb

but still error,

Unable to install module "hw_escpos" because an external dependency is not met: No module named usb.core

installation output

c:\python setup.py install

running install

running build

running build_py

creating build

creating build\lib

creating build\lib\usb

copying usb\control.py -> build\lib\usb

copying usb\core.py -> build\lib\usb

copying usb\legacy.py -> build\lib\usb

copying usb\util.py -> build\lib\usb

copying usb\_debug.py -> build\lib\usb

copying usb\_interop.py -> build\lib\usb

copying usb\__init__.py -> build\lib\usb

creating build\lib\usb\backend

copying usb\backend\libusb01.py -> build\lib\usb\backend

copying usb\backend\libusb10.py -> build\lib\usb\backend

copying usb\backend\openusb.py -> build\lib\usb\backend

copying usb\backend\__init__.py -> build\lib\usb\backend

running install_lib

creating C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb

creating C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend

copying build\lib\usb\backend\libusb01.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend

copying build\lib\usb\backend\libusb10.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend

copying build\lib\usb\backend\openusb.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend

copying build\lib\usb\backend\__init__.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend

copying build\lib\usb\control.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb

copying build\lib\usb\core.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb

copying build\lib\usb\legacy.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb

copying build\lib\usb\util.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb

copying build\lib\usb\_debug.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb

copying build\lib\usb\_interop.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb

copying build\lib\usb\__init__.py -> C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend\libusb01.py to libusb01.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend\libusb10.py to libusb10.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend\openusb.py to openusb.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\backend\__init__.py to __init__.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\control.py to control.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\core.py to core.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\legacy.py to legacy.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\util.py to util.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\_debug.py to _debug.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\_interop.py to _interop.cpython-36.pyc

byte-compiling C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\usb\__init__.py to __init__.cpython-36.pyc

running install_egg_info

Writing C:\Users\hayatms\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\pyusb-1.0.0a2-py3.6.egg-info

Malik Sikandar Hayat
on 4/27/17, 7:33 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 8/27/14, 3:44 AM
Seen: 7377 times
Last updated: 4/27/17, 1:32 AM