Hi!

I am getting this error:

2022-06-06 10:54:33,681 ERROR:usb.libloader:Libusb 1 
(C:\WINDOWS\system32\libusb-1.0.dll) could not be loaded
Traceback (most recent call last):
  File "C:\Users\ecotx\Envs\E-watt\lib\site-packages\usb\libloader.py", line 
116, in load_library
    return lib_cls(lib)
  File 
"C:\Users\ecotx\AppData\Local\Programs\Python\Python310\lib\ctypes\__init__.py",
 line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 não é um aplicativo Win32 válido
2022-06-06 10:54:33,685 ERROR:usb.backend.libusb1:Error loading libusb 1.0 
backend
2022-06-06 10:54:33,685 ERROR:usb.libloader:'OpenUSB library' could not be found
2022-06-06 10:54:33,685 ERROR:usb.backend.openusb:Error loading OpenUSB backend
2022-06-06 10:54:33,689 INFO:usb.core:find(): using backend 
"usb.backend.libusb0"
2022-06-06 10:54:33,689 DEBUG:usb.backend.libusb0:_LibUSB.enumerate_devices()

when running the following code:

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

_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to