我必须使用Android Publisher upload.py
脚本(4 - * .apk和4 - * .obb)上传8个文件,每个APK大约为11MB,每个OBB大约为400MB。
程序启动确定第一个APK正在上传,但当脚本尝试上传第一个OBB时,我收到MemoryError
Start uploading a:\TemporaryUploadFolder\NAME.apk
Version code 510 has been uploaded
Start uploading
a:\TemporaryUploadFolder\NAME.obb
Traceback (most recent call last):
File
"C:\agent\src\AutoQueueingModule2\
BuildServer.Agent\Utility\GoogleUploader\upload.py", line 107, in <module>
main(sys.argv)
File
"C:\agent\src\AutoQueueingModule2\
BuildServer.Agent\Utility\GoogleUploader\upload.py", line 86, in main
obb_response =
service.edits().expansionfiles().
upload(apkVersionCode=apk_response['versionCode'], expansionFileType='main',
editId=edit_id, packageName=package_name, media_body=obb_file).execute()
File "C:\Python27\lib\site-packages\oauth2client\util.py", line 135, in
positional_wrapper
return wrapped(*args, **kwargs)
File "C:\Python27\lib\site-packages\googleapiclient\http.py", line 827, in
execute
method=str(self.method), body=self.body, headers=self.headers)
File "C:\Python27\lib\site-packages\googleapiclient\http.py", line 154, in
_retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File "C:\Python27\lib\site-packages\oauth2client\client.py", line 631, in
new_request
redirections, connection_type)
File "C:\Python27\lib\site-packages\httplib2\__init__.py", line 1609, in
request
(response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
File "C:\Python27\lib\site-packages\httplib2\__init__.py", line 1351, in
_request
(response, content) = self._conn_request(conn, request_uri, method, body,
headers)
File "C:\Python27\lib\site-packages\httplib2\__init__.py", line 1273, in
_conn_request
conn.request(method, request_uri, body, headers)
File "C:\Python27\lib\httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "C:\Python27\lib\httplib.py", line 1097, in _send_request
self.endheaders(body)
File "C:\Python27\lib\httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "C:\Python27\lib\httplib.py", line 895, in _send_output
msg += message_body
MemoryError
我知道有一个limitation of files size to 2GB,但这些文件中的任何文件都超过500MB。我还想提一下,这个剧本之前有效并且突然停止了。
答案 0 :(得分:0)
安装Python 64bit后,这个问题现在更长了。