Open kylegordon opened 2 years ago
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.
@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 :-)
@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!)
Unfortunately this plugin fails to install when using Octoprint 1.6.1 in Docker. It seems to be requiring libusb inside the docker container, which is understandable. The relevant bit of the installation log is...
This problem may go away in later versions of Octoprint - I haven't upgraded from 1.6.1 yet. Please just close this issue if that's the case :-)