Installing Python Mapscript on Windows XP

Frank Warmerdam fwarmerdam at GMAIL.COM
Thu Apr 28 08:19:06 EDT 2005


On 4/28/05, Bas Vanmeulebrouk <bvanmeul at ebe.uct.ac.za> wrote:
>  
> Hi list, 
>   
> I have been trying to get Python Mapscript up and running on MS Windows XP,
> but I haven't succeeded yet. I have downloaded the binaries at
> http://hobu.stat.iastate.edu/mapserver/. When I start
> Python from the directory in which I have installed Python, Mapscript works
> fine. However, if I start Python from another directory, I get the following
> error message when I try import mapscript at the Python command line: "The
> procedure entry point ?SetnextByIndex at OGRLayer@@UAEHJ at Z
> could not be located in the dynamic link library gdal12.dll.". 
>   
> I have found four copies of gdal12.dll on my machine. I have been
> exeprimenting with the PATH environment variable, I have renamed the various
> dll's, but the message stays the same. 
>   
> Does anyone have an idea what might be wrong? 

Bas, 

I am guessing that one of the 4 gdal12.dll's is in windows\system32, 
right?  This location takes precidence over the PATH, but even higher
precidence is the directory the program is running in. 

I would suggest you move or rename the version in windows\system32. 

Best regards,
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list