[mapserver-users] mod_python and mapscript

Matt M mattm8305 at yahoo.com
Thu Feb 28 16:09:38 EST 2008


I can't seem to get mod_python to access mapscript.
I keep getting 'dll load failed' errors. Below is the output. Any ideas?
-Matt

OD_PYTHON ERROR

ProcessId:      2244
Interpreter:    'localhost.local.domain'

ServerName:     'localhost.local.domain'
DocumentRoot:   'C:/ms4w/Apache/htdocs'

URI:            '/cgi-bin/test-cgi-mapscript.py'
Location:       None
Directory:      'C:/ms4w/Apache/cgi-bin/'
Filename:       'C:/ms4w/Apache/cgi-bin/test-cgi-mapscript.py'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'test-cgi-mapscript'

Traceback (most recent call last):

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1202, in _process_target
    module = import_module(module_name, path=path)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 296, in import_module
    log, import_path)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 680, in import_module
    execfile(file, module.__dict__)

  File "C:\ms4w\Apache\cgi-bin\test-cgi-mapscript.py", line 8, in <module>
    import mapscript

  File "C:\Python25\lib\site-packages\mapscript.py", line 7, in <module>
    import _mapscript

ImportError: DLL load failed: The specified module could not be found.


MODULE CACHE DETAILS

Accessed:       Thu Feb 28 16:07:43 2008
Generation:     0

_mp_139ae0b93551e33489c75fcb2dc900bc {
  FileName:     'C:\\ms4w\\Apache\\cgi-bin\\test-cgi-mapscript.py'
  Instance:     1 [IMPORT]
  Generation:   0 [ERROR]
  Modified:     Thu Feb 28 11:34:18 2008
}




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 



More information about the mapserver-users mailing list