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

package conflicts #37

Open
xta opened this issue Oct 25, 2023 · 2 comments
Open

package conflicts #37

xta opened this issue Oct 25, 2023 · 2 comments

Comments

@xta
Copy link

xta commented Oct 25, 2023

While deploying this demo app, I got various errors:

The conflict is caused by:
The user requested Werkzeug==2.2.3
flask 2.3.2 depends on Werkzeug>=2.3.3

and

AttributeError: module 'flask.json' has no attribute 'JSONEncoder'

My workaround was to use older packages in requirements.txt:

Flask==2.2.5
Werkzeug==2.2.3

After using this older Flask, I was able to deploy to aptible

@bfdes
Copy link

bfdes commented Oct 27, 2023

I had the same issue. I upgraded Werkzeug instead.

@bfdes
Copy link

bfdes commented Oct 27, 2023

Your workaround is better. It turns out Werkzeug 2.3.3 is incompatible with Flask 2.3.2.

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