pupil-labs / pyuvc

python binding to libuvc
Other
119 stars 51 forks source link

uvc.OpenError #59

Open valvador92 opened 5 years ago

valvador92 commented 5 years ago

Hi ! I have installed pyuvc after installing libuvc and libjpeg-turbo. When I try to open the cameras I got this error:

uvc_issue

It seems to detect the 3 cameras but it can't open it. It is strange because it is working on an other computer. On this computer I can open the 3 cameras and it recognizes them with their name.

Do you know how I can fix it? Thank you

papr commented 5 years ago

Please provide information about is different between the machines, OS, etc.

valvador92 commented 5 years ago

it is working with Ubuntu 16.04, python 2.7.12 on my laptop

image

I have to install on the computer of the lab. The OS is Ubuntu 14.04, python 2.7.6

valvador92 commented 5 years ago

During the installation of libuvc on the lab computer, I got this message in red:

Linking C shared library libuvc.so

Maybe it can help you

papr commented 5 years ago

Linking C shared library libuvc.so

This is an expected output. My guess is an issue with 14.04. Can you download the Pupil bundle and check if it is able to open the cameras?

valvador92 commented 5 years ago

I have downloaded it. Pupil Capture is working on my Laptop with Ubuntu 16.04. But with Ubuntu 14.04 on the computer lab, I can't open the software. So maybe the OS is the issue which is annoying.

Do you think I need to install Pupil Player and Pupil Service?

papr commented 5 years ago

Indeed. Maybe you can ask your lab supervisor to get you a computer with an up-to-date operating system. :-) Good luck with your further research. Please close the issue if you have the feeling that all your questions have been answered.

valvador92 commented 5 years ago

Thank you for your fast answer!

valvador92 commented 5 years ago

I have a computer up-to-date this time. Ubuntu 16.04 like my laptop

Pupil Capture is running but can't open the cameras of the headset. The images are gray.

I have installed uvc library regarding the ReadMe. I get this if I using it in a python script:

screenshot from 2019-01-22 18-09-59

Everything is working perfectly on my laptop. So I don't understand where is the error. Pupil Capture is also working.

valvador92 commented 5 years ago

That is what I have on my laptop.

screenshot from 2019-01-22 18-21-24

valvador92 commented 5 years ago

I have ckecked, I have 2 different kernel versions:

Could it be the reason of the problem?

papr commented 5 years ago

Your user on the first computer does not have enough permissions. You need to add him to the plugdev group and restart.