-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error launching the examples using Python 3.12 #2413
Comments
Example sqla relies on an older project Flask-BabelEx, which relies on a feature If you want to see the effect of example $ cat examples/sqla/requirements.txt
Flask<2.3.0
Flask-Admin
Flask-BabelEx
Flask-SQLAlchemy
tablib
enum34; python_version < '3.0'
sqlalchemy_utils
arrow
colour
email_validator
# note: for local development, replace 'Flask-Admin' above with a reference to
# your local copy of the repo e.g. '-e .' if you're installing this from the
# repo's root directory
$ |
Same error @samuelhwilliams Fixed with downgrading to |
I'm working on a v2.0.0 release currently that brings Python 3.12 support and moves (back) to using Flask-Babel, which should address these issues. For reference the issue here is more about Flask-BabelEx than about Flask-Admin strictly, but I appreciate that the current examples in Flask-Admin use BabelEx, so can be confusing. This should be resolved with the next release. |
When trying to install the dependencies, the following error occurs:
apparently |
Yeah I may need to update these - they expect you to be inside the example directory, but I think most of the example readmes tell you to install from the root flask_admin directory. Will try and get this updated. In the mean time - try installing from inside the specific example's dir? |
It worked! thanks. |
I updated all of the examples - hopefully this is clearer now :) |
I followed the instructions for cloning the repo and running the examples in my local environment. I'm using the latest stable python (3.12). I'm getting this error when attempting to launch run_server.py in examples:
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/Users/project/dev/flask-admin/venv/lib/python3.12/site-packages/flask/__init__.py)
What do I need to do differently? I'm sensing that I need to be on Python 2, based on some of what I'm reading but the requirements aren't clear. I saw somewhere that Python 3.6 or higher is being worked on? Please be clear in your docs about minimum requirements, if this is the problem.
The text was updated successfully, but these errors were encountered: