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

Closed
Soham7777777 opened this issue Feb 27, 2024 · 2 comments
Closed

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

Soham7777777 opened this issue Feb 27, 2024 · 2 comments

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

@samuelhwilliams
Copy link
Contributor

Closing as duplicate of #2413

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants