# Can not open gpiochip with raphael kit

**URL:** <https://forum.sunfounder.com/t/can-not-open-gpiochip-with-raphael-kit/1628>\
**Category:** Learning kit for Raspberry Pi\
**Created:** [September 8, 2024, 5:05am UTC](https://forum.sunfounder.com/t/can-not-open-gpiochip-with-raphael-kit/1628 "2024-09-08T05:05:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nlawver](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@Nlawver](https://forum.sunfounder.com/u/Nlawver)\
**Post date:** [September 8, 2024, 5:05am UTC](https://forum.sunfounder.com/t/can-not-open-gpiochip-with-raphael-kit/1628/1 "2024-09-08T05:05:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [September 10, 2024, 6:45am UTC](https://forum.sunfounder.com/t/can-not-open-gpiochip-with-raphael-kit/1628/2 "2024-09-10T06:45:20Z")

</div>

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](https://docs.sunfounder.com/projects/raphael-kit/en/latest/for_other_models.html)  
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](https://docs.sunfounder.com/projects/raphael-kit/en/latest/python_pi5/play_with_python_pi5.html)

---

<div class="post-metadata">

**Author:** ![mjburge](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mjburge](https://forum.sunfounder.com/u/mjburge)\
**Post date:** [September 11, 2024, 6:56pm UTC](https://forum.sunfounder.com/t/can-not-open-gpiochip-with-raphael-kit/1628/3 "2024-09-11T18:56:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [September 12, 2024, 6:39am UTC](https://forum.sunfounder.com/t/can-not-open-gpiochip-with-raphael-kit/1628/4 "2024-09-12T06:39:08Z")

</div>

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.](https://github.com/gpiozero/gpiozero/issues/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.

---

<div class="post-metadata">

**Author:** ![baikal](https://avatars.discourse-cdn.com/v4/letter/b/898d66/32.png) [@baikal](https://forum.sunfounder.com/u/baikal)\
**Post date:** [August 23, 2026, 1:54pm UTC](https://forum.sunfounder.com/t/can-not-open-gpiochip-with-raphael-kit/1628/5 "2026-08-23T13:54:08Z")

</div>

Creating the link did not work forme. What did work was

commenting out

return lgpio.gpiochip\_open(int(dev.name[-1]))

and replacing it with

return lgpio.gpiochip\_open(0)

Did work.
