我正在使用 AWS SAM 构建一个 Flask Lambda 应用程序,我的 requests.txt 文件看起来像 requests contentful Flask-lambda numpy 最近,Flask Lambda 库已更新,从那时起,每当我运行 lambda 函数时,我都会收到以下错误:
{"errorMessage": "Unable to import module 'app': cannot import name 'BaseRequest' from 'werkzeug.wrappers' (/var/task/werkzeug/wrappers/__init__.py)", "errorType": "Runtime.ImportModuleError", "requestId": "f6e80202-e6ca-4335-9b3c-f15b3a6496c1", "stackTrace": []}[ERROR] Runtime.ImportModuleError: Unable to import module 'app': cannot import name 'BaseRequest' from 'werkTraceback (most recent call last):/wrappers/__init__.py)
Run Code Online (Sandbox Code Playgroud)