[Mapit] PIL will not make map, BUG BUG!! Please make correction.
Cave Crickett
crickett at gmail.com
Thu Oct 27 17:38:31 CEST 2005
I understand this isn't an active project. A new release would be
nice, but at the least, a note on the installation page would have
saved me hours!
Thanks for a cool product.
G
PS. Are you looking for someone to take over this project?
My system:
=== OS/Kernel Version ===> uname -a
FreeBSD seisan.inel.gov 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8
10:21:06 UTC 2005
=== python-2.4.1_3 ===> /var/db/pkg/python-2.4.1_3/+COMMENT
An interpreted object-oriented programming language
=== mod_python-2.7.11 ===> /var/db/pkg/mod_python-2.7.11/+COMMENT
Apache module for integrating Python
=== mod_fastcgi-2.4.2 ===> /var/db/pkg/mod_fastcgi-2.4.2/+COMMENT
A fast-cgi module for Apache
PIL 1.1.5
On 10/27/05, Bernhard Herzog <bh at intevation.de> wrote:
> Cave Crickett <crickett at gmail.com> writes:
>
> > line 78 reads:
> > image = PIL.Image.new("RGB", (result_width, result_height), 0xFFFFFFFF)
> >
> > should read:
> > image = PIL.Image.new("RGB", (result_width, result_height), 0xFFFFFF)
> > There are too many F's. This causes the PIL not to gen the map!
>
> Thanks for pointing this out!
>
> Which Python version do you use? What's the exact error message you
> get? I suspect it's Python 2.4. In 2.4 the interpretation of
> hexadecimal literals changed. Formerly, on a 32 bit system, 0xFFFFFFFF
> was -1, now it's 4294967295L. With Python 2.4 I get the error
>
> return Image()._new(core.fill(mode, size, color))
> SystemError: new style getargs format but argument is not a tuple
>
> With older Python's the code that's in MapIt works just fine. Of
> course, since it doesn't work anymore with 2.4, we'll have to fix it.
> Fixing it is easy enough. The change you propose also works with older
> Python+PIL versions including Python 1.5.2 and PIL 1.1.3.
>
> I don't know when I'll have time to actually make a release, though.
> Part of the difficulty there is that we don't really use mapit anymore
> and haven't worked on it since April 2002.
>
>
> Bernhard
>
> --
> Intevation GmbH http://intevation.de/
> Skencil http://skencil.org/
> Thuban http://thuban.intevation.org/
>
--
Greg Bosen
Q: What's tiny and yellow and very, very, dangerous?
A: A canary with the super-user password
More information about the Mapit
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)