[Mapserver-users] Error on import mapscript in Python with Mapserver 4.2.1

Sean Gillies sgillies at frii.com
Wed Jul 14 10:07:38 EDT 2004


On Jul 14, 2004, at 7:26 AM, Björn Platzen wrote:

> Hello List,
>
> I just installed mapserver 4.2.1 and Python-Mapscript.
>
> When I try
>
> import mapscript
>
> I get the following error:
>
>>>> import mapscript
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "mapscript.py", line 5, in ?
>     import _mapscript
> ImportError: /usr/lib/python2.2/site-packages/_mapscript.so: undefined
> symbol: gdImageSetClip
>
> MapServer/Mapscript is installed with gd-2.0.27, Python 2.2 on a SuSE
> Linux 8.0 Machine.
>
> Before, I had Mapserver/Mapscript 3.6.5 installed and running.
>
> I hope, anyone can tell me, whats going wrong.
>
> Thanks in advance,
>
> Bjoern
>

Bjoern,

gdImageSetClip was added to GD in version 2.0.12.  I suspect that you
have an early version (before 2.0.12) of GD on your system that is
interfering with the GD 2.0.27 you want to use.

Sean

--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies




More information about the mapserver-users mailing list