# RunTime error: No access to /dev/mem

**URL:** <https://forum.sunfounder.com/t/runtime-error-no-access-to-dev-mem/1407>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [July 23, 2024, 6:11pm UTC](https://forum.sunfounder.com/t/runtime-error-no-access-to-dev-mem/1407 "2024-07-23T18:11:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexrasberrypi](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@alexrasberrypi](https://forum.sunfounder.com/u/alexrasberrypi)\
**Post date:** [July 23, 2024, 6:11pm UTC](https://forum.sunfounder.com/t/runtime-error-no-access-to-dev-mem/1407/1 "2024-07-23T18:11:31Z")

</div>

I’m currently working through the lessons with my son Alex. We have a Raspberry Pi 5 and the Raspberry Pi OS was pre-loaded onto the chip. We have built the circuit in video 4 and we are running the code as instructed. After line GPIO.setup (11,GPIO.OUT) we get the Runtime Error: No access to /dev/mem. Try running as root!  
Please help  
Thanks

---

<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:** [July 24, 2024, 3:41am UTC](https://forum.sunfounder.com/t/runtime-error-no-access-to-dev-mem/1407/2 "2024-07-24T03:41:57Z")

</div>

The video tutorials are not compatible with PI5.  
The library used by PI5 is the GPIO Zero library  
The PI4/PI3 uses the RPi.GPIO library.  
If you are using PI5, it is recommended to follow this tutorial link to use the module:  
[https://docs.sunfounder.com/projects/raphael-kit/en/latest/python\_pi5/play\_with\_python\_pi5.html#](https://docs.sunfounder.com/projects/raphael-kit/en/latest/python_pi5/play_with_python_pi5.html#)
