View: 60|Reply: 1

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

19

Threads

214

Posts

747

Credits

Senior member

Rank: 4

Credits
747
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: 5

robotLight.rar

1.63 KB, Downloads: 1

Reply

Use magic Report

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

Points Rules