Python MapScript module cannot be found?

Sean Gillies sgillies at FRII.COM
Tue May 10 09:33:59 EDT 2005


Emil,

I think Bas is right.  Once you get the outdated DLLs out of your
system directory (or path) the _mapscript module should load properly.

cheers,
Sean


On May 10, 2005, at 6:18 AM, Bas Vanmeulebrouk wrote:

> Hello Emil,
>
> I have had this dll problem as well, amongst others with gdal12.dll,
> nscecw.dll and ncsutil.dll. On my machine, it was caused be the fact =
> that I
> had more versions of the same dll. I searched my harddrive for these =
> dll's
> and renamed the ones which didn't come with Python Mapscript to make =
> sure
> that Python Mapscript was using the correct ones. After that, Python
> Mapscript was working fine from the Python prompt.=20
>
> Kind regards,
>
> Bas.
>
> -----Original Message-----
> From: Emil Zegers [mailto:taatuut at planet.nl]=20
> Sent: Tuesday, May 10, 2005 1:22 PM
> To: Bas Vanmeulebrouk; MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: RE: [UMN_MAPSERVER-USERS] Python MapScript module cannot be =
> found?
>
>
> 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