UWIT-UE / am2alertapi

Prometheus alertmanager to UW alertAPI
GNU General Public License v3.0
0 stars 1 forks source link

Update requirements.txt with flask dependency version lock #58

Open pnw-ryanmcgr opened 1 month ago

pnw-ryanmcgr commented 1 month ago

Recommend including a specific package version for a dependency of flask, due to a bad dependency specification in Pypi.

https://stackoverflow.com/questions/77213053/why-did-flask-start-failing-with-importerror-cannot-import-name-url-quote-fr

>>> from quart import Quart, Response, request, abort, jsonify
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/venv/lib/python3.10/site-packages/quart/__init__.py", line 5, in <module>
    from .app import Quart as Quart
  File "/venv/lib/python3.10/site-packages/quart/app.py", line 46, in <module>
    from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/venv/lib/python3.10/site-packages/werkzeug/urls.py)