Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on WebServer.py start AttributeError: 'NoneType' object has no attribute 'all'` #2

Open
MatzGer opened this issue Dec 27, 2024 · 5 comments

Comments

@MatzGer
Copy link

MatzGer commented Dec 27, 2024

I'm trying to install my RaspClaws. I have installed the SD-Card according to Method 1 (Legacy, with Desktop and recommended Software). SSH und Wifi works and I already installed with setup.py.

The first error was:
pi@raspberrypi:~ $ sudo python3 adeept_raspclaws/server/webServer.py mpu6050 connected, PT MODE ON Traceback (most recent call last): File "/home/pi/adeept_raspclaws/server/webServer.py", line 25, in <module> import app File "/home/pi/adeept_raspclaws/server/app.py", line 8, in <module> from camera_opencv import Camera File "/home/pi/adeept_raspclaws/server/camera_opencv.py", line 12, in <module> import imutils ModuleNotFoundError: No module named 'imutils'

This was solved by "sudo pip install --upgrade imutils"

Now I can't continue as the servo won't move as the WebServer won't start correct:

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/pi/adeept_raspclaws/server/base_camera.py", line 94, in _thread for frame in frames_iterator: File "/home/pi/adeept_raspclaws/server/camera_opencv.py", line 421, in frames if img.all is None: AttributeError: 'NoneType' object has no attribute 'all'

@adeept
Copy link
Owner

adeept commented Dec 28, 2024 via email

@MatzGer
Copy link
Author

MatzGer commented Dec 28, 2024

Hi, thanks for your fast answer. Unfortunately I don't think this error is because of the camera installation.
I have reinstalled with legacy raspbian according to your tutorial (Raspberry Pi old version image file (2021-5-07)). I also had to "sudo pip install --upgrade imutils" because of the first error but after this step it seems to work now.

Would be nice if we could use current raspbian image tho.

@Hyzz8
Copy link

Hyzz8 commented Jan 15, 2025

YO IGUAL SIGO CON EL PROBLEMA Y NO SE OBTIENE ARCHIVOS ACTUALIZADOS

@Hyzz8
Copy link

Hyzz8 commented Jan 15, 2025

NO FUNCIONA

@adeept
Copy link
Owner

adeept commented Jan 16, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants