[ms4w-users] python mapscript problem with MS4W 2.2.7
Fischer, Brian
bfischer at houstonengineeringinc.com
Wed Feb 13 13:17:41 EST 2008
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
Brian Fischer, CFM
GIS Project Manager
Houston Engineering, Inc. | Leave Nothing to ChanceTM
6901 East Fish Lake Road, Suite 140
Maple Grove, MN 55369
Phone: 763.493.4522 / Fax: 763.493.5572
Email: bfischer at houstonengineeringinc.com
<mailto:bfischer at houstonengineeringinc.com>
Website: www.houstonengineeringinc.com
<http://www.houstonengineeringinc.com/>
More information about the ms4w-users
mailing list