nginx-flask-mysql/backend-requirements.txt file needs to update #48

Open
opened 2025-11-06 14:17:18 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @dazimax on GitHub (Mar 5, 2022).

nginx-flask-mysql requirements.txt file needs to be updated with the below

Flask==2.0.1
itsdangerous==2.0.1
mysql-connector==2.2.9

Otherwise it will give the below error

backend_1  | Traceback (most recent call last):
backend_1  |   File "/usr/local/bin/flask", line 5, in <module>
backend_1  |     from flask.cli import main
backend_1  |   File "/usr/local/lib/python3.8/site-packages/flask/__init__.py", line 19, in <module>
backend_1  |     from . import json
backend_1  |   File "/usr/local/lib/python3.8/site-packages/flask/json/__init__.py", line 15, in <module>
backend_1  |     from itsdangerous import json as _json
backend_1  | ImportError: cannot import name 'json' from 'itsdangerous' (/usr/local/lib/python3.8/site-packages/itsdangerous/__init__.py)
Originally created by @dazimax on GitHub (Mar 5, 2022). nginx-flask-mysql requirements.txt file needs to be updated with the below ``` Flask==2.0.1 itsdangerous==2.0.1 mysql-connector==2.2.9 ``` Otherwise it will give the below error ``` backend_1 | Traceback (most recent call last): backend_1 | File "/usr/local/bin/flask", line 5, in <module> backend_1 | from flask.cli import main backend_1 | File "/usr/local/lib/python3.8/site-packages/flask/__init__.py", line 19, in <module> backend_1 | from . import json backend_1 | File "/usr/local/lib/python3.8/site-packages/flask/json/__init__.py", line 15, in <module> backend_1 | from itsdangerous import json as _json backend_1 | ImportError: cannot import name 'json' from 'itsdangerous' (/usr/local/lib/python3.8/site-packages/itsdangerous/__init__.py) ```
Author
Owner

@stewartmbofana commented on GitHub (Jun 24, 2022):

@dazimax can you create a Pull Request for it. Thanks

@stewartmbofana commented on GitHub (Jun 24, 2022): @dazimax can you create a Pull Request for it. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-compose#48