Skip to content
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

Insufficient permissions, what file is the package accessing? #11

Open
fenimore opened this issue Sep 6, 2016 · 3 comments
Open

Insufficient permissions, what file is the package accessing? #11

fenimore opened this issue Sep 6, 2016 · 3 comments

Comments

@fenimore
Copy link

fenimore commented Sep 6, 2016

Hi,
I'm trying to use this package, but I get an error: libusb: bad access [code -3]
I checked here, http://libusb.sourceforge.net/api-1.0/group__misc.html#ggab2323aa0f04bc22038e7e1740b2f29efa131f3c2f6f2bb40bc6fb60ccb6f3152f
the libusb docs, and I see that this bad access means I have insufficient permissions. I can't seem to find the file that libusb is trying to access. Normally I've been working with either: /dev/usb/hiddev0 or /dev/bus/usb/001/0XX, and that's where the device is connecting to my machine, but relaxing the permissions in these directories/files doesn't change this error code.

The device Path is like this 05f3:00ff:01.02, which is the Vendor and Product numbers, (with two other bits I don't know are about), is this 'path' what I should be looking into?

I'm running Arch Linux.

@boombuler
Copy link
Owner

@nitram509 @jsouthworth could any of you say something about it?

Btw which method did you call when you got the error?

@fenimore
Copy link
Author

fenimore commented Sep 6, 2016

I'm calling Open() on device info.

@eddiewebb
Copy link
Contributor

Also seeing this error also on write. If I sudo myapp I get error 9.

I found infohttps://askubuntu.com/questions/978552/how-to-make-libusb-work-as-non-root which suggests error 3 is permission issue and after applying it I get same error as if running the app as root.

added usb with path 0e53:2517:01.05 as index:0, ID: 1
libusb: pipe error [code -9]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants