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

Werkzeug new release v1.0.0 has breaking changes #2124

Closed
spacepirate0001 opened this issue Feb 11, 2020 · 1 comment
Closed

Werkzeug new release v1.0.0 has breaking changes #2124

spacepirate0001 opened this issue Feb 11, 2020 · 1 comment

Comments

@spacepirate0001
Copy link

When installing uwsgi v2.0.18 with Werkzeug I get the following error:

ImportError: cannot import name 'MultiDict' from 'werkzeug' (/usr/local/lib/python3.7/site-packages/werkzeug/__init__.py)
unable to load app 0 (mountpoint='') (callable not found or import error)
mounting wsgi.py on /app0
Traceback (most recent call last):
  File "wsgi.py", line 1, in <module>
    from server import app
  File "./server.py", line 1, in <module>
    from eve import Eve
  File "/usr/local/lib/python3.7/site-packages/eve/__init__.py", line 89, in <module>
    from eve.flaskapp import Eve  # noqa
  File "/usr/local/lib/python3.7/site-packages/eve/flaskapp.py", line 25, in <module>
    from eve.endpoints import (
  File "/usr/local/lib/python3.7/site-packages/eve/endpoints.py", line 20, in <module>
    from eve.methods import get, getitem, post, patch, delete, deleteitem, put
  File "/usr/local/lib/python3.7/site-packages/eve/methods/__init__.py", line 14, in <module>
    from eve.methods.get import get, getitem
  File "/usr/local/lib/python3.7/site-packages/eve/methods/get.py", line 18, in <module>
    from werkzeug import MultiDict
ImportError: cannot import name 'MultiDict' from 'werkzeug' (/usr/local/lib/python3.7/site-packages/werkzeug/__init__.py)

Workaround: Lock Werkzeug==0.16.1 that's the last known working version.

@awelzel
Copy link
Contributor

awelzel commented Feb 11, 2020

@HaythamAmin - this has nothing to do with uwsgi, it's a change in Werkzeug.

Also, the better fix is probably to upgrade to a more recent eve version once it exists:

pyeve/eve#1359

Please close - thanks!

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

2 participants