IOError:[Errno 30]只读文件系统:'geckodriver.log' [英] IOError: [Errno 30] Read-only file system: 'geckodriver.log'

查看:175
本文介绍了IOError:[Errno 30]只读文件系统:'geckodriver.log'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过单击HTML页面上的按钮来运行python脚本. Python脚本使用Selenium Firefox驱动程序执行一些任务.当我从命令提示符运行脚本时,脚本运行良好,但是当尝试通过网页与应用程序一起运行时,脚本运行良好.它给出以下错误.

I am trying to run a python script by clicking a button on HTML page. Python script uses Selenium Firefox driver to perform some tasks. The script works well when I run it from command prompt but when I try to run it through webpage withing the application. It gives the following error.

  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\python\runtime\stubs.py", line 278, in __init__
    raise IOError(errno.EROFS, 'Read-only file system', filename)
IOError: [Errno 30] Read-only file system: 'geckodriver.log'

我正在使用Google App Engine的webapp2框架和python 2.7

I am using Google App Engine's webapp2 framework and python 2.7

我试图对其进行谷歌搜索,但找不到任何东西.请提出任何建议,我该如何解决这个错误.

I tried to googling it but couldn't find anything. Any suggestions please, how can I solve this bug.

推荐答案

如其他人所述,App Engine应用程序在沙盒环境中运行.这些沙箱条件之一是不允许您修改文件系统.

As others have noted, App Engine applications are run in a sandboxed environment. One of those sandbox conditions is that you are not permitted to modify the filesystem.

在正常情况下,可以通过将Selenium配置为通过将BROWSER_LOGFILE环境变量设置为/dev/null将日志写入/dev/null来解决此问题.我不确定是否会遇到相同的文件系统问题,但这可能值得一试.

In normal circumstances, you can get around this by configuring Selenium to write the logs to /dev/null by setting the BROWSER_LOGFILE environment variable to /dev/null. I'm not sure if that'll run into the same filesystem issues, but it's probably worth a shot.

这篇关于IOError:[Errno 30]只读文件系统:'geckodriver.log'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆