You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I apologise in advance for posting what is essentially a python issue. However, I have tried running 'gdx_getting_started_usb.py' on various Windows computers and received the same error concerning hidapi.
I installed godirect and its dependencies, bleak and hidapi. This was confirmed using 'pip show hidapi' and 'pip show bleak'. Both are installed in 'C:\Users[username]\AppData\Local\Programs\Python\Python311\Lib\site-packages'
When I run 'gdx_getting_started_usb.py', I receive an error:
'ERROR:godirect:USB will not work until hidapi is installed.'
The first troubleshooting that I would do is to confirm that Python is in the environmental variable 'PATH'. This insures that when Python is looking for a library it knows where to look. It also can be an issue that there is an old PATH that links to an old version of Python that should be deleted.
In the Windows Start menu search box type in "Edit the system environment variables" and then in the Best Match you should see that option to click to take you to the Control Panel. When you select it you should then get a pop-up with an "Environment Variables.." button in the bottom right corner. Click on that to see User Path and System Path. You can click each one and then click 'Edit' to see the list of Paths.
Do you see Paths to your version of Python? Are there other Paths to old versions of Python?
I apologise in advance for posting what is essentially a python issue. However, I have tried running 'gdx_getting_started_usb.py' on various Windows computers and received the same error concerning hidapi.
I installed godirect and its dependencies, bleak and hidapi. This was confirmed using 'pip show hidapi' and 'pip show bleak'. Both are installed in 'C:\Users[username]\AppData\Local\Programs\Python\Python311\Lib\site-packages'
When I run 'gdx_getting_started_usb.py', I receive an error:
'ERROR:godirect:USB will not work until hidapi is installed.'
However, pip show tells me it is installed.
After extensive googling I have tried several things e.g. putting the hidapi.dll and hidapi.lib files in the ''C:\Users[username]\AppData\Local\Programs\Python\Python311
see https://stackoverflow.com/questions/70894915/cant-load-hidapi-with-python-library-hid-on-windows
However, nothing has worked thus far. Has anyone experienced the same problem and found a solution?
Many thanks!
The text was updated successfully, but these errors were encountered: