hello i recently bought the ivport V2 dual and everything works up untill the part where i try to run the code to test the cameras. the module is detected supported 1 detected 1 and everything but when i try to run the code
import ivport
raspistill capture
def capture(camera):
"This system command for raspistill capture"
cmd = "raspistill -t 10 -o still_CAM%d.jpg" % camera
os.system(cmd)
iv = ivport.IVPort(ivport.TYPE_DUAL2)
iv.camera_change(1)
capture(1)
iv.camera_change(2)
capture(2)
iv.close()
it says no module named ivport im using a raspberry pi model 3 B+ with two cameras that are V2.1 witht the device gpio pins inserted farthest away form the usb ports first i try thepreview camera and one shows but again the code is not working any ideas why also im usiong python shell 3.5.3 also python test_ivport.py
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
Traceback (most recent call last):
File "test_ivport.py", line 60, in
main()
File "test_ivport.py", line 56, in main
picam_capture()
File "test_ivport.py", line 31, in picam_capture
iv.camera_open()
File "/home/pi/ivport-v2/ivport.py", line 135, in camera_open
self.picam = picamera.PiCamera(camera_v2=camera_v2, resolution=resolution, framerate=framerate)
File "/home/pi/ivport-v2/picamera/camera.py", line 507, in init
self.STEREO_MODES[stereo_mode], stereo_decimate)
File "/home/pi/ivport-v2/picamera/camera.py", line 664, in _init_camera
prefix="Camera component couldn't be enabled")
File "/home/pi/ivport-v2/picamera/exc.py", line 191, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Camera component couldn't be enabled: Out of resources (other than memory)
hello i recently bought the ivport V2 dual and everything works up untill the part where i try to run the code to test the cameras. the module is detected supported 1 detected 1 and everything but when i try to run the code import ivport
raspistill capture
def capture(camera): "This system command for raspistill capture" cmd = "raspistill -t 10 -o still_CAM%d.jpg" % camera os.system(cmd)
iv = ivport.IVPort(ivport.TYPE_DUAL2) iv.camera_change(1) capture(1) iv.camera_change(2) capture(2) iv.close() it says no module named ivport im using a raspberry pi model 3 B+ with two cameras that are V2.1 witht the device gpio pins inserted farthest away form the usb ports first i try thepreview camera and one shows but again the code is not working any ideas why also im usiong python shell 3.5.3 also python test_ivport.py mmal: mmal_vc_component_enable: failed to enable component: ENOSPC Traceback (most recent call last): File "test_ivport.py", line 60, in
main()
File "test_ivport.py", line 56, in main
picam_capture()
File "test_ivport.py", line 31, in picam_capture
iv.camera_open()
File "/home/pi/ivport-v2/ivport.py", line 135, in camera_open
self.picam = picamera.PiCamera(camera_v2=camera_v2, resolution=resolution, framerate=framerate)
File "/home/pi/ivport-v2/picamera/camera.py", line 507, in init
self.STEREO_MODES[stereo_mode], stereo_decimate)
File "/home/pi/ivport-v2/picamera/camera.py", line 664, in _init_camera
prefix="Camera component couldn't be enabled")
File "/home/pi/ivport-v2/picamera/exc.py", line 191, in mmal_check
raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Camera component couldn't be enabled: Out of resources (other than memory)