[Mapit] genmap.fcgi doesn't return images

Bernhard Reiter bernhard at intevation.de
Mon Feb 12 10:00:02 CET 2007

Hi Moritz,

On Sunday 11 February 2007 23:19, Moritz Lenz wrote:
> Bernhard Reiter wrote:
> > On Sunday 11 February 2007 02:04, Moritz Lenz wrote:

> Yes, it would. I was too sleepy when I wrote that.
> I have Etch aka testing aka 4.0 (iirc).

> >> When I run `python genmap` I get:

> > This is the problem we need to concentrate on:
> >>   File "genmap", line 42, in ?
> >>     main()
> >>   File "genmap", line 37, in main
> >>     image = makemap.generate_map(parameters)
> >>   File "/home/moritz/public_html/mapit/makemap.py", line 78, in
> >> generate_map image = PIL.Image.new("RGB", (result_width, result_height),
> >> 0xFFFFFFFF) File "/usr/lib/python2.4/site-packages/PIL/Image.py", line
> >> 1610, in new return Image()._new(core.fill(mode, size, color))
> >> SystemError: new style getargs format but argument is not a tuple

> > The problems seems to arise from PIL somehow.

> >> python:	2.4.4-2

> > it would be interesting which version of PIL you are using
> > and how was it installed.
> It was installed in the debian-way via apt-get/aptitude, version is
> 1.1.5-11.
> Oddly enough it works when I start genmap explictly with python-2.3
> instead of 2.4, 

Debian switched to new way to package python modules in testing (Etch).
I suggest you do some tests with PIL directly (without Mapit) 
and python2.4 and then file a bug report with Debian.

> so I'll try to fall back to pyhton2.3. 

Should work.

> I change the shebang lines of all the python scripts to
> #!/usr/bin/python2.3
> and when I run ./genmap from the command line I get the desired output
> (Content-Type: image/png, an empty line + binary data, which _is_ a
> png), but over the web server I still get the same errors.
> Is fastcgi somehow using a different interpreter from the one specified
> in the #!-line? (And yes, I restarted apache2 after changing the
> interpreter).

You also need to shoot down the running processes of genmap.fcgi 
and showmap.fcgi.


Managing Director - Owner: www.intevation.net       (Free Software Company);
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Amtsgericht Osnabrück, HRB 18998, USt-Id DE204854484 
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/mapit/attachments/20070212/3ed01e59/attachment.bin

More information about the Mapit mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)