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

example 的docker-compose启动报错:cannot import name 'url_quote' from 'werkzeug' (/usr/lib/pyy) #11

Open
emmnoi opened this issue May 11, 2020 · 0 comments

Comments

@emmnoi
Copy link

emmnoi commented May 11, 2020

Creating examples_sso_1 ... done
Creating examples_site1_1 ... done
Creating examples_site2_1 ... done
Attaching to examples_sso_1, examples_site2_1, examples_site1_1
site2_1 | Traceback (most recent call last):
site2_1 | File "site2/client.py", line 3, in
site2_1 | from flask_oauthlib.client import OAuth
site2_1 | File "/usr/lib/python3.8/site-packages/flask_oauthlib/client.py", line
site2_1 | from werkzeug import url_quote, url_decode, url_encode
site2_1 | ImportError: cannot import name 'url_quote' from 'werkzeug' (/usr/lib/pyy)

大概是容器内依赖的 werkzeug过高,requirements.txt 中加一行就行了,werkzeug==0.16.0

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

1 participant