View: 1385|Reply: 4

Error using webserver.py

[Copy link]

1

Threads

2

Posts

13

Credits

Newbie

Rank: 1

Credits
13
Post time 2024-7-3 18:59:42 | Show all posts |Read mode
Hi guys,

I built the RaspClaws and tried to start the webserver. Unfortunately, I got an error as shown below a section of the bash. It seems something wrong with the camera, but when using the command libcamera-hello the camera has been working fine. Has anybody an idea to solve the problem?
Bash section:
Robo@raspberrypi:~ $ sudo python3 Adeept_RaspClaws/server/webServer.py
mpu6050 connected, PT MODE ON
......................pause..........................
Starting camera thread.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Failed to allocate required memory.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/home/Robo/Adeept_RaspClaws/server/base_camera.py", line 94, in _thread
    for frame in frames_iterator:
  File "/home/Robo/Adeept_RaspClaws/server/camera_opencv.py", line 421, in frames
    if img.all is None:
AttributeError: 'NoneType' object has no attribute 'all'


Kind regards,

Mima
Reply

Use magic Report

3

Threads

7

Posts

41

Credits

Newbie

Rank: 1

Credits
41
Post time 2024-7-8 09:36:12 | Show all posts
take a look on the connection of  camera slot to see if the problem is not the camera hardware connection. In past I have problems with connection to my rasptank and the problem is with the connection slot of camera.
Reply

Use magic Report

1

Threads

2

Posts

13

Credits

Newbie

Rank: 1

Credits
13
 Author| Post time 2024-7-17 17:29:12 | Show all posts
The hardware connection works fine, because I got a realtime video on the screen which is connected to the raspberry 2B, when using the command libcamera-hello.
So there should be another problem...
Reply

Use magic Report

0

Threads

2

Posts

6

Credits

Newbie

Rank: 1

Credits
6
Post time 2024-8-19 12:14:37 | Show all posts
same pronlem
Reply

Use magic Report

0

Threads

1

Posts

6

Credits

Newbie

Rank: 1

Credits
6
Post time 2025-5-12 14:56:10 | Show all posts
Edited by 1747032887 at 2025-5-12 03:00 PM

Get ready for the ultimate snow adventure in Snow Rider 3D! Glide through icy terrains, showcase your skills, and challenge your friends. The snowy slopes are calling—are you in?
Reply

Use magic Report

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

Points Rules