Can not open gpiochip with raphael kit

sudo python3 blinkingLED.py
/usr/lib/python3/dist-packages/gpiozero/devices.py:295: PinFactoryFallback: Falling back from lgpio: ‘can not open gpiochip’
warnings.warn(
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/gpiozero/pins/pi.py”, line 408, in pin
pin = self.pins[info]
~~~~~~~~~^^^^^^
KeyError: PinInfo(number=11, name=‘GPIO17’, names=frozenset({‘BOARD11’, 17, ‘J8:11’, ‘17’, ‘GPIO17’, ‘BCM17’, ‘WPI0’}), pull=‘’, row=6, col=1, interfaces=frozenset({‘’, ‘spi’, ‘dpi’, ‘gpio’, ‘uart’}))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/nlawver/blinkingLED.py”, line 4, in
led = LED(17)
^^^^^^^
File “/usr/lib/python3/dist-packages/gpiozero/devices.py”, line 103, in call
self = super().call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/gpiozero/output_devices.py”, line 192, in init
super().init(pin, active_high=active_high,
File “/usr/lib/python3/dist-packages/gpiozero/output_devices.py”, line 74, in init
super().init(pin, pin_factory=pin_factory)
File “/usr/lib/python3/dist-packages/gpiozero/mixins.py”, line 75, in init
super().init(*args, **kwargs)
File “/usr/lib/python3/dist-packages/gpiozero/devices.py”, line 549, in init
pin = self.pin_factory.pin(pin)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/gpiozero/pins/pi.py”, line 410, in pin
pin = self.pin_class(self, info)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3/dist-packages/gpiozero/pins/rpigpio.py”, line 101, in init
GPIO.setup(self._number, GPIO.IN, self.GPIO_PULL_UPS[self._pull])
RuntimeError: Cannot determine SOC peripheral base address

every time i try and run the 1.1.1 blinking LED script it gives me an error, my GPIO pins are fine, what is going wrong?

  1. What type of Raspberry Pi board are you currently using?
    For PI4 and below, please follow the steps in this tutorial link:
    For Pi 4, 3, and All Other Pi Models — SunFounder Ulimate Raphael Kit for Raspberry Pi documentation
    If it is a PI5 Raspberry Pi board, please follow the steps in this tutorial link:
    Play with Python — SunFounder Ulimate Raphael Kit for Raspberry Pi documentation

I get this same error when trying to run 1.1.1_BlinkingLED_zero.py. I am in the python-pi5 directory as I have a Raspberry 5. I ran python command and then import gpiozero as recommended in the check the GPIO Zero section of the documentation. It states if there are no errors it imported the gpiozero module successfully.

When I run the c version it works correctly. I also ran the scratch version and it is working fine as well

This is an issue with the gpiozero library that leads to the error. You can refer to the following link for more details: gpiozero issue #1166.

Currently, the workaround is to run the following command before executing your example:

sudo ln -s gpiochip0 /dev/gpiochip4

Alternatively, you can downgrade your kernel version using:

sudo rpi-update 44a287fe97c04506841fe3b3e794c70a2e01c7de

The installation process may take some time, so please be patient. After the installation is complete, restart your Raspberry Pi for the changes to take effect.