[Pywps-dev] maxfilesize Limit

Jachym Cepicky jachym.cepicky at gmail.com
Fri Sep 4 09:27:04 PDT 2015


hm, thank you for your report that is totally strange, I thought, python
can deal larger numbers with no problem

If I understand correctly, 8 GB = 8*1024*1024*1024 = 8589934592 b ?

J

čt 27. 8. 2015 v 16:35 odesílatel Adrien ANDRÉ <adr.andre at laposte.net>
napsal:

> Dear list,
>
> is it possible to process files larger than 2047 Mb with PyWPS?
>
>
> When i set maxfilesize to 2048mb, i get the following error:
>
> AH01215: Traceback (most recent call last):
> AH01215:   File "/usr/local/bin/wps.py", line 5, in <module>
> AH01215:     pkg_resources.run_script('pywps==3.2.2', 'wps.py')
> AH01215:   File "/usr/lib/python2.7/dist-packages/pkg_resources.py",
> line 528, in run_script
> AH01215:     self.require(requires)[0].run_script(script_name, ns)
> AH01215:   File "/usr/lib/python2.7/dist-packages/pkg_resources.py",
> line 1394, in run_script
> AH01215:     execfile(script_filename, namespace, namespace)
> AH01215:   File
>
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/EGG-INFO/scripts/wps.py",
> line 87, in <module>
> AH01215:     if wps.parseRequest(inputQuery):
> AH01215:   File
>
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/__init__.py",
> line 213, in parseRequest
> AH01215:     self.inputs = self.parser.parse(queryStringObject)
> AH01215:   File
>
> "/usr/local/lib/python2.7/dist-packages/pywps-3.2.2-py2.7.egg/pywps/Parser/Post.py",
> line 94, in parse
> AH01215:     inputXml = file.read(maxFileSize)
> AH01215: OverflowError: Python int too large to convert to C long
> End of script output before headers: wps
>
> 2048*1024*1024 is indeed superior to the long C datatype positive limit
> (of 2147483647)...
>
> I would like to set maxfilesize to 8 Gb...
>
>
>
> Thanking you in advance,
>
> regards,
>
> Adrien
> _______________________________________________
> pywps-dev mailing list
> pywps-dev at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/pywps-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20150904/706abde0/attachment.html>


More information about the pywps-dev mailing list