When i try to run my code (It’s just a simple program that runs a motor) it gives me the following error :
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/brickpi3-0.0.0-py3.7.egg/brickpi3.py", line 295, in __init__
File "/usr/local/lib/python3.7/dist-packages/brickpi3-0.0.0-py3.7.egg/brickpi3.py", line 411, in get_manufacturer
OSError: No SPI response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/Desktop/[USER]/src/main.py", line 15, in <module>
BP = brickpi3.BrickPi3()
File "/usr/local/lib/python3.7/dist-packages/brickpi3-0.0.0-py3.7.egg/brickpi3.py", line 298, in __init__
TypeError: catching classes that do not inherit from BaseException is not allowed
Anyone have a solution ? I tried to re-install BrickPi3 and it re-installs fine but it doesn’t solve my problem. I also tried to update the firmware with the command sudo bash /home/pi/Dexter/BrickPi3/Firmware/brickpi3samd_flash_firmware.sh
but it produces the following message:
Found +RPI4
Flashing the firmware using a Pi4 is not currently supported
I don’t know what I did wrong.