Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wheels for Windows #10

Open
rgbpcb opened this issue Sep 3, 2022 · 4 comments
Open

wheels for Windows #10

rgbpcb opened this issue Sep 3, 2022 · 4 comments

Comments

@rgbpcb
Copy link

rgbpcb commented Sep 3, 2022

README.md says:

All releases include wheels for Linux, macOS, and Windows for multiple architectures.

Where exactly do I find these "wheels" for Windows, and how exactly do I use them to install libusb-package?

It would be nice if README.md made this clear.

As a side note, I ran pip install . in the libusb-package-1.0.26.0 directory, but then

import os
os.environ['PYUSB_DEBUG'] = 'debug'
import usb.core
usb.core.find()

from here yields

2022-09-03 00:00:00,241 ERROR:usb.libloader:'Libusb 1' could not be found
2022-09-03 00:00:00,241 ERROR:usb.backend.libusb1:Error loading libusb 1.0 backend
2022-09-03 00:00:00,242 ERROR:usb.libloader:'OpenUSB library' could not be found
2022-09-03 00:00:00,242 ERROR:usb.backend.openusb:Error loading OpenUSB backend
2022-09-03 00:00:00,244 ERROR:usb.libloader:'Libusb 0' could not be found
2022-09-03 00:00:00,244 ERROR:usb.backend.libusb0:Error loading libusb 0.1 backend
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python310\lib\site-packages\usb\core.py", line 1309, in find
    raise NoBackendError('No backend available')
usb.core.NoBackendError: No backend available
@Tbruno25
Copy link

libusb_package replaces usb.core.

Try using libusb_package.find() to see if it solves your issue.

@rgbpcb
Copy link
Author

rgbpcb commented Dec 4, 2022

My issue is that README.md mentions some "wheels for Linux, macOS, and Windows", but doesn't explain where exactly to find these "wheels" (for example for Windows) and how to use them to install libusb-package.

For that reason, I don't know how to install libusb-package.

@Tbruno25
Copy link

Tbruno25 commented Dec 7, 2022

The readme is pretty clear in my opinion -- this is more of a python basics question.
The whl files generated can be found on pypi under Navigation > Download files as with any other package.

But based on your original post -- if you ran pip install . with no errors then you already have libusb_package installed.

@rgbpcb
Copy link
Author

rgbpcb commented Jan 15, 2023

The whl files generated can be found on pypi under Navigation > Download files

Please put this info into the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants