[ms4w-users] python mapscript problem with MS4W 2.2.7

Jeff McKenna jeffmckenna at gmail.com
Thu Feb 14 21:41:38 EST 2008

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.


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

More information about the ms4w-users mailing list