View: 1723|Reply: 4

DarkPaw Setup

[Copy link]

2

Threads

2

Posts

16

Credits

Newbie

Rank: 1

Credits
16
Post time 2020-4-18 14:10:11 | Show all posts |Read mode
I installed new DarkPaw program on Pi 4
When run server.py I got error below

pi@raspberrypi:~ $ sudo python3 adeept_darkpaw/server/server.py
mpu6050 connected
mpu6050 is connected and related functions are available.
loop
loop
mmal: mmal_vc_port_enable: failed to enable port vc.null_sink:in:0(OPQV): ENOSPC
mmal: mmal_port_enable: failed to enable connected port (vc.null_sink:in:0(OPQV))0x207a150 (ENOSPC)
mmal: mmal_connection_enable: output port couldn't be enabled
Traceback (most recent call last):
  File "adeept_darkpaw/server/server.py", line 15, in <module>
    import FPV
  File "/home/pi/adeept_darkpaw/server/FPV.py", line 52, in <module>
    camera = picamera.PiCamera()
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 433, in __init__
    self._init_preview()
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 513, in _init_preview
    self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
  File "/usr/lib/python3/dist-packages/picamera/renderers.py", line 558, in __init__
    self.renderer.inputs[0].connect(source).enable()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2212, in enable
    prefix="Failed to enable connection")
  File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources

Please help
Thanks
Reply

Use magic Report

0

Threads

6

Posts

59

Credits

Registered member

Rank: 2

Credits
59
Post time 2020-4-18 22:21:44 | Show all posts
Edited by TangoCash at 2020-4-18 04:33 PM

check if there is another process who gains the cam - maybe from autostart
try "sudo killall -9 python3"


check if the camera is enabled in "sudo raspi-config", and check if the ribbon is correctly connected
DarkPaw (modded)
MyRepo
Reply

Use magic Report

1

Threads

3

Posts

15

Credits

Newbie

Rank: 1

Credits
15
Post time 2020-7-29 03:07:10 | Show all posts
did you resolve this? I have the same errors
Reply

Use magic Report

1

Threads

49

Posts

150

Credits

Registered member

Rank: 2

Credits
150
Post time 2020-7-30 18:21:42 | Show all posts
The solution on the second floor is correct.
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-5 16:02:01 | Show all posts
check if there is another process who gains the cam - maybe from autostart
try "sudo killall -9 python3"


check if the camera is enabled in "sudo raspi-config", and check if the ribbon is correctly connected
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules