[web2py] Re: internal error:size does not fit in an int

2016-04-19 Thread Leonel Câmara
Yep this is a bug in the zlib library python uses, nothing we can do here. 
It has only been fixed (more of a workaround than a fix) in python 3.5 (see 
here ) as far as I know.

-- 
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.


[web2py] Re: internal error:size does not fit in an int

2016-04-19 Thread Anthony
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.


[web2py] Re: internal error:size does not fit in an int

2016-04-19 Thread Niphlod
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.


[web2py] Re: internal error:size does not fit in an int

2015-07-28 Thread joseph simpson
Needed to remove some of the files from the upload folder..

To make the application smaller..

On Tue, Jul 28, 2015 at 8:03 AM, joseph simpson jjs0...@gmail.com wrote:

 I have an application with 677 png images each around 10 megs in size.

 When I try to pack all and download the application I get an error
 internal error: size does not fit in an int.

 See attached screen shot.

 Any ideas about how to handle this issue?

 Thanks for your help,

 Joe

 --
 Joe Simpson
 “Reasonable people adapt themselves to the world. Unreasonable people
 attempt to adapt the world to themselves. All progress, therefore,
 depends on unreasonable people.”
 George Bernard Shaw




-- 
Joe Simpson
“Reasonable people adapt themselves to the world. Unreasonable people
attempt to adapt the world to themselves. All progress, therefore, depends
on unreasonable people.”
George Bernard Shaw

-- 
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.