Skip to content
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

Python 3.10 not supported in latest package version #1332

Closed
kappa90 opened this issue Apr 29, 2024 · 3 comments
Closed

Python 3.10 not supported in latest package version #1332

kappa90 opened this issue Apr 29, 2024 · 3 comments
Assignees
Labels
bug Something isn't working question Further information is requested
Milestone

Comments

@kappa90
Copy link
Contributor

kappa90 commented Apr 29, 2024

Installed Zappa 0.59.0, this error is thrown when doing zappa init:

RuntimeError: This version of Python (3.10) is not supported!
Zappa (and AWS Lambda) support the following versions of Python: ['3.7', '3.8', '3.9']

Which doesn't match what's in the __init__.py file, where I can clearly see that it supports up to 3.12.

So I'm wondering if there is a problem with the released package.

Expected Behavior

Python 3.10 should work.

Actual Behavior

Zappa throws a RuntimeError

Possible Fix

Maybe an issue with the released package?

Steps to Reproduce

venv python 3.10
pip install zappa
zappa init

Your Environment

  • Zappa version used: 0.59.0
  • Operating System and Python version: Mac OS, Python 3.10
  • The output of pip freeze:
boto3==1.34.93
botocore==1.34.93
certifi==2024.2.2
cfn-flip==1.3.0
charset-normalizer==3.3.2
click==8.1.7
durationpy==0.6
hjson==3.1.0
idna==3.7
jmespath==1.0.1
kappa==0.6.0
MarkupSafe==2.1.5
placebo==0.9.0
python-dateutil==2.9.0.post0
python-slugify==8.0.4
PyYAML==6.0.1
requests==2.31.0
s3transfer==0.10.1
six==1.16.0
text-unidecode==1.3
toml==0.10.2
tqdm==4.66.2
troposphere==4.7.0
urllib3==2.2.1
Werkzeug==3.0.2
zappa==0.59.0
@javulticat javulticat self-assigned this May 3, 2024
@javulticat javulticat added bug Something isn't working in-progress Development is underway priority | P0 Priority: Critical labels May 3, 2024
@javulticat javulticat added this to the Zappa 0.59.1 milestone May 3, 2024
@javulticat
Copy link
Member

Yikes, thanks for catching that! I'll work on releasing a hotfix for that ASAP.

@javulticat javulticat added question Further information is requested and removed in-progress Development is underway priority | P0 Priority: Critical labels May 3, 2024
@javulticat
Copy link
Member

I'm unable to reproduce with Python 3.10 on MacOS - zappa init runs successfully and outputs a zappa_settings.json file without issue:

image

Can you try creating your virtual environment using Python's built-in venv command and see if that makes a difference?

python3.10 -m venv env
source env/bin/activate
pip install zappa
zappa init

@kappa90
Copy link
Contributor Author

kappa90 commented May 20, 2024

I confirm it now works 🤷 Thanks!

@kappa90 kappa90 closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants