Skip to content

Downgrade to support Python 3.9 #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fabrice102 opened this issue Jul 1, 2022 · 2 comments
Closed

Downgrade to support Python 3.9 #430

fabrice102 opened this issue Jul 1, 2022 · 2 comments
Assignees
Labels
new-feature-request Feature request that needs triage Team Scytale

Comments

@fabrice102
Copy link
Contributor

Problem

Following #244, the minimum version required for PyTeal is 3.10.

Unfortunately:

  • on macOS 12 (latest version of macOS), the default Python version is 3.8.
  • if using HomeBrew on macOS, the default version on Homebrew is 3.9. See https://formulae.brew.sh/formula/[email protected]#default
  • on Ubuntu 20.04 (previous LTS version that is still used and that is still recommended for https://github.com/algorand/go-algorand - actually the README even says 18.05), the default Python version is 3.8 - installing a new Python requires using a ppa, which may or may not be ok in many high-security environment.

Solution

If 3.8 / 3.9 is sufficient, why not downgrade to Python 3.8 / 3.9?
If this is not, what about adding to the installation guide (https://pyteal.readthedocs.io/en/stable/installation.html) the requirement for installing Python 3.10 with the steps to do so (at least on macOS).

Dependencies

n/a

Urgency

nice to have

@fabrice102 fabrice102 added the new-feature-request Feature request that needs triage label Jul 1, 2022
@jasonpaulos
Copy link
Contributor

jasonpaulos commented Jul 1, 2022

We can't downgrade now that we've started to use 3.10 features (namely pattern matching), but it's certainly possible that we could offer more guidance about how to install/use the correct Python version.

@michaeldiamant
Copy link
Contributor

@fabrice102 We opened #435 to hopefully clarify the docs - feedback welcomed.

Good point RE: updating installation user guide. The PR takes in the feebdack.

@michaeldiamant michaeldiamant self-assigned this Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature-request Feature request that needs triage Team Scytale
Projects
None yet
Development

No branches or pull requests

3 participants