multivisor
multivisor copied to clipboard
Web Interface does not start
I use a Dockerfile to set up a Docker container for multivisor. I install it on a Python 3.8 image as such:
FROM python:3.8
ENV PYTHONUNBUFFERED=1 \
# prevents python creating .pyc files
PYTHONDONTWRITEBYTECODE=1 \
# pip
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100
RUN pip install multivisor[web]
ADD docker-images/multivisor/multivisor.conf /etc
CMD ["multivisor", "-c", "/etc/multivisor.conf"]
But in the Docker logs I can see ImportError: cannot import name 'run_with_reloader' from 'werkzeug.serving' (/usr/local/lib/python3.8/site-packages/werkzeug/serving.py)
Please advise.
Seems that werkzeug 2.0.3 is the latest version that works. 2.1.0 produces the error.
RUN pip uninstall Werkzeug && pip install Werkzeug==2.0.0
This is a working list of packages, the latest Flask
(2.2.2) is also incompatible with this downgraded version of werkzeug
:
# python -m pip list
Package Version
-------------- -----------
blinker 1.5
click 8.1.3
Flask 2.1.3
future 0.18.2
gevent 22.10.2
greenlet 2.0.0.post0
itsdangerous 2.1.2
Jinja2 3.1.2
MarkupSafe 2.1.1
msgpack 1.0.4
multivisor 6.0.1
pip 22.3
pyzmq 24.0.1
setuptools 65.5.0
six 1.16.0
supervisor 4.2.4
Werkzeug 2.0.3
wheel 0.37.1
zerorpc 0.6.3
zope.event 4.5.0
zope.interface 5.5.1