GithubHelp home page GithubHelp logo

python-easyhid's People

Contributors

ahtn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-easyhid's Issues

Can't use easyhid anymore on Mac

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 ?

Can't use easyhid on macOS Ventura 13.1

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?

How can I download HIDAPI.DLL?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.