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

Note Python 3.11 dependency in README #138

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

barborico
Copy link
Contributor

Access requires at least Python 3.11 to use StrEnum:

(venv) ➜  access git:(main) flask db upgrade
Error: While importing 'api.app', an ImportError was raised:

Traceback (most recent call last):
  File "/home/discord/workspaces/access/venv/lib/python3.10/site-packages/flask/cli.py", line 245, in locate_app
    __import__(module_name)
  File "/home/discord/workspaces/access/api/app.py", line 19, in <module>
    from api.authentication import AuthenticationHelpers, CloudflareAuthenticationHelpers
  File "/home/discord/workspaces/access/api/authentication.py", line 14, in <module>
    from api.models import OktaUser
  File "/home/discord/workspaces/access/api/models/__init__.py", line 1, in <module>
    from api.models.core_models import (
  File "/home/discord/workspaces/access/api/models/core_models.py", line 2, in <module>
    from enum import StrEnum
ImportError: cannot import name 'StrEnum' from 'enum' (/usr/lib/python3.10/enum.py)

@somethingnew2-0 somethingnew2-0 merged commit 17a8fc9 into main Sep 11, 2024
6 checks passed
@somethingnew2-0 somethingnew2-0 deleted the barborico/update_readme_python_version branch September 11, 2024 22:37
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

Successfully merging this pull request may close these issues.

2 participants