Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spreads/HIDAPI #402

Open
eriwm opened this issue Jul 10, 2018 · 4 comments
Open

Spreads/HIDAPI #402

eriwm opened this issue Jul 10, 2018 · 4 comments

Comments

@eriwm
Copy link

eriwm commented Jul 10, 2018

Hello, I dont think this is specifically a HIDAPI problem but I am trying to use HIDTRIGGER in spreads which needs HIDAPI to function as follows.
Trigger plugin that waits for a key press on any USB HID device. """
from future import unicode_literals
import hidapi
import logging
import threading
import time
from spreads.plugin import HookPlugin, TriggerHooksMixin
from spreads.util import DeviceException
However when I try to configure Spreads and choose the HIDTRIGGER plugin I get the error -
ExtensionException: Missing Python dependency for extension 'hidtrigger':hidapi.
I have tried several ways of installing HIDAPI including downloading and building from the git repository.
Doing a file search shows that HIDAPI is installed but it seems to me that HIDTRIGGER cannot find HIDAPI so I don't think I am installing it in the right place.
Can someone please point me in the right direction. Thanks Eric.

@todbot
Copy link

todbot commented Jul 10, 2018

This sounds like a Python library question, not this hidapi (a C library).
I think instead you should be looking at: https://pypi.org/project/hidapi/
This is the Python hidapi wrapper that I often use.
You can install it with pip install hidapi.

@eriwm
Copy link
Author

eriwm commented Jul 10, 2018 via email

@todbot
Copy link

todbot commented Jul 10, 2018

Looking at the setup file for spreads, I think you should instead be installing hidapi-cffi. But this should have gotten installed for you if you installed spreads via the normal means, as described here: https://pypi.org/project/spreads/

@eriwm
Copy link
Author

eriwm commented Jul 10, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants