Issue
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'
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.
Solution
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.
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.
Answered By - Venantius
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.