Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multivisor not compatible with werkzeug >=2.1 #89

Open
beenje opened this issue Jun 1, 2022 · 2 comments
Open

multivisor not compatible with werkzeug >=2.1 #89

beenje opened this issue Jun 1, 2022 · 2 comments

Comments

@beenje
Copy link
Contributor

beenje commented Jun 1, 2022

run_with_reloader was removed in werkzeug 2.1.0: pallets/werkzeug#2276

$ multivisor --help
Traceback (most recent call last):
  File "/opt/conda/envs/supervisor/bin/multivisor", line 5, in <module>
    from multivisor.server.web import main
  File "/opt/conda/envs/supervisor/lib/python3.9/site-packages/multivisor/server/web.py", line 17, in <module>
    from werkzeug.serving import run_with_reloader
ImportError: cannot import name 'run_with_reloader' from 'werkzeug.serving' (/opt/conda/envs/supervisor/lib/python3.9/site-packages/werkzeug/serving.py)

$ pip list
Package            Version
------------------ -------
blinker            1.4
click              8.1.3
Flask              2.1.2
future             0.18.2
gevent             21.12.0
greenlet           1.1.2
importlib-metadata 4.11.4
itsdangerous       2.1.2
Jinja2             3.1.2
MarkupSafe         2.1.1
msgpack            1.0.3
multivisor         6.0.1
pip                22.1.2
pyzmq              23.0.0
setuptools         62.3.2
six                1.16.0
supervisor         4.2.4
Werkzeug           2.1.2
wheel              0.37.1
zerorpc            0.6.3
zipp               3.8.0
zope.event         4.5.0
zope.interface     5.4.0
@elee1766
Copy link

elee1766 commented Nov 7, 2022

i have patched this locally by replacing run_with_reloader with run_simple, and adding arg use_reloader=True

it's in web.py

it seems to be working so far, not sure if anything else is broken yet.

@mridzwan
Copy link

Changing the import module from werkzeug.serving to werkzeug._reloader also works

miguelgrinberg/Flask-SocketIO@6563634

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants