Python MapScript module working

Emil Zegers taatuut at PLANET.NL
Tue May 17 02:01:52 EDT 2005


Hello,

I've been away for a few days hence the late reply.

Python MapScript is running fine now on my system.

First I also installed Python and the "None" package on a Windows 2000
system, works at once.

Then on the XP machine where I had problems before it also works now
(nothing was changed except a few reboots).

Thanks for all the advice.

Regards,

Emil


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On
Behalf Of Ryan, Adam
Sent: woensdag 11 mei 2005 23:57
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript module still not
found (today's summary)


Yea I never had a problem with 4.4.2.  Works like a charm.  Emil?

Adam

> -----Original Message-----
> From: Howard Butler [mailto:hobu at iastate.edu]
> Sent: Wednesday, May 11, 2005 2:11 PM
> To: Ryan, Adam; MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [SPAM] - Re: Python MapScript module still not found
> (today's summary) - Bayesian Filter detected spam
>
>
> Adam,
>
> The problem with my nightlies is that the GDAL used to make
> these has ECW
> and MrSID and OCI (all of which I don't distribute).  Please
> use the 4.4.2
> "None" package on http://hobu.stat.iastate.edu/mapserver/ and
> let me know
> how it goes.
>
> thanks
>
> Howard
>
> At 04:04 PM 5/11/2005, Ryan, Adam wrote:
> >Just an update.  I pulled an OCI.dll off the Oracle site and
> that seems
> >to work but I'm stuck on the ECW SDK dlls.  I can't seem to find
> >acceptable versions.
> >
> >Adam
> >
> > > -----Original Message-----
> > > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US]
> > > Sent: Wednesday, May 11, 2005 11:15 AM
> > > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > > Subject: Re: [UMN_MAPSERVER-USERS] Python MapScript
> module still not
> > > found (today's summary)
> > >
> > >
> > > I tried Emil's setup and ran into the same problems.
> > >
> > > I downloaded from:
> > > http://hobu.stat.iastate.edu/mapserver/build_output/5_11_2005
> > >
> > > Two flavors: none.exe and full.exe
> > >
> > > I could not import _mapscript on either.  Running
> dependency walker
> > > I found files could not be found by libmap.ddl:
> > >
> > > Both flavors could not find:
> > >
> > > LTI_DSDK_DLL.DLL
> > > NCSECW.DLL
> > > NCSUTIL.DLL
> > > OCI.DLL
> > >
> > > And full.exe could not find these and:
> > >
> > > SDE90.DLL
> > >
> > > So, I pulled LTI_DSDK_DLL.DLL off of
> > > http://hobu.stat.iastate.edu/mapserver/build_output/sean_2003
> > >
> > > Then I pulled the ECW SDK Dlls from Frank's Tools.
> > >
> > > But I don't have SDE, and isn't the OCI.dll for the
> Oracle client?
> > > Should that be referenced in the libmap.dll from none.exe?
> > >
> > > I haven't searched around for OCI.dll.  Shall I?
> > >
> > > Cheers,
> > >
> > > Adam
> > >
> > > > -----Original Message-----
> > > > From: Sean Gillies [mailto:sgillies at frii.com]
> > > > Sent: Wednesday, May 11, 2005 9:20 AM
> > > > To: Emil Zegers
> > > > Cc: Mapserver ML; Adam Ryan
> > > > Subject: Re: Python MapScript module still not found
> > > (today's summary)
> > > >
> > > >
> > > > Emil,
> > > >
> > > > I'm sorry, but I don't have any experience with Python
> as a CGI on
> > > > IIS.
> > > >   I'm cc'ing Adam Ryan directly on this because I think
> he has the
> > > > know-how.
> > > >
> > > > Sean
> > > >
> > > >
> > > > On May 10, 2005, at 3:30 PM, Emil Zegers wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > After fiddling around some more I finally leave this case
> > > unresolved
> > > > > for today.
> > > > >
> > > > > I switched to ActiveState ActivePython instead of using
> > > the binaries
> > > > > from www.python.org and reinstalled Python MapScript,
> no change.
> > > > >
> > > > > Tried a lot of different mappings in IIS for .py files:
> > > > >
> > > > > c:\python23\python.exe --> nothing works, time-out for all
> > > > .py files
> > > > > c:\python23\python.exe -u "%s" "%s" --> works for .py
> > > > scripts, import
> > > > > DLL gives 'not found'
> > > > > c:\python23\python.exe "%s" --> works for .py scripts, import
> > > > > DLL gives 'not found' c:\python23\python.exe "%s"
> "%s" --> works
> > > > > for .py scripts,
> > > > import DLL
> > > > > gives
> > > > > 'not found'
> > > > >
> > > > > Any ideas on what mapping to use and how this influences
> > > importing
> > > > > dll's will be appreciated.
> > > > >
> > > > > So now under IIS I can run .py scripts under IIS and I can
> > > > > import modules (eg. importing os works fine) but I still have
> > > this problem
> > > > > with importing
> > > > > MapScript.
> > > > >
> > > > > Importing MapScript from the Python command line works fine.
> > > > >
> > > > > Could it be it has something to do with the naming of the
> > > MapScript
> > > > > files? There's a _mapscript.pyd and mapscript.py,
> > > mapscript.pyc and
> > > > > mapscript.pyo
> > > > > after installing.
> > > > >
> > > > > For os module there is no .pyd, just the py, pyc and
> pyo (just a
> > > > > guess, I'm no Python expert)
> > > > >
> > > > > On a Python mail list I also found some similair info about
> > > > importing
> > > > > problems under IIS and not with command line. They
> > > > suspected the way
> > > > > the files were installed may be (part of) the reason.
> > > I've installed
> > > > > everything with administrator rights and have granted IUR
> > > and IWAM
> > > > > all needed rights.
> > > > >
> > > > > Switching to Apache might be a really easy solution for
> > > this but I
> > > > > would like to have this working with IIS.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Emil
> > > > >
> > > >
> > >
>



More information about the mapserver-users mailing list