View: 1881|Reply: 7

DarkPaw setup

[Copy link]

1

Threads

3

Posts

15

Credits

Newbie

Rank: 1

Credits
15
Post time 2020-7-29 04:49:40 | Show all posts |Read mode
I have installed raspbian , Python 3 and the Robot app. I cannot see the webserver using IP adress:5000. If I start the server using ssh iget
pi@raspberrypi:~ $ sudo python3 adeept_darkpaw/server/webServer.py
mpu6050 disconnected
mpu6050 is not connected and the related functions are unavailable.
loop
loop
Starting camera thread.
VIDIOC_STREAMON: Invalid argument
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/adeept_darkpaw/server/base_camera.py", line 94, in _thread
    for frame in frames_iterator:
  File "/home/pi/adeept_darkpaw/server/camera_opencv.py", line 446, in frames
    yield cv2.imencode('.jpg', img)[1].tobytes()
cv2.error: OpenCV(3.4.3) /home/pi/opencv-python/opencv/modules/imgcodecs/src/grfmt_base.cpp:145: error: (-10:Unknown error code -10) Raw image encoder error: Empty JPEG image (DNL not supported) in function 'throwOnEror'
Camera works if i put an octoprint card in the pi
Tried 2 pi 4 b 2 gb
If I try killall the ssh trminal disconnects with a time out error
Any help would be very welcome.
Reply

Use magic Report

1

Threads

49

Posts

150

Credits

Registered member

Rank: 2

Credits
150
Post time 2020-7-30 18:20:48 | Show all posts
Pls execute sudo killall python3 first.
Reply

Use magic Report

1

Threads

3

Posts

15

Credits

Newbie

Rank: 1

Credits
15
 Author| Post time 2020-7-30 22:22:09 | Show all posts
causes the pi to lock up and requires a reboot. I am going to install the adeept images incase there have been updates in rasbion or pyton stopping drivers loading.
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-5 15:55:20 | Show all posts
1595865007 replied at 2020-7-30 10:22 PM
causes the pi to lock up and requires a reboot. I am going to install the adeept images incase there ...

Please provide us with a detailed report (including product model, error report, pictures, etc.): support@adeept.com
Reply

Use magic Report

0

Threads

1

Posts

4

Credits

Newbie

Rank: 1

Credits
4
Post time 2021-2-16 20:02:48 | Show all posts
I got the same error.
I replaced the camera with another one and it was fixed.

Reply

Use magic Report

1

Threads

3

Posts

9

Credits

Newbie

Rank: 1

Credits
9
Post time 2021-5-16 23:27:26 | Show all posts
I'm having the same error as above.
I did sudo killall python3 first.
Now have a different error as follows but mpu6050 still disconnected

mpu6050 disconnected
mpu6050 is not connected and the related functions are unavailable.
loop
loop
Starting camera thread.
* Serving Flask app "app" (lazy loading)
* Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
* Debug mode: off
192.168.1.49
* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
waiting for connection...
Reply

Use magic Report

1

Threads

2

Posts

9

Credits

Newbie

Rank: 1

Credits
9
Post time 2022-9-2 01:16:03 | Show all posts
I don't know if this can help anyone, but when I got the previous message,
I just changed the power supply and it worked.
Reply

Use magic Report

0

Threads

2

Posts

8

Credits

Newbie

Rank: 1

Credits
8
Post time 2023-8-17 10:47:39 | Show all posts
Edited by 1691381750 at 2023-8-17 10:48 AM

I used a different camera and that corrected it.

phrazle
Reply

Use magic Report

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

Points Rules