Video Camera - Can run once without reloading virtual machine

Discussions about using Mac OS X guests (on Apple hardware) in VirtualBox.
Post Reply
Allen S
Posts: 1
Joined: 10. Jan 2020, 01:03

Video Camera - Can run once without reloading virtual machine

Post by Allen S »

ENVIRONMENT:
MacBook Pro Mojave 10.14.4
VirtualBox 6.0.14 with Extension Pack Installed
VirtualEnvWrapper: 4.8.2
Python 3.6.7
OpenCV: 3.4.4


ISSUE:
I’m able to get the webcam to run for one run by ensuring the Virtual Box Extension Pack has been installed, powering up the VM fresh, selecting the gurus environment (workon gurus), and selecting the Webcam device from Virtual Box --> Devices --> Webcam. This seems to work for just once run and will certainly fail if the screen locks, the session ends, or I terminate the python script with the cv.waitKey command. The python / OpenCV error that I get when trying to run the second time is “VIDEOIO ERROR: V4L: can’t open camera by index 0”.

There are multiple layers to this environment as I've described above. The video camera persists when running on native MacOS, so it seems related to the virtual environment.

REQUEST
Any ideas of how I can troubleshoot this?
Post Reply