Reputation: 6865
I have successfully deployed my python with bottle framework application in google app engine, however, I'm getting one of the most peculiar errors.
Whenever I try opening a file for writing I get the error,
Error: 500 Internal Server Error
Sorry, the requested URL 'http://issamcodemate.appspot.com/' caused an error:
Internal Server Error
This occurs when I execute any of the following statements in the server side,
f = open("Files/currentFile.txt",'r+')
f = open("Files/currentFile.txt",'w')
f = open("Files/currentFile.txt",'a')
Strangely, it works fine when I execute this code,
f = open("Files/currentFile.txt",'r')
But this is only for reading...
Thanks in advance..
Upvotes: 0
Views: 129
Reputation: 599600
You cannot write to the local filesystem in GAE. Use the blobstore or Google Cloud Storage.
Upvotes: 3