Op donderdag 19 juni 2025 17:23:46 Midden-Europese zomertijd schreef Freek de Kruijf: > I did install python3-gpiod. > > I want to use it to count pulses on one of the input lines with falling > edges. > > So I am looking for an example Python program to do that. > > I did find such a program but it contains: > > import gpiod > from gpiod.line import Edge > > but it gives: > ModuleNotFoundError: No module named 'gpiod.line'; 'gpiod' is not a package
I found the problem. The package python3-gpiod is obsolete. A newer version is only available in PyPi. Trying to install gpiod after installing package python3-pip with "pip install gpiod" recommends to install it in a python virtual environment. So I did. Now the found program using the above lines works. -- fr.gr. member openSUSE Freek de Kruijf