Please go to pyusb discussion and not to discuss issues here. Thanks. https://github.com/pyusb/pyusb/discussions
Home
In the module libusb1.py the call to _lib.libusb_open passes two 64 bit ints, the first is a device ID (devid) and the second is the address of a pointer which the open call should return the address of a device handle object (_DeviceHandle). The name of the dll called is 'C:\WINDOWS\system32\libusb-1.0.dll' found in _lib._name and it is this call that fails if the device ID is for a non HID device.
Thanks for the link. I found in: https://github.com/pyusb/pyusb/discussions/419 a response from jonasmalacofilho that provides the link: https://github.com/libusb/libusb/wiki/Windows#How_to_use_libusb_on_Windows that states: "If your target device is not HID, and your device is not using WinUSB driver, you must install a driver before you can communicate with it using libusb. Currently, this means installing one of Microsoft's WinUSB, libusb-win32 or libusbK drivers." This does appear to describe...
You may also try here : https://github.com/pyusb/pyusb/discussions In any case, you will have to provide more context and info on versions, OS, drivers etc.
Dear Wander and team, I need your help for pyusb. I want to be able to send control transfers to usb devices, but this fails for devices that aren't HID devices, such as a hub or camera. I want to describe the problem with the following example: import usb.core import usb.util import usb.control usbdev = usb.core.find(idVendor=0x05e3, idProduct=0x0610) #Targus hub print(usbdev) usbdev = usb.core.find(idVendor=0x413c, idProduct=0x2112) #Dell keyboard print(usbdev) output: DEVICE ID 05e3:0610 on Bus...
tox: enable Python 3.9 testing with tox
docs: README: add mac OS installation instructions (#352)
interop: automatically UTF-8 encode strings in as_array
tree: update copyright notice
core: raise ValueError if no matching interface is found (#350)
setup: update author/contact metadata
docs: update minimum supported Python version
tests: minimal changeset for pytest support
deploy: generate, sign and upload a Python wheel in addition to the sdist
libusb1: discard partial prototypes if previous load failed
Merge #332: support pytest (disables currently unsuable hardware tests)
interop: fix call to deprecated and now removed array.fromstring
Merge #329: readme: link to FAQ
Link to FAQ
ci: add Python 3.9, drop Python 2.7/3.5
docs: fix simple typo, respectivelly -> respectively (#349)
Add missing error classes to the public names of usb.core
Don't check whether an explicitly passed langid is supported
Fix broken link in tutorial to libusb caveats
Deprecate the OpenUSB backend
miss me with that weeb shit (#205)
Fix incorrect return typing for openusb_intr_xfer
keep usb.version_info tuple length at 3
Fix project URL
Fix #203: libusb sometimes cleaned up too early. (#227)
Workaround setuptools_scm bug for Ubuntu 16.04
Updated description for PyPI in setup.py (#280)
Moving to the standard Apache 2.0 License.
Don't call libusb_exit on a null pointer (#279)
Make the tox run exit with 1 if any test fails
run tests via tox and github actions
Fix URL rendering
tutorial: fix the description of the return of find(find_all=True)
Skip redirect that fails due to lack of SSL cert
Use setuptools_scm for versioning
Use setuptools_scm for versioning
Run tox ghactions workflow on pull requests
Add USBError to the list of public names from usb.core
Remove out of place post scriptum
Make find() robust against inaccessible attributes
Typo fix: libusb1.py LIBUSB_SUCESS -> LIBUSB_SUCCESS (#223)
Expose libusb_get_parent of libusb1 (#202)
Fix example for when there's no active configuration (#275)
simplify version_info regex
Fix outdated backend names in backend package __all__
support older setuptools versions
Fix links to libusb and its documentation
Link workaround to corresponding setuptools_scm bug fix
deploy: don't pin remote to origin or delete dist/
github-actions: dont depend on tox-gh-actions
Ignore last byte from string descriptors with odd number of bytes
Install libusb-1.0 on the Windows jobs
Make deploy script compatible with setuptools_scm and add prompts
Remove outdated website and contact information
Append '-editable' to version for editable installs
fix errno.ENODATA not available on windows
Catch all errors when accessing attributes from find()
Link to https website
Add common causes to 'has no langid' ValueError message
Prevent AttributeErrors from non-portable libusb0 functions
Normalize all copyright disclaimers
Increase the number of parallel jobs
Merge pull request #312 from ap--/version-indicate-editable
Add missing comma in string list (#277)
Remove ReleaseNotes.txt from the manifest
Implement is_kernel_driver_active on the libusb0 backend
Raise a USBError for obviously invalid descriptors
Merge pull request #201 from pyusb/license-change
Merge pull request #308 from ap--/github-actions-tox
Merge pull request #309 from ap--/libusb0-errno-enodata
readme: do some minor clean up
Remove non-ASCII dashes from copyright notices (#297)
Add USBTimeoutError
back to bsd 3 clause (#281)
Fix misspelled interrupt in docstring (#306)
* Moved 0.x version from cvs to svn
* Initial PyUSB 1.0 implementation
* Initial PyUSB 1.0 implementation
* Initial implementation of libusb 1.0 backend
* Separated write and read endpoint methods
* PIC 184550 Test FW complete.
* Applied patch 2827110
* Fixed some minor issues in usb.core.find()
* Fixed some minor issues in usb.core.find()
* Fixed bug 2832279
* Patch '2837638' applied.
* Fix: buffer type convertions in the backends. Thanks to Thomas Reitmayr to point out this problem.
* Included backend test case (v1.0)
* Included util test case