Open pagf-git opened 8 months ago
Hello,
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 don't know if PATH is your issue, but it has been an issue for others and you might follow the direction found here in our Getting Started document.
Here is some more information about this issue in case you think it matches the issue you are seeing.
Let me know how that goes,
Sam
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!