Closed faragher closed 2 months ago
Having this same issue, installing the package python-is-python3
creates this symlink on debian systems without manual intervention.
sudo apt-get install python-is-python3
In the Long-term all references to python
should be replaced with python3
then this transitional package can be removed.
One of the changes in https://github.com/liberatedsystems/RNode_Firmware_CE/pull/35 addresses this.
That's pretty gay.
In the Long-term all references to python should be replaced with python3 then this transitional package can be removed.
Agreed.
PEP394 covers this eventuality:
In order to tolerate differences across platforms, all new code that needs
to invoke the Python interpreter should not specify python
, but rather
should specify either python2
or python3
(or the more specific
python2.x
and python3.x
versions; see the Migration Notes
_).
This distinction should be made in shebangs, when invoking from a shell
script, when invoking via the system() call, or when invoking in any other
context.
Thanks for the info!
On 24/09/11 01:38am, Thomas Wing wrote:
PEP394 covers this eventuality:
In order to tolerate differences across platforms, all new code that needs to invoke the Python interpreter should not specify
python
, but rather should specify eitherpython2
orpython3
(or the more specificpython2.x
andpython3.x
versions; see theMigration Notes
_). This distinction should be made in shebangs, when invoking from a shell script, when invoking via the system() call, or when invoking in any other context.-- Reply to this email directly or view it on GitHub: https://github.com/liberatedsystems/RNode_Firmware_CE/issues/33#issuecomment-2343012611 You are receiving this because you commented.
Message ID: @.***>
When doing make -upload-X on Debian 12 or similar systems that lack "python" redirecting to "python3" breaks when esptool.py is called. I don't have a good solution for this as while symlinking python -> python3 was long considered good practice, apparently at least Debian is moving away from it.