View: 1336|Reply: 2

Darkpaw webServer.py error

[Copy link]

1

Threads

1

Posts

9

Credits

Newbie

Rank: 1

Credits
9
Post time 2021-2-21 11:00:30 | Show all posts |Read mode
I keep getting this error message whenever I try to manually run webServer.py any advice would be appreciated.

pi@Robot1:~ $ sudo killall python3
pi@Robot1:~ $ sudo python3  adeept_darkpaw/server/webServer.py
mpu6050 connected
mpu6050 is connected and related functions are available.
loop
loop
Traceback (most recent call last):
  File "adeept_darkpaw/server/webServer.py", line 27, in <module>
    import app
  File "/home/pi/adeept_darkpaw/server/app.py", line 8, in <module>
    from camera_opencv import Camera
  File "/home/pi/adeept_darkpaw/server/camera_opencv.py", line 14, in <module>
    light = robotLight.RobotLight()
  File "/home/pi/adeept_darkpaw/server/robotLight.py", line 38, in __init__
    self.strip.begin()
  File "/usr/local/lib/python3.7/dist-packages/rpi_ws281x/rpi_ws281x.py", line 130, in begin
    raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, str_resp))
RuntimeError: ws2811_init failed with code -3 (Hardware revision is not supported)


Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-22 18:00:13 | Show all posts
Please try the solution provided in the attachment (ws2812 error).
If the above method does not solve your Raspberry Pi version incompatibility problem (for example: c03114), you need to wait for the compatibility update of ws281x dependent libraries, so temporarily stop using this module. In order not to affect other functions of the robot, the module needs to be shielded.
Modify the adept_darkpaw/server/robotLight.py file to the attachment content (robotLight.py).


ws2812 error solution.pdf

144.97 KB, Downloads: 202

robotLight.rar

1.63 KB, Downloads: 110

Reply

Use magic Report

0

Threads

11

Posts

28

Credits

Newbie

Rank: 1

Credits
28
Post time 2021-6-21 17:42:26 | Show all posts
Hello, can you post an update after you try this troubleshooting given here? I just want to make sure it will work on your end before I look at something else. I have the same problem as this. I don't want to take my darkpaw in some repair shop, I don't really trust them to repair it for me. I can fix it myself I just need some guidance from the people here. IF you want to see my Darkpaw check it here https://playpc.io/guides/guns-of ... sk-beginners-guide/

NEXT TOPIC: hide online: download & play this exciting action game now
Reply

Use magic Report

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

Points Rules