question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python scripts should support Python 3

See original GitHub issue
  • This issue is blocking
  • This issue is causing unreasonable pain

There are python scripts in https://github.com/dotnet/arcade/tree/main/src/Microsoft.DotNet.Build.Tasks.Installers/build/deb-package-tool/scripts that aren’t compatible with Python 3. Python 2 is out of support by now, and Debian 12 will remove support for it entirely, so we probably need to update these scripts to be able to run on Python 3.

If it’s not possible to author them to run in both versions of Python, this may be complicated because it would have to be coordinated with switching all of the CI images (that use deb-package-tool at least) to install Python 3 instead of Python 2).

For reference, this came up when we migrated to Debian 11, and the python command is no longer available by default:

FYI @marcpopMSFT @mmitche

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jkoritzinskycommented, Jun 16, 2023

Yes, I think we can close this. Any other work is tracked by https://github.com/dotnet/arcade/issues/13186.

0reactions
missymessacommented, Jun 16, 2023

Yes, I handled this to get the DEB packaging legs to run on Ubuntu 22.04

Great! Are we able to close out this issue, or is there more work that needs to be done?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a standard way to make sure a python script will be ...
The definitive answer to your question is: "No, there is no standard way to make sure a python script will be interpreted by...
Read more >
Porting Python 2 Code to Python 3
Drop support for Python 2.6 and older¶ ... While you can make Python 2.5 work with Python 3, it is much easier if...
Read more >
PEP 394 – The “python” Command on Unix-Like Systems
This PEP outlines the behavior of Python scripts when the python command is ... The Python 3.x idle , pydoc , and python-config...
Read more >
2. Writing the Setup Script — Python 3.11.4 documentation
The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. The main purpose of the...
Read more >
6. Modules — Python 3.11.4 documentation
Modules can import other modules. It is customary but not required to place all import statements at the beginning of a module (or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found