python / python/planet

Infra(OS): `planet` to Ubuntu 24.04 - Requires updating to `Python3`

Open
#568 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

infrastructure
Dominant language
Python
Stars
144
Forks
197
PR merge metrics
No merged PRs in 30d

Description

What

Hi, I work for the PSF and am currently in the process of upgrading hosts from various OS levels to the latest Ubuntu LTS (24.04 - which comes pre-packaged with Python3.12.3)

In working with the backend and readying the VM, I realized that the app code demands python2.

Can someone assist in upgrading this? Is https://docs.python.org/3/library/2to3.html viable? I am available to help but have limited knowledge in py2 land.

### Tasks
- [ ] Changeset tested against host set to default (jammy)
- [ ] Changeset tested against host set to noble
- [ ] VM upgraded
- [ ] Data transferred
- [x] Shebangs updated `python` -> `python3`
- [x] `config/sort-ini.py`
- [x] `code/*.py` files

Thanks :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by auditing the Python files named in the task list, especially config/sort-ini.py and code/*.py, for remaining Python 2 requirements. Test the changes on hosts using the default jammy and noble environments, then verify the VM upgrade and data transfer tasks are complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, ubuntu
Domain
infrastructure, operating-systems
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.