Skip to content

Migrate all scripts to python3#28337

Open
narno2202 wants to merge 2 commits intoMarlinFirmware:bugfix-2.1.xfrom
narno2202:Python3
Open

Migrate all scripts to python3#28337
narno2202 wants to merge 2 commits intoMarlinFirmware:bugfix-2.1.xfrom
narno2202:Python3

Conversation

@narno2202
Copy link
Contributor

Description

Trying to run_tests locally was impossible due to the scripts pointing to python instead of python3.
Since Debian 11, python is no longer a symlink to python3 or python2. python3 or python2 should be explicitly used. Currently there is a mix of scripts using pyrhon3 while others still use python. Migrate the remaining scripts to python3. Now the tests runs flawlessly.

Requirements

Benefits

Configurations

Related Issues

@classicrocker883
Copy link
Contributor

you can use sudo apt install python-is-python3 and not have this issue

@narno2202
Copy link
Contributor Author

Yes, I know but it's not installed by default and for Debian based distribution the rule is to use python3 or python2. For an out-of-the-box experience, it's better (my point of Vue) to have python3 instead of python.

@ThomasToka
Copy link
Contributor

We should follow debian stable (trixie atm) if possible without backward compatibility forcing like python-is-python3.
Its a workaround for the real problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants