I think it's a limitation of gzip. We might be able to work around it, but 
maybe not worth it to accommodate such a rare case. I would recommend 
instead doing a custom pack of the app, excluding whatever is taking up so 
much space (presumably either a large SQLite file or lots of uploads). Then 
use alternative means of copying/moving the files excluded from the .w2p 
package.

Anthony

On Tuesday, April 19, 2016 at 10:35:09 AM UTC-4, Niphlod wrote:
>
> awww... an application 2gb in size ? what's in there ?
>
> report it as a bug: dunno if it'll ever get fixed but seems that web2py is 
> putting everything in memory before dumping to the tar.
>
> On Tuesday, April 19, 2016 at 1:05:12 PM UTC+2, Shaun Smith wrote:
>>
>> Hi 
>>
>> I receive the following error message when I try to pack an application 
>> that has a size of 2GB. The question title "internal error:size does not 
>> fit in an int" shows the flashed error message. I am using web2py version 
>> 2.14.3-stable+timestamp.2016.03.26.17.54.43. I have made an alternative 
>> arrangement of compressing the application to a tar.gz archive.
>>
>> Please advise regarding the below error.
>>
>> Traceback (most recent call last):
>>   File "web2py/gluon/admin.py", line 59, in app_pack
>>     w2p_pack(filename, apath(app, request), filenames=filenames)
>>   File "web2py/gluon/fileutils.py", line 251, in w2p_pack
>>     w2pfp.write(tarfp.read())
>>   File "/usr/lib/python2.7/gzip.py", line 241, in write
>>     self.fileobj.write(self.compress.compress(data))
>> OverflowError: size does not fit in an int
>>
>> Thanks and Kind Regards
>> Shaun
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to