Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update to Flask 2.x, fix Werkzeug dependency issue, operator fixes #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vincebel7
Copy link

Not tied to an issue, but this fix solves three main issues I ran when setting up, tied to some outdated packages:

  1. jinja2 error at runtime, fixed by moving from Flask 1.1.1 to 2.1.1

ImportError: cannot import name 'escape' from 'jinja2' (/home/venus/stuff/Multiplayer-Game-Server/venv/lib/python3.10/site-packages/jinja2/__init__.py)

  1. Werkzeug error at runtime, fixed by using Werkzeug 2.x and specifying in requirements.txt

ImportError: cannot import name 'run_with_reloader' from 'werkzeug.serving' (/home/venus/stuff/Multiplayer-Game-Server/venv/lib/python3.10/site-packages/werkzeug/serving.py)

  1. SyntaxWarning: "is" with a literal. Did you mean "=="? Fixed by swapping to equality operator on all five accounts

/home/venus/stuff/Multiplayer-Game-Server/server.py:61: SyntaxWarning: "is" with a literal. Did you mean "=="?

Also added venv/ to .gitignore as my aliases are set up for my venv to be named such.

@vincebel7
Copy link
Author

Any update on this?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant