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.BaseRequest Deprecated #13

Open
erdem opened this issue Mar 28, 2022 · 4 comments
Open

werkzeug.BaseRequest Deprecated #13

erdem opened this issue Mar 28, 2022 · 4 comments

Comments

@erdem
Copy link

erdem commented Mar 28, 2022

I have discovered BaseRequest class removed from werkzeug later 2.1.0 version.

Related discussion here.

The package works fine in 2.0.3 version as well as tested. However, would be great if you can specify the exact dependent werkzeug version or fix the deprecated implementation.

Thanks

@joranbeasley
Copy link
Contributor

from werkzeug.wrappers import BaseRequest
>>> from werkzeug.wrappers import BaseRequest
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'BaseRequest' from 'werkzeug.wrappers' (E:\flask-webhook-creator\venv\lib\site-packages\werkzeug\wrappers\__init__.py) 

@joranbeasley
Copy link
Contributor

see: #14 for potential fix

@yalattas
Copy link

I've installed the package and tried to run the app and its throw same error

{"errorMessage": "Unable to import module 'run': cannot import name 'BaseRequest' from 'werkzeug.wrappers' (/var/task/werkzeug/wrappers/__init__.py)", "errorType": "Runtime.ImportModuleError"

Thanks to @erdem, I fixed it by downgrading the package to Werkzeug==2.0.3 in requirements.txt

@iitow
Copy link

iitow commented Mar 16, 2023

Question is a 0.0.5 pkg going to be released?

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

4 participants