[ms4w-users] python mapscript problem with MS4W 2.2.7

Fischer, Brian bfischer at houstonengineeringinc.com
Thu Feb 21 11:54:30 EST 2008


Thanks Jeff!  I upgraded to Python 2.5.1 and Python Mapscript works
again. 


Brian Fischer
Houston Engineering, Inc.
Maple Grove, MN
(763) 493-4522

-----Original Message-----
From: ms4w-users-bounces at lists.maptools.org
[mailto:ms4w-users-bounces at lists.maptools.org] On Behalf Of Jeff McKenna
Sent: Thursday, February 14, 2008 8:42 PM
To: ms4w-users at lists.maptools.org
Subject: Re: [ms4w-users] python mapscript problem with MS4W 2.2.7

Python support was upgraded to 2.5 in MS4W 2.2.7 (this was noted in the
announcement).  I imagine the contributed python documentation has to be
updated according (I will attempt to do so).  Please try python 2.5.x
with your tests.

-jeff



On 2/13/08, Fischer, Brian <bfischer at houstonengineeringinc.com> wrote:
> I was wondering if anyone else has tried the Python mapscript that is 
> packaged with MS4W 2.2.7. I am getting this error:
>
> ""ImportError	Python 2.4.1: C:\python24\python.exe
> Wed Feb 13 12:08:55 2008
>
> A problem occurred in a Python script. Here is the sequence of 
> function calls leading up to the error, in the order they occurred.
> C:\ms4w\Apache\cgi-bin\test-cgi-mapscript.py
> <file:///C:%255Cms4w%255CApache%255Ccgi-bin%255Ctest-cgi-mapscript.py>
>
> cgi.test()
> import mapscript
> print "<h2>mapscript module attributes</h2>"
>
> mapscript undefined
> C:\ms4w\Apache\cgi-bin\mapscript.py
> <file:///C:%255Cms4w%255CApache%255Ccgi-bin%255Cmapscript.py>
> # This file is compatible with both classic and new-style classes.
> import _mapscript
> import new
> new_instancemethod = new.instancemethod _mapscript undefined
>
> ImportError: DLL load failed: The specified module could not be found.
> args = ('DLL load failed: The specified module could not be 
> found.',)""
>
> I am just using the test-cgi-mapscript.py file that comes with MS4W to

> test. Python mapscript was working with MS4W 2.2.6 release. Has 
> something changed or are the python mapscript files bad? Is it still 
> compatible with Python 2.4.x? I looked back and the instructions seem 
> to be the same in the readme.
>
> Thanks,
> Brian
>
_______________________________________________
ms4w-users mailing list
ms4w-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ms4w-users



More information about the ms4w-users mailing list