zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.31k stars 363 forks source link

Python 3.10 not supported in latest package version #1332

Closed kappa90 closed 5 months ago

kappa90 commented 6 months ago

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

javulticat commented 6 months ago

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

javulticat commented 6 months ago

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 commented 5 months ago

I confirm it now works 🤷 Thanks!