Page 1 of 1

error using python periphery library

Posted: 2025-01-09 23:56
by Martin_Mortensen
I'm using the Luckfox pico ultra W Running Uuntu.
When I tried to run the gpio.py example I got:
ModuleNotFoundError: No module named "periphery"
I ran:
pip3 install python-periphery
Now I get this:
Screenshot From 2025-01-09 15-52-03.png
How should I resolve this?

Re: error using python periphery library

Posted: 2025-01-10 11:39
by Ryand
pico users do not have sufficient permissions to export GPIO pins. Using sudo python3 gpio. py
企业微信截图_20250110193519.png
If the root user does not have the periphery module, the solution is to install it globally. sudo apt update,sudo apt install python3-periphery