Skip to content

Raspberry Pi Camera Module v3 Support #43

Description

@WannesTacken

Hello There,

I've built the SPIRO at the Laboratory of Nematology at Wageningen University & Research. Our interest is to image the Nematode infection site which requires a high definition image of the plant root. For this purpose I tried to install the raspberry pi v3 camera module but it turned out to be not compatible with the SPIRO script.

I received the following lines of error code:
File "/usr/local/lib/python3.7/dist-packages/spiro/spiro.py", line 143, in main
cam = initCam()
File "/usr/local/lib/python3.7/dist-packages/spiro/spiro.py", line 42, in initCam
cam = PiCamera()
File "/usr/local/lib/python3.7/dist-packages/picamera/camera.py", line 433, in init
self._init_preview()
File "/usr/local/lib/python3.7/dist-packages/picamera/camera.py", line 513, in _init_preview
self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
File "/usr/local/lib/python3.7/dist-packages/picamera/renderers.py", line 558, in init
self.renderer.inputs[0].connect(source).enable()
File "/usr/local/lib/python3.7/dist-packages/picamera/mmalobj.py", line 2212, in enable
prefix="Failed to enable connection")
File "/usr/local/lib/python3.7/dist-packages/picamera/exc.py", line 184, in mmal_check
raise PiCameraMMALError(status, prefix)

-- Logs begin at Thu 2023-01-26 10:35:00 CET, end at Thu 2023-01-26 10:35:22 CET. --

Jan 26 10:35:05 raspberrypi systemd[529]: Started SPIRO control software.
Jan 26 10:35:08 raspberrypi spiro[558]: mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
Jan 26 10:35:08 raspberrypi spiro[558]: mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x2500020 (ENOSPC)
Jan 26 10:35:08 raspberrypi spiro[558]: mmal: mmal_connection_enable: output port couldn't be enabled. This is the raspberry pi error log

I updated the picamera library and legacy OS but still returned the same error. Do you have any idea what causes this and is there a workaround to make the raspberry pi camera module v3 work?

Kind regards,

Wannes Tacken
Msc student Wageningen University & Research
Laboratory of Nematology

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions