-
Notifications
You must be signed in to change notification settings - Fork 508
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
flask-restplus is broken by Werkzeug 1.0.0 #777
Comments
I too am experiencing this issue from a fresh install.
Environment: Edit: Downgrading to Werkzeug to 0.16.0 (temporarily) resolved the issue. |
Same issue here
psycopg2-binary==2.8.3 Many thanks in advance |
Temporary workaround: use Werkzeug==0.16.1 |
Temporary workaround: use Werkzeug==0.16.1 |
Found the cause, but not sure how to fix it (if anybody does, please do)... |
It's because |
Fixed here #778 Awaiting for code review. |
As #777 (comment) said, you can pin the werkzeug version to 0.16.1 in your project dependencies. |
This project should be considered dead as stated in #770 |
@ziirish thank you. I will ask our dev team to move over. Thank you for taking on this project! |
Werkzeug package got new version(1.0.0) update today. The update is not backward compatible, many Flask based libraries are breaking. |
Thanks.. done until packages are updated. I like to keep as new as possible to reduce code rewrites when vulnerabilities are found. I am hoping switching to new library will not require many changes to our code :) |
We have now released flask-restx 0.1.1 that workarounds the issue. |
Downgrade werkzeug and jsonschema, because their newest release break Flask and flask-restplus. More information --> pallets/flask#3486 and noirbizarre/flask-restplus#777
Downgrade werkzeug and jsonschema, because their newest release break Flask and flask-restplus. More information --> pallets/flask#3486 and noirbizarre/flask-restplus#777
Downgrade werkzeug and jsonschema, because their newest release break Flask and flask-restplus. More information --> pallets/flask#3486 and noirbizarre/flask-restplus#777
Downgrade werkzeug and jsonschema, because their newest release break Flask and flask-restplus. More information --> pallets/flask#3486 and noirbizarre/flask-restplus#777
Downgrade werkzeug and jsonschema, because their newest release break Flask and flask-restplus. More information --> pallets/flask#3486 and noirbizarre/flask-restplus#777
Thank you @jblom works perfectly |
got a fix around this issue in api.py just add from werkzeug.utils import cached_property , then your code will work like a charm |
This solution works for me. Thanks! |
- `cached_property` was deprecated in Werkzeug>0.16.1 - a replacement is available in `werkzeug.utils` Example issue: noirbizarre/flask-restplus#777
- pin to Werkzeug==0.16.1 (noirbizarre/flask-restplus#777 (comment))
This solution worked for me as well. for me I downgraded it using |
We have now released flask-restx 0.1.1 that workarounds the issue.
|
"from werkzeug import cached_property" in file api.py file needs to be changed to "from werkzeug.uitls import cached_property" regards, |
Is someone going to fix this small bug ? Downgrading werkzeug <= 1.0.0 is not a long term solution for this problem |
Yes agree ! |
No, this bug won't get fixed. Flask-restplus has ceased development. There are no active maintainers. There is a fork, though we are far behind as well (but this issue has been fixed in flask-restx at least) |
As I see werkzeug has been updated recently(2.1+) and a workaround slightly changed because they remove BaseResponse and combine it with Response
|
if we downgrade werkzeug 0.16.1 , looks we need to downgrade flask as well. flask 2.1.1 requires Werkzeug>=2.0, but you have werkzeug 0.16.1 which is incompatible |
it's already two more years, Werkzeug is 2.1.2. still nobody fix the issue? ERROR: flask 2.1.2 has requirement Werkzeug>=2.0, but you'll have werkzeug 0.16.1 which is incompatible. |
Move to flask_restx, restplus will no longer be updated |
Ask when this bug will be fixed? |
Downgrade werkzeug and jsonschema, because their newest release break Flask and flask-restplus. More information --> pallets/flask#3486 and noirbizarre/flask-restplus#777
Sorry, I am an Ops guys and not a developer but I hope this helps..
Error Messages/Stack Trace
If applicable, add the stack trace produced by the error
| Traceback (most recent call last): | File "./manage.py", line 4, in <module> | from qsystem import db, application | File "/opt/app-root/src/qsystem.py", line 16, in <module> | from flask_restplus import Api | File "/opt/app-root/lib/python3.6/site-packages/flask_restplus/__init__.py", line 4, in <module> | from . import fields, reqparse, apidoc, inputs, cors | File "/opt/app-root/lib/python3.6/site-packages/flask_restplus/fields.py", line 17, in <module> | from werkzeug import cached_property | ImportError: cannot import name 'cached_property'
Environment
The text was updated successfully, but these errors were encountered: