我正在尝试从 Excel 文件中复制该值,但它返回此错误消息:
Exception while executing function: Functions.extract Result: Failure
Exception: OSError: [Errno 30] Read-only file system: './data_download/xxxxx.xlsx'
Stack: File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 343, in handle_invocation_request
call_result = await self._loop.run_in_executor(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 480, in __run_sync_func
return func(**params)
File "/home/site/wwwroot/extract/_init_.py", line 62, in main
with open(download_file_path, "wb") as download_file:
Run Code Online (Sandbox Code Playgroud)
我的代码
with open(download_file_path, "wb") as download_file:
Run Code Online (Sandbox Code Playgroud)
这个和Azure函数没有关系,一般只有/tmp好像是可写的
尝试将 tmp 添加到文件路径
filepath = '/tmp/' + key
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1304 次 |
| 最近记录: |