You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling simple-receiver.py with "python" gives an error:
$ python simple-receiver.py
File "simple-receiver.py", line 34
print(f'Invalid address {address}. Addresses must be between 3 and 5 ASCII characters.')
...but works with "python3"
$ python3 simple-receiver.py
Python NRF24 Simple Receiver Example.
Connecting to GPIO daemon on localhost:8888 ...
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:
$ sudo apt-get install python-is-python3
The following packages were automatically installed and are no longer required:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib python2 python2-minimal python2.7 python2.7-minimal
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
python-is-python2 python-pigpio
...
$ python --version
Python 3.9.2
$ python simple-receiver.py
... works
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: