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

Support for python 3.11+ #195

Open
mdantonio opened this issue Jul 18, 2024 · 1 comment
Open

Support for python 3.11+ #195

mdantonio opened this issue Jul 18, 2024 · 1 comment

Comments

@mdantonio
Copy link

Hi, is python 3.11+ officially supported?
setup.py reports >=3.6 but I'm having errors with python 3.11

python_requires=">=3.6",

ValueError: mutable default <class 'starkware.cairo.lang.instances.CpuInstanceDef'> for field cpu_instance_def is not allowed: use default_factory

coming from

cpu_instance_def: CpuInstanceDef = field(default=CpuInstanceDef())

Starknet-py 0.20 introduced support for python 3.12, so I was trying to upgrade our current python environment (from python 3.9).
With python 3.10 I haven't observed issues, but this check could be limited, and based on some specific use cases.
For maximum compatibility, what version of python do you suggest to use?

@feltroidprime
Copy link

feltroidprime commented Jul 30, 2024

Python 3.10 seems to work well in 99% of cases, but I think the main supported and tested version is 3.9.

3.11 would be great indeed as it brings a free 25% increase just by upgrading , and better typing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants