flask-lambda
flask-lambda copied to clipboard
werkzeug.BaseRequest Deprecated
I have discovered BaseRequest class removed from werkzeug later 2.1.0 version.
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
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)
see: https://github.com/sivel/flask-lambda/pull/14 for potential fix
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
Question is a 0.0.5 pkg going to be released?