multivisor icon indicating copy to clipboard operation
multivisor copied to clipboard

Web Interface does not start

Open wackazong opened this issue 2 years ago • 3 comments

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.

wackazong avatar Mar 29 '22 12:03 wackazong

Seems that werkzeug 2.0.3 is the latest version that works. 2.1.0 produces the error.

wackazong avatar Mar 29 '22 12:03 wackazong

RUN pip uninstall Werkzeug && pip install Werkzeug==2.0.0

exactstat avatar Apr 08 '22 22:04 exactstat

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

kratsg avatar Nov 03 '22 21:11 kratsg