Giter Site home page Giter Site logo

Comments (3)

abudden avatar abudden commented on August 22, 2024

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.

kylegordon avatar kylegordon commented on August 22, 2024

@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 avatar abudden commented on August 22, 2024

@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 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.