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

werkzeug >=3.0 is required, but raises error in patch_flask #90

Open
eschibli opened this issue Nov 1, 2024 · 3 comments
Open

werkzeug >=3.0 is required, but raises error in patch_flask #90

eschibli opened this issue Nov 1, 2024 · 3 comments

Comments

@eschibli
Copy link

eschibli commented Nov 1, 2024

werkzeug 3.0 removed the version attribute, which is accessed in the patch_flask function that runs on startup.

Line 33 in create_app.py should not be necessary anymore since werkzeug>=3.0 is required now.

@jayakrishnaMan
Copy link

I am also facing the same issue and it's failing all my deployments. Is there any fix available?

2024-11-10 14:54:18,146 W [71] azmlinfsrv - AML_FLASK_ONE_COMPATIBILITY is set. However, compatibility patch for Flask 1 has failed. This is only a problem if you use @rawhttp and relies on deprecated methods such as has_key().
Traceback (most recent call last):
  File "/opt/miniconda/envs/azureml_env2e888c9a6d4b4128a74cf7c24c396821/lib/python3.10/site-packages/azureml_inference_server_http/server/create_app.py", line 58, in <module>
    patch_flask()
  File "/opt/miniconda/envs/azureml_env2e888c9a6d4b4128a74cf7c24c396821/lib/python3.10/site-packages/azureml_inference_server_http/server/create_app.py", line 33, in patch_flask
    patch_werkzeug = LooseVersion(werkzeug.__version__) >= LooseVersion("2.1")
AttributeError: module 'werkzeug' has no attribute '__version__'```

@riccardotrevisan
Copy link

riccardotrevisan commented Nov 11, 2024

Not sure deployments fail due to that error.
Paste full log and check also issue #3415 (azureml-examples).

@jayakrishnaMan
Copy link

Sure will check it out. I am also facing error "
Failed to test model: Network Error" once it finishes

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