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

Please update the requirements.txt in examples/sqla/ #2415

Open
Soham7777777 opened this issue Feb 27, 2024 · 1 comment
Open

Please update the requirements.txt in examples/sqla/ #2415

Soham7777777 opened this issue Feb 27, 2024 · 1 comment

Comments

@Soham7777777
Copy link

Soham7777777 commented Feb 27, 2024

Hello, I am Soham from Darshan University in India, Gujarat, Rajkot. I am fond of creating web apps in Python, especially in Flask. When I heard about this extension from a Stack Overflow question, I was really amazed, so I decided to give it a try and follow the README file for this project.

In the main README file, there are steps to run an example server. One of these steps is to install modules from examples/sqla/requirements.txt. The problem is that there are no versions specified in that text file (maybe it's handwritten and not using the pip freeze command). Thus, the installed Flask version is modern, and the installed Babel version is old (because there is "Ex" attached to the name). When running the server from run_server.py, it gives this error:

Traceback (most recent call last):
  File "/home/soham/Desktop/random_experiments/flask-admin/examples/sqla/run_server.py", line 1, in <module>
    from admin import app
  File "/home/soham/Desktop/random_experiments/flask-admin/examples/sqla/admin/__init__.py", line 3, in <module>
    from flask_babelex import Babel
  File "/home/soham/Desktop/random_experiments/flask-admin/pyenv/lib/python3.11/site-packages/flask_babelex/__init__.py", line 20, in <module>
    from flask import _request_ctx_stack
ImportError: cannot import name '_request_ctx_stack' from 'flask' (/home/soham/Desktop/random_experiments/flask-admin/pyenv/lib/python3.11/site-packages/flask/__init__.py)

(This is my first issue by the way...)

@npadgen
Copy link

npadgen commented Mar 12, 2024

Seems to be the same as issue #2413

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