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

Web server Error cannot import name 'url encode' from 'werkzeug.urls' #1244

Closed
fperdigon opened this issue Oct 13, 2023 · 1 comment
Closed

Comments

@fperdigon
Copy link

Info

  • Which version of Pi are you using: Rpi 3 8GB
  • Which github revision of software: v23.04.01
  • Which board version: 2.7
  • Which computer is the PiSCSI connected to: Apple MAcintosh Classic

Describe the issue

Error when starting the Web server.
When running sudo journalctl -f:
cannot import name 'url encode' from 'werkzeug.urls'
This happened because flask==2.2.2 pulls the latest werkzeug==3.0.0 lib that introduced this error.
Possible fix: adding werkzeug==2.3.7 on requirements.txt file.
A better fix to avoid this from happening with other libraries will be: on each release freeze an entire environment that is known to work. pip freeze > requirements.txt when inside the environment

fperdigon added a commit to fperdigon/piscsi that referenced this issue Oct 13, 2023
…PiSCSI#1244)

Fixes PiSCSI#1244
Adding the linewerkzeug==2.3.7 on requirements.txt file allows the UI to run
@rdmark
Copy link
Member

rdmark commented Oct 13, 2023

Fixed in #1234

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

Successfully merging a pull request may close this issue.

2 participants