Python MapScript module cannot be found?

Emil Zegers taatuut at PLANET.NL
Tue May 10 07:21:47 EDT 2005


Hello Bas,

Thanks for your reply.

Moving/copying the files to other locations didn't solve the problem.

I checked the PYTHONPATH (both the reg key and the environment variable) to
be sure C:\Python23\lib\site-packages is included and it is.

Then I tried 'import _mapscript' from the Python prompt.

Now I get a error message 'The procedure entry point ... could not be
located in the dynamic link library NCSEcw.dll'.

It appears to me I need a specific version of the NCS dll's but I don't know
which one (the NCS dll's were not included in the MapScript installer, I
tried with the NCS dll's found in
http://hobu.stat.iastate.edu/mapserver/build_output/sean with no succes).

Maybe I can find more info in the build log files on Howard's site but I
welcome tips on this.

Regards,

Emil


-----Original Message-----
From: Bas Vanmeulebrouk [mailto:bvanmeul at ebe.uct.ac.za]
Sent: dinsdag 10 mei 2005 11:43
To: 'Emil Zegers'; MAPSERVER-USERS at LISTS.UMN.EDU
Subject: RE: [UMN_MAPSERVER-USERS] Python MapScript module cannot be
found?


Hello Emil,

I had the same problem, but then with Python Mapscript and an Apache
webserver. I have posted about it on this list. The problem is probably
caused by some environment variables which are not recognized by your
webserver (path and/or pythonpath). I have solved the problem by copying the
mapscript.py and _mapscript.pyd to a directory which contains other Python
modules of which I am sure they are running correct (<python install
dir>/Lib. I haven't had the time to look into a better solution yet.

Kind regards,

Bas Vanmeulebrouk.



More information about the mapserver-users mailing list