Board Name
Raspberry Pi 0 W
Description
I recently upgraded Adafruit-Blinka to 8.58.1 on a Raspberry Pi 0 W, and when I tried to run import board I got:
>>> import board
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "venv/lib/python3.9/site-packages/board.py", line 51, in <module>
from adafruit_blinka.board.raspberrypi.raspi_40pin import *
File "venv/lib/python3.9/site-packages/adafruit_blinka/board/raspberrypi/raspi_40pin.py", line 6, in <module>
from adafruit_blinka.microcontroller.bcm283x import pin
File "venv/lib/python3.9/site-packages/adafruit_blinka/microcontroller/bcm283x/pin.py", line 7, in <module>
from adafruit_blinka.microcontroller.generic_linux.rpi_gpio_pin import Pin
File "venv/lib/python3.9/site-packages/adafruit_blinka/microcontroller/generic_linux/rpi_gpio_pin.py", line 6, in <module>
from RPi import GPIO
ModuleNotFoundError: No module named 'RPi'
>>>
I tried downgrading with pip install 'Adafruit-Blinka==8.57.0' but still got the same error.
I downgraded further to 8.56.0 with pip install 'Adafruit-Blinka==8.56.0' and the import works fine:
While installing 8.56.0 I noticed:
...
Collecting RPi.GPIO (from Adafruit-Blinka==8.56.0)
Downloading https://www.piwheels.org/simple/rpi-gpio/RPi.GPIO-0.7.1-cp39-cp39-linux_armv6l.whl (66 kB)
Collecting rpi-ws281x>=4.0.0 (from Adafruit-Blinka==8.56.0)
Downloading https://www.piwheels.org/simple/rpi-ws281x/rpi_ws281x-5.0.0-cp39-cp39-linux_armv6l.whl (119 kB)
...
Successfully installed Adafruit-Blinka-8.56.0 RPi.GPIO-0.7.1 rpi-ws281x-5.0.0
whereas for later versions, RPi.GPIO doesn't appear to get installed automatically as a dependency.
This is also confirmed by checking that they are installed for 8.56.0 but they are missing for later versions:
$ pip list | grep -i 'rpi\|blinka'
Adafruit-Blinka 8.56.0
RPi.GPIO 0.7.1
rpi-ws281x 5.0.0
Board Name
Raspberry Pi 0 W
Description
I recently upgraded
Adafruit-Blinkato 8.58.1 on a Raspberry Pi 0 W, and when I tried to runimport boardI got:I tried downgrading with
pip install 'Adafruit-Blinka==8.57.0'but still got the same error.I downgraded further to
8.56.0withpip install 'Adafruit-Blinka==8.56.0'and theimportworks fine:While installing
8.56.0I noticed:whereas for later versions,
RPi.GPIOdoesn't appear to get installed automatically as a dependency.This is also confirmed by checking that they are installed for
8.56.0but they are missing for later versions: