View: 97|Reply: 2

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

46

Posts

138

Credits

Registered member

Rank: 2

Credits
138
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

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

Points Rules