Which can lead to the fact that the zip file will not be recognized in the Google App Engine if it correctly reads my local GAE sdk file

My code runs successfully when I run it locally, but when I upload it to GAE and try to run it, it throws me a BadZipfile: The file is not a zip file or ends with a comment

raw_file = urllib2.urlopen(url)
buffer = cStringIO.StringIO(raw_file.read())
z = zipfile.ZipFile(buffer)

zip file size is 2.5 mb unzipped size is 14 mb

What is the difference in the two environments causing this error?

+3
source share
1 answer

, urlfetch (API App Engine HTTP- ), 1 , . Dev_appserver 1 .

+2

Source: https://habr.com/ru/post/1716657/


All Articles