adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
439 stars 328 forks source link

ModuleNotFoundError: No module named 'board' #640

Closed hbarnard closed 1 year ago

hbarnard commented 1 year ago

Followed instructions for raspi-blinka.py and more recently setup.py install here. But after reinstall of OS on Pi4: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit my Python project cannot find board. And yes I've made sure that the 'other' board is not installed.

It looks as though:

sudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel
sudo python3 -m pip install --force-reinstall adafruit-blinka

may solve this but I'm not sure what else it may affect in the project?

caternuson commented 1 year ago

The suggested fix is here: https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/faq-troubleshooting#faq-3055911

hbarnard commented 1 year ago

The suggested fix is here: https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/faq-troubleshooting#faq-3055911

Thanks, my comment above, seems to have fixed it. However, I'm heading away from the voice bonnet because of the library complexity.