-
Notifications
You must be signed in to change notification settings - Fork 81
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
uvc_open error #7
Comments
check if the lepton sensor is well in place, I notified problem with the carrier board holder. Afterward try to run with sudo |
sudo works - but is there a solution that does not involve sudo? |
You can define udev rules to give regular users access to a usb device. This rule would give everyone rw access:
|
I am still seeing uvc_open error - do I have to modify anything to that script? |
What OS are you using? |
Ubuntu 16.04.5 LTS xenial |
It should work, but OS support is getting a bit out of scope here. Check that the permissions on the usb device are actually being set by udev.
|
Took me a while to figure this out. I had to set LD_LIBRARY_PATH for it to work Hope this helps the next guy :) |
I'm currently getting the same error on raspbian stretch. init works Unique part of the system is that two cameras are running through libuvc. output of lsusb |
I have the same error on windows 10 using Visual Studio 2017. Tryed to execute as admin. |
I ran into this issue, but running app using sudo has made it working. |
I have the same issue, have you fixed that? @mudzin Could you share your solution, thank you. |
@getandplay what are you trying to do? It has been a while so I need to work myself back into the code. If you try to get the pure thermal running under windows, let me know, I can probably provide you a working code/VS project that you can use. |
@sayezz Yeah, I am trying to make it running under windows. That would be very nice if you could share your code. Thank you. |
I send you an e-mail with the source code. Long ago I thought about doing a PR but I do not find the time to kind of sort the project out and make a stand alone version without all the other non cam related stuff. |
@sayezz I have the same problem, can you send me your solution if you still have it? thanks a lot! |
@postaldude I send you an e-mail with the source code. Let me know if thats enough or if you need more help. |
well... your mail is not valid PostalDude |
https://raspberrypi.stackexchange.com/questions/135418/how-do-i-set-permissions-on-a-dev-bus-usb-node solved this issue for me. See also https://forums.raspberrypi.com/viewtopic.php?t=186839 and https://raspberrypi.stackexchange.com/questions/125091/how-to-create-a-linux-user-group-that-grants-access-to-usb-devices for more hints on setting permissions of your USB devices on linux. |
Hey, I am stuck with the same problem and getting -5 from the uvc_open() function. Is this a permission issue? or something else? I am working on windows 11. Building my application on QT. Thanks in advance. I wouldn't mind the source code that you have sent to other people. Thanks. |
Hey @criminact , Reharding the -5, I don't know exactly where this is coming from. Did you check the VIDs in the device manager for the cameras? Might be that your IDs are different and therefore you need to adjust the code and set PT_USB_VID to the correct address. This is just a guess but the IDs in the code and the device manager should match. |
I tried to run code
uvc_deviceinfo.py
uv_radiometry.py
Both has error
"uvc_open error"
I checked the code. It seems that PT_USB_VID and PT_USB_PID is not defined when call
res = libuvc.uvc_find_device(ctx, byref(dev), PT_USB_VID, PT_USB_PID, 0)
I find out my device ID
as
VID: '1E4E'
PID: '0100'
Transfer them into int format and put in the code.
Still same erro
'uvc_open error'
The text was updated successfully, but these errors were encountered: