Hotfix required in v6.0.x
Hi @ziirish ! how are you doing? long time we didn't have a chat :D
Just got an issue reported with this log from some recent installation:
Traceback (most recent call last):
File "/usr/local/bin/flask", line 5, in <module>
from flask.cli import main
File "/usr/local/lib/python3.10/dist-packages/flask/__init__.py", line 17, in <module>
from werkzeug.exceptions import abort
File "/usr/local/lib/python3.10/dist-packages/werkzeug/__init__.py", line 151, in <module>
__import__('werkzeug.exceptions')
File "/usr/local/lib/python3.10/dist-packages/werkzeug/exceptions.py", line 71, in <module>
from werkzeug.wrappers import Response
File "/usr/local/lib/python3.10/dist-packages/werkzeug/wrappers.py", line 27, in <module>
from werkzeug.http import HTTP_STATUS_CODES, \
File "/usr/local/lib/python3.10/dist-packages/werkzeug/http.py", line 1148, in <module>
from werkzeug.datastructures import Accept, HeaderSet, ETags, Authorization, \
File "/usr/local/lib/python3.10/dist-packages/werkzeug/datastructures.py", line 16, in <module>
from collections import Container, Iterable, MutableSet
ImportError: cannot import name 'Container' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
When googling about it, I found: https://stackoverflow.com/questions/71767715/importerror-cannot-import-name-container-from-collections-heroku
Could an update requirements.txt Flask version to 2.0.3 help? https://git.ziirish.me/ziirish/burp-ui/-/blob/master/requirements.txt#L2
Looks like there is not much difference in the werkzeug it uses: https://github.com/pallets/flask/blob/2.0.3/setup.py#L7
Maybe some other requirement is downgrading the Werkzeug in use?