-
Notifications
You must be signed in to change notification settings - Fork 15
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
Libusb cant initialize? #2
Comments
That's a puzzler, it's about the first thing that is done. I've just pushed a change to this repository that attempts to print out the error from libusb, are you able to give it a try? |
Well it didn't compile:
I took a shoot and installed libusb-dev and then it compiles and works. The version I first ran was a Snap, it still fails even though I installed the dev-lib. |
Ok... I wonder if there is a permission that isn't set on the snap that is required (or possibly Peppermint is doing something unusual). If you're willing to do some more debugging, would you run the following commands to scan the snap security log for any issues related to usb-reset?
The commands are from the bottom of this page: https://docs.snapcraft.io/build-snaps/debugging |
Ok, I tested that:
Then it just sits there. |
Hmm, ok. I thought that it scanned the old log messages but it might not - could you run the scanlog command, then try to run the usb-reset snap? |
Ok, I ran "sudo /snap/bin/snappy-debug.security scanlog" in one terminal, "sudo usb-reset -a" in another.
|
Ok, we're making progress! In the suggestions list it says "add network" - this should already be the case, so let's check if it has worked. Could you run:
This should give you an output like this:
The important point here is that the network line exists, and that usb-reset is present. If it isn't present, then I don't know what has happened, it should be automatic. |
To fix:
|
Well it's there:
|
Thanks for your help, I've got to the bottom of the problem - a change in recent versions of snapd of what interface is needed for observing hardware. If you run "snap refresh" you should get the updated version that works. |
|
This problem still exists, I can't use the software. |
Could you retry the steps in #2 (comment) please? |
Like this?
|
Nearly :) In one terminal run:
In another terminal run:
Then report back the output from the first terminal. |
Ok
|
Cant get the program to run on Peppermint OS:
And then nothing more.
The text was updated successfully, but these errors were encountered: