[mod_python] mod_python 3.3 importer with "import" statement

Ben Hoyt ben at micropledge.com
Thu May 31 05:42:17 EDT 2007


Skipped content of type multipart/alternative-------------- next part --------------
MOD_PYTHON ERROR

ProcessId:      1120
Interpreter:    'localhost'

ServerName:     'localhost'
DocumentRoot:   'C:/www'

URI:            '/mpledge/code/code.py/'
Location:       None
Directory:      'C:/www/mpledge/code/'
Filename:       'C:/www/mpledge/code/code.py'
PathInfo:       '/'

Phase:          'PythonHandler'
Handler:        'wsgiref.modpython_gateway::handler'

Traceback (most recent call last):

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

  File "C:\Program Files\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "C:\Program Files\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in _execute_target
    result = object(arg)

  File "C:\Program Files\Python25\Lib\wsgiref\modpython_gateway.py", line 206, in handler
    module = apache.import_module(modname)

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

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

  File "c:\www\mpledge\code\code.py", line 32, in <module>
    from logic import errors

ImportError: No module named logic


MODULE CACHE DETAILS

Accessed:       Thu May 31 18:09:34 2007
Generation:     0

_mp_92ececbee5435b025841766fae6fc9e3 {
  FileName:     'c:\\www\\mpledge\\code\\code.py'
  Instance:     1 [IMPORT]
  Generation:   0 [ERROR]
  Modified:     Thu May 31 16:53:42 2007
  Children:     'c:\\www\\mpledge\\code\\web.py'
}

_mp_16d4e7379184f5ca0b609e86bcc77a0d {
  FileName:     'c:\\www\\mpledge\\code\\web.py'
  Instance:     1 [IMPORT]
  Generation:   14
  Modified:     Thu May 31 16:52:21 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\__init__.py'
}

_mp_4d82bdef40723094fa9a12ac52105653 {
  FileName:     'c:\\www\\mpledge\\code\\web\\__init__.py'
  Instance:     1 [IMPORT]
  Generation:   13
  Modified:     Thu May 31 16:51:06 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\cheet.py',
                'c:\\www\\mpledge\\code\\web\\db.py',
                'c:\\www\\mpledge\\code\\web\\debugerror.py',
                'c:\\www\\mpledge\\code\\web\\form.py',
                'c:\\www\\mpledge\\code\\web\\http.py',
                'c:\\www\\mpledge\\code\\web\\httpserver.py',
                'c:\\www\\mpledge\\code\\web\\net.py',
                'c:\\www\\mpledge\\code\\web\\request.py',
                'c:\\www\\mpledge\\code\\web\\template.py',
                'c:\\www\\mpledge\\code\\web\\utils.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py',
                'c:\\www\\mpledge\\code\\web\\wsgi.py'
}

_mp_dbef5984e7a5fb65567ee7c2dd9eb8cf {
  FileName:     'c:\\www\\mpledge\\code\\web\\cheet.py'
  Instance:     1 [IMPORT]
  Generation:   12
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\net.py',
                'c:\\www\\mpledge\\code\\web\\utils.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py'
}

_mp_96ed61fe9c1535f2d1209eec1d925011 {
  FileName:     'c:\\www\\mpledge\\code\\web\\db.py'
  Instance:     1 [IMPORT]
  Generation:   3
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\utils.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py'
}

_mp_5c9c3e4aa9d6fcb9a5c8376deef30521 {
  FileName:     'c:\\www\\mpledge\\code\\web\\debugerror.py'
  Instance:     1 [IMPORT]
  Generation:   10
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\net.py',
                'c:\\www\\mpledge\\code\\web\\template.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py'
}

_mp_b5e7d1edaa7c2286c3f6882f4013e153 {
  FileName:     'c:\\www\\mpledge\\code\\web\\form.py'
  Instance:     1 [IMPORT]
  Generation:   11
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\net.py',
                'c:\\www\\mpledge\\code\\web\\utils.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py'
}

_mp_5cc0e98f40985783e5d75da78dde0eb3 {
  FileName:     'c:\\www\\mpledge\\code\\web\\http.py'
  Instance:     1 [IMPORT]
  Generation:   5
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\net.py',
                'c:\\www\\mpledge\\code\\web\\utils.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py'
}

_mp_3073a26d3040dbd1ede021ace10c48ab {
  FileName:     'c:\\www\\mpledge\\code\\web\\httpserver.py'
  Instance:     1 [IMPORT]
  Generation:   6
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\net.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py'
}

_mp_4fc0030bf00a7fec15179cadba720056 {
  FileName:     'c:\\www\\mpledge\\code\\web\\net.py'
  Instance:     1 [IMPORT]
  Generation:   4
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
}

_mp_1920db1f66725c89b0c0b252dd47a570 {
  FileName:     'c:\\www\\mpledge\\code\\web\\request.py'
  Instance:     1 [IMPORT]
  Generation:   8
  Modified:     Thu May 31 16:39:37 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\http.py',
                'c:\\www\\mpledge\\code\\web\\utils.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py',
                'c:\\www\\mpledge\\code\\web\\wsgi.py'
}

_mp_e673157d09ff43a8173d0e4eccca6080 {
  FileName:     'c:\\www\\mpledge\\code\\web\\template.py'
  Instance:     1 [IMPORT]
  Generation:   9
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\net.py',
                'c:\\www\\mpledge\\code\\web\\utils.py'
}

_mp_eb56e4287ebfaa8f848afb8f55f35bf0 {
  FileName:     'c:\\www\\mpledge\\code\\web\\utils.py'
  Instance:     1 [IMPORT]
  Generation:   1
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
}

_mp_605875b2ae020f0b32a097bf29e232d6 {
  FileName:     'c:\\www\\mpledge\\code\\web\\webapi.py'
  Instance:     1 [IMPORT]
  Generation:   2
  Modified:     Thu May 31 16:39:38 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\utils.py'
}

_mp_238f4eb283bf2f12e098d5e311adad34 {
  FileName:     'c:\\www\\mpledge\\code\\web\\wsgi.py'
  Instance:     1 [IMPORT]
  Generation:   7
  Modified:     Thu May 31 16:39:37 2007
  Imported:     Thu May 31 18:09:34 2007
  Children:     'c:\\www\\mpledge\\code\\web\\http.py',
                'c:\\www\\mpledge\\code\\web\\httpserver.py',
                'c:\\www\\mpledge\\code\\web\\net.py',
                'c:\\www\\mpledge\\code\\web\\utils.py',
                'c:\\www\\mpledge\\code\\web\\webapi.py'
}



More information about the Mod_python mailing list