[mod_python] mod_python strange error

Gheorghe Limboi ghitzacatalin at yahoo.com
Wed May 2 17:53:09 EDT 2007


Hi,


can sombody tell my what can cause the error below:

AssertionError: Import cycle in /usr/local/nav/apache/webroot/status/StatusPrefs.py.



the whole output is :


MOD_PYTHON ERROR

ProcessId:      5472
Interpreter:    'test.pknet.ro'

ServerName:     'test.pknet.ro'
DocumentRoot:   '/usr/local/nav/apache/webroot'

URI:            '/status/'
Location:       None
Directory:      '/usr/local/nav/apache/webroot/status/'
Filename:       '/usr/local/nav/apache/webroot/status/'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'status'

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 1128, in _execute_target
    result = object(arg)

  File "/usr/local/nav/apache/webroot/status/status.py", line 71, in handler
    output = indexInternal(req)

  File "/usr/local/nav/apache/webroot/status/status.py", line 107, in indexInternal
    prefs = HandleStatusPrefs.loadPrefs(req)

  File "/usr/local/nav/apache/webroot/status/StatusPrefs.py", line 340, in loadPrefs
    prefs = cPickle.loads(data)

  File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 991, in load_module
    return _global_modules_cache.import_module(self.__file)

  File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line 488, in import_module
    assert(file != parent_info.file), "Import cycle in %s." % file

AssertionError: Import cycle in /usr/local/nav/apache/webroot/status/StatusPrefs.py.


Tx,
gheorghe

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20070502/78ff1d7b/attachment.html


More information about the Mod_python mailing list