[Pywps-dev] maxfilesize Limit
Adrien ANDRÉ
adr.andre at laposte.net
Thu Aug 27 07:15:30 PDT 2015
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
More information about the pywps-dev
mailing list