Azure 函数 python 只读文件系统:'chromedriver.zip'
Azure function python Read-only file system: 'chromedriver.zip'
Result: Failure Exception: OSError: [Errno 30] Read-only file system: 'chromedriver.zip' Stack: File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 402, in _handle__invocation_request call_result = await self._loop.run_in_executor( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 611, in _run_sync_func return ExtensionManager.get_sync_invocation_wrapper(context, File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper result = function(**args) File "/home/site/wwwroot/TimerTrigger1/init.py", line 41, in main driver = uc.Chrome(options=options) File "/home/site/wwwroot/.python_packages/lib/site-packages/undetected_chromedriver/init.py", line 47, in new ChromeDriverManager(*args, **kwargs).install() File "/home/site/wwwroot/.python_packages/lib/site-packages/undetected_chromedriver/init.py", line 195, in install self.fetch_chromedriver() File "/home/site/wwwroot/.python_packages/lib/site-packages/undetected_chromedriver/init.py", line 227, in fetch_chromedriver urlretrieve( File "/usr/local/lib/python3.9/urllib/request.py", line 249, in urlretrieve tfp = open(filename, 'wb')
我正在尝试 运行 Azure 函数上未检测到的 chrome 驱动程序并收到此错误。在本地一切正常。如何解决?
options = webdriver.ChromeOptions()
options.headless = True
options.add_argument('--log-level=3')
options.add_argument("start-maximized")
driver = uc.Chrome(options=options)
当您尝试在函数中写入内容时出现以下错误。 Azure 函数是一个只读系统。该错误可能是由于 os 不兼容引起的。
以下线程有类似的问题:
postgresql - Result: Failure Exception: OSError: [Errno 30] Read-only file system on Python and Azure Function - Stack Overflow
还有这个
关于在 azure 函数中使用 chrome,另请参阅以下 article。
Result: Failure Exception: OSError: [Errno 30] Read-only file system: 'chromedriver.zip' Stack: File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 402, in _handle__invocation_request call_result = await self._loop.run_in_executor( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/dispatcher.py", line 611, in _run_sync_func return ExtensionManager.get_sync_invocation_wrapper(context, File "/azure-functions-host/workers/python/3.9/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper result = function(**args) File "/home/site/wwwroot/TimerTrigger1/init.py", line 41, in main driver = uc.Chrome(options=options) File "/home/site/wwwroot/.python_packages/lib/site-packages/undetected_chromedriver/init.py", line 47, in new ChromeDriverManager(*args, **kwargs).install() File "/home/site/wwwroot/.python_packages/lib/site-packages/undetected_chromedriver/init.py", line 195, in install self.fetch_chromedriver() File "/home/site/wwwroot/.python_packages/lib/site-packages/undetected_chromedriver/init.py", line 227, in fetch_chromedriver urlretrieve( File "/usr/local/lib/python3.9/urllib/request.py", line 249, in urlretrieve tfp = open(filename, 'wb')
我正在尝试 运行 Azure 函数上未检测到的 chrome 驱动程序并收到此错误。在本地一切正常。如何解决?
options = webdriver.ChromeOptions()
options.headless = True
options.add_argument('--log-level=3')
options.add_argument("start-maximized")
driver = uc.Chrome(options=options)
当您尝试在函数中写入内容时出现以下错误。 Azure 函数是一个只读系统。该错误可能是由于 os 不兼容引起的。 以下线程有类似的问题: postgresql - Result: Failure Exception: OSError: [Errno 30] Read-only file system on Python and Azure Function - Stack Overflow
还有这个
关于在 azure 函数中使用 chrome,另请参阅以下 article。