Re: [mapserver-users] Python MapScript via WSGI examples

2016-07-15 Thread Jeff McKenna
On 2016-07-15 6:46 PM, Jeff McKenna wrote: Hi Tom, I believe I have your test working here, on Windows with mod_wsgi, Python 3.5.1, and MapScript7. Googling your error I believe your header problem occurs just for Python2 responses (maybe both Julien and I are using Python3 ?) What happens if

Re: [mapserver-users] Python MapScript via WSGI examples

2016-07-15 Thread Jeff McKenna
Hi Tom, I believe I have your test working here, on Windows with mod_wsgi, Python 3.5.1, and MapScript7. Googling your error I believe your header problem occurs just for Python2 responses (maybe both Julien and I are using Python3 ?) What happens if you try to force the content-type to utf

Re: [mapserver-users] Python MapScript via WSGI examples

2016-07-15 Thread Julien-Samuel Lacroix
Hi Tom, I tried your script and simply changed the mapfile to use the one in mapserver/tests/ I got a valid response from the following URL: http://127.0.0.1:8001/?service=wms&request=GetMap&layers=Testing&version=1.1.1&format=image/png&srs=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=600&HEIGHT=300

Re: [mapserver-users] Python MapScript via WSGI examples

2016-07-15 Thread Kralidis, Tom (EC)
Thanks Julien and Stephan: I've updated my example in [1], however I get the following traceback when issuing a WMS 1.1.1 GetMap request: Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_respo