-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
[featurerequest] cross-platform support?! #2
Comments
Thanks for the research. Please compare with https://github.com/jnweiger/inkscape-silhouette/blob/master/silhouette/Graphtec.py#L30 and the issues in this repo regarding cross platform support. |
this comment is just a list / overview of the different python hid packages i found during research:
|
For windows there is also pywinusb, which can be used like this:
But the send buffer must be exactly 65 bytes. Probably not raw enough for us. |
pywinusb has a report.set_raw_data() method, but that is still not sufficiently raw. wireshark shows only some parts of my message getting through, with other data intermixed. Not suitable for us. |
memo 📝if packaging is consider: have a look at this stackoverflow question for some options.. |
Commit c47bc9a @AnnabelleLee1987, @s-light The installation procedures on Ubuntu, Mac, and Windows are now all described in the README. None of them are trivial, sorry. Please test, if that gets you going. Thanks! pyinstaller and py2exe from the stackoverflow link above may help to simplify this. For me the current state seems good enough for now. |
Should we close here, or keep this open for reference? |
i think we can close this - as the original request is - at least partly - solved. just some closing thoughts:
→ but i don't know if one of this is in any way easy possible.. |
inf-wizard seems to explode under windows 7, without installing any drivers.
|
idea: would be nice to have a easy way (for a normal end-user) to install this cross-platform.
this is a collection of things i found during my search & how it could work -
all untested yet...
libusb
currently the script uses libusb to access the HID-Device.
its easy to install for linux but a little bit harder for Mac OS or windows:
(as fare as i found - please proof me wrong?! ;-) )
simple as
sudo apt install python3-usb
(as written in the current instructions)this installs libusb and pyusb (info from package description)
according to this answer libusb should be working with Homebrew
brew install libusb
additionally we need pyusb:
pip3 install pyusb
there is a libusb Windows WikiPage that tells us that there are Binary Snapshots as 7zip in the releases
but these just containing the dlls - no installer:
so we need to copy theme to the correct location so the
pyusb lib can find them?! (i have no clue 🙈 )
there is libusb at pypi (github) that states:
and yes- if you look at the source it includes the dll.
but as mentioned - only for windows 😿
other option: switch library ?
the libusb FAQ also recommends the HIDAPI library for HID things.
but it seems this lib is a bit in a unmaintained state currently..
on my search i found cython-hidapi as a python API for this. (called hidapi at pypi)
→ this would mean Cython as dependency..
i also found pyhidapi (named hid in pypi)
but installation in osx seems trouble some too...
result
there is no easy to install solution already out there?
hope someone else has better news on this ;-)
The text was updated successfully, but these errors were encountered: