Open HilmarSt opened 2 weeks ago
I'm not sure what caused your initial problem.
In general: try to read the following on selecting the Python version on Linux:
https://linuxconfig.org/how-to-change-from-default-to-alternative-python-version-on-debian-linux
//bjarne
... and by the way: the reason the example only works with Python3 is the f-string used.
//bjarne
The initial problem was caused by "sudo apt-get install pigpio python-pigpio python3-pigpio" from the README.md . It seems that one package requires Python 2 and is not necessary, I think it's "python-pigpio". So you may adapt your documentation to "sudo apt-get install pigpio python3-pigpio".
I was using a Pi Zero W with Python 3.9 :
After following the "Quick installation of pigpio on Raspbian:" in README.md :
the default Python version changed to 2.7 :
Calling simple-receiver.py with "python" gives an error:
...but works with "python3"
Which of the packages in "sudo apt-get install pigpio python-pigpio python3-pigpio" are necessary to have the example working without automatically installing Python v2.7 ?
update: