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

Render fails because recent version of Werkzeug has removed escape() method from utils #1474

Closed
heharkon opened this issue Apr 12, 2022 · 6 comments
Milestone

Comments

@heharkon
Copy link

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:

pallets/werkzeug@22d1e9a

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
@nicolaiarocci
Copy link
Member

appears to be fixed by #1473

@heharkon
Copy link
Author

Ah, should have tried with the dev version... Thanks! And sorry for the unnecessary bug report. 😊

@nicolaiarocci
Copy link
Member

nicolaiarocci commented Apr 13, 2022

it's ok, the pull request is not merged yet anyway.

@nicolaiarocci
Copy link
Member

this should be now fixed

@nicolaiarocci nicolaiarocci added this to the 2.0 milestone Apr 13, 2022
@gubasso
Copy link

gubasso commented May 18, 2022

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?

@nicolaiarocci
Copy link
Member

Hi, you should wait for v2 release, or use the current master branch.

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