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:
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
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
Re: error using python periphery library
Posted: 2025-02-21 16:29
by Lesept
Hi, I have the same problem with a Pico Mini B. How can I install the libraries?
Thanks for your help.
Re: error using python periphery library
Posted: 2025-02-24 2:22
by Crocodile
Hello,the Ubuntu system on the Pico Mini B also installs the periphery library by running
Code: Select all
sudo apt install python3-periphery
Re: error using python periphery library
Posted: 2025-02-24 10:31
by Lesept
Thanks for your answer.
I tried that, but here is what I got:
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package python3-periphery
Edit: I found the explanation in this video
https://www.youtube.com/watch?v=2EgyVn7HRHs
Just download the library for Github, copy it on the Luckfox device, and install it.