Render fails because recent version of Werkzeug has removed escape() method from utils
heharkon opened this issue · comments
The render fails with recent versions (2.1.x) of Werkzeug as they have removed the escape method from utils module.
Here's their change commit:
Usage of escape() in Eve:
render.py, method xml_add_links():
chunk % (rel, utils.escape(d["href"]), utils.escape(d["title"]))
Environment
- Python version: 3.10
- Eve version: 1.1.5
appears to be fixed by #1473
Ah, should have tried with the dev version... Thanks! And sorry for the unnecessary bug report. 😊
it's ok, the pull request is not merged yet anyway.
this should be now fixed
I'm trying to pull off a project with Eve, but I the last version installed still has this issue (Eve = "^1.1.5"): AttributeError: module 'werkzeug.utils' has no attribute 'escape'
Which version do I install to get Eve working correctly today?
Hi, you should wait for v2 release, or use the current master
branch.