ahtn / python-easyhid Goto Github PK
View Code? Open in Web Editor NEWA simple interface to the HIDAPI library.
License: MIT License
A simple interface to the HIDAPI library.
License: MIT License
Add a 64-bit and 32-bit version for Windows.
After an upgrade easyhid stopped working.
I have tried to open a bug at hidapi site, but they say it's an easyhid issue.
Here's the problem:
Python 3.8.5 (default, Jul 21 2020, 10:48:26)
[Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from easyhid import Enumeration
>>> en=Enumeration()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.8/site-packages/easyhid/easyhid.py", line 366, in __init__
self.device_list = _hid_enumerate(vid, pid)
File "/usr/local/lib/python3.8/site-packages/easyhid/easyhid.py", line 428, in _hid_enumerate
start = hidapi.hid_enumerate(vendor_id, product_id)
File "/usr/local/lib/python3.8/site-packages/cffi/api.py", line 912, in __getattr__
make_accessor(name)
File "/usr/local/lib/python3.8/site-packages/cffi/api.py", line 908, in make_accessor
accessors[name](name)
File "/usr/local/lib/python3.8/site-packages/cffi/api.py", line 838, in accessor_function
value = backendlib.load_function(BType, name)
AttributeError: function/symbol 'hid_enumerate' not found in library '<None>': dlsym(RTLD_DEFAULT, hid_enumerate): symbol not found
>>>
But if I type the following code, it works:
Python 3.8.5 (default, Jul 21 2020, 10:48:26)
[Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cffi
>>> ffi = cffi.FFI()
>>> hidapi = ffi.dlopen('hidapi')
>>>
>>> from easyhid import Enumeration
>>> en=Enumeration()
>>>
I'm using version: 0.0.10
pip3 show easyhid
Name: easyhid
Version: 0.0.10
Summary: A simple interface to the HIDAPI library.
Home-page: http://github.com/ahtn/python-easyhid
Author: jem
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.8/site-packages
Requires: cffi
Required-by:
What can I do ?
After installing easyhid with the special installing procedure.
I have tried to open a bug at hidapi site, but they say it's an easyhid issue.
Here's the problem:
Traceback (most recent call last): File "/Users/admin/local/examples/basicExample.py", line 5, in <module> success = pyspacemouse.open() File "/Users/admin/opt/anaconda3/envs/rt39/lib/python3.9/site-packages/pyspacemouse/pyspacemouse.py", line 703, in open all_devices = list_devices() File "/Users/admin/opt/anaconda3/envs/rt39/lib/python3.9/site-packages/pyspacemouse/pyspacemouse.py", line 643, in list_devices hid = Enumeration() File "/Users/admin/opt/anaconda3/envs/rt39/lib/python3.9/site-packages/easyhid/easyhid.py", line 366, in __init__ self.device_list = _hid_enumerate(vid, pid) File "/Users/admin/opt/anaconda3/envs/rt39/lib/python3.9/site-packages/easyhid/easyhid.py", line 428, in _hid_enumerate start = hidapi.hid_enumerate(vendor_id, product_id) File "/Users/admin/opt/anaconda3/envs/rt39/lib/python3.9/site-packages/cffi/api.py", line 912, in __getattr__ make_accessor(name) File "/Users/admin/opt/anaconda3/envs/rt39/lib/python3.9/site-packages/cffi/api.py", line 908, in make_accessor accessors[name](name) File "/Users/admin/opt/anaconda3/envs/rt39/lib/python3.9/site-packages/cffi/api.py", line 838, in accessor_function value = backendlib.load_function(BType, name) AttributeError: function/symbol 'hid_enumerate' not found in library '<None>': dlsym(RTLD_DEFAULT, hid_enumerate): symbol not found
I'm using version: 0.0.10
pip show easyhid Name: easyhid Version: 0.0.10 Summary: A simple interface to the HIDAPI library. Home-page: http://github.com/ahtn/python-easyhid Author: jem Author-email: [email protected] License: MIT Location: /Users/admin/opt/anaconda3/envs/rt39/lib/python3.9/site-packages Requires: cffi Required-by: hat-spacemouse, pyspacemouse
What can I do?
I'm trying to get python easyhid.py to work under windows and it seems to require HIDAPI.DLL .. but the dll is not included. I have searched everywhere for this and I can't find a place to just download it. I see the hidapi project here https://github.com/signal11/hidapi , but not way to just get the DLL. Do I really have to get visual studio, install it, and learn how it even works, to build this DLL myself? can someone PLEASE help me and just tell me where I can download it? It would be extremely helpful. I have been looking for a simple way to obtain this DLL for days now. Trying to get this DLL to use easyhid is making it anything but easy.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.