Comments (3)
Sadly there's not much I can do about this and it's the reason for this bit in the README:
The module depends on the hidapi module, which should be installed automatically. If you have any issues, try installing these packages before installing the plugin:
sudo apt-get install python3-dev libusb-1.0-0-dev libudev-dev
You'll also need to make sure that the USB relay can be controlled without root privileges.
For example, edit /etc/udev/rules.d/99-usbrelay.rules and add this line:
SUBSYSTEM=="usb", ATTR{idVendor}=="16c0", ATTR{idProduct}=="05df", MODE="777"
Octoprint (understandably) doesn't provide any means of installing system packages as part of the plugin install. Without those extra packages installed, there's no way to install hidapi
and hence no way to install the plugin.
from octoprint-usbrelaycontrol.
@abudden totally understandable! I installed libusb-dev and libudev-dev in my docker container and have the plugin working now, so have created the above linked PR in the Octoprint-docker repository. Let's see how that goes :-)
from octoprint-usbrelaycontrol.
@abudden totally understandable! I installed libusb-dev and libudev-dev in my docker container and have the plugin working now, so have created the above linked PR in the Octoprint-docker repository. Let's see how that goes :-)
That's a great idea, thanks. I might try and make sense of the octopi source code to see how hard it would be to get those packages installed there as well.
Note that you'll still have to do the udev stuff or it'll fail (without a helpful error message!)
from octoprint-usbrelaycontrol.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octoprint-usbrelaycontrol.