AutoMihoyoBBS
AutoMihoyoBBS copied to clipboard
在阿里云函数计算报错
{ "errorMessage": "Unable to import module 'index'", "errorType": "ImportModuleError", "stackTrace": [ "ImportError: cannot import name 'asynccontextmanager'" ] }
pip3 install PyYAML -t . 本地执行一遍后打包上传即可
输入了然后出现这个pip3 install PyYAML -t . ERROR: Can not combine '--user' and '--target'
输入了然后出现这个pip3 install PyYAML -t . ERROR: Can not combine '--user' and '--target'
在什么环境执行的?本地还是云函数,本地是在和main.py同一个目录吗?
解决了,重新下载了一遍python
我觉得挺离谱的
同样这个问题,且pip3 install PyYAML -t .无效,python正常
2022-09-01 01:34:46 f9209d94-bd3d-4224-9abe-a227933992ef [ERROR] {'errorMessage': "Unable to import module 'index'", 'errorType': 'ImportModuleError', 'stackTrace': ["ImportError: cannot import name 'asynccontextmanager'"]} FC Invoke End RequestId: f9209d94-bd3d-4224-9abe-a227933992ef, Error: Unhandled function error
可以添加自定义依赖层