python - IOError: [Errno 13] Permission denied when trying to read an file in google app engine -
i want read xml file , parse it, had used sax parser requires file input parse. had stored xml file in entity called xmldocs following property
xmldocs entity name name : property of string type content : property of blob type (will contain xml file)
reason had store file had not yet provide billing detail google
now when try open file in getting error of permission denied..
please me, have do...
you can see error running app at
www.parsepython.appspot.com
it thinks data string providing filename.
you may able pass file-like object wraps data, example instead of this:
parser.parse(str(q.content))
try this:
parser.parse(stringio.stringio(str(q.content)))
Comments
Post a Comment