[mod_python] "Cannot re-init internal module exceptions"

Tom Emerson tree at basistech.com
Thu Jun 21 09:29:16 EST 2001


Greetings.

I'm attempting to get mod_python working with the AHTS template engine
(http://ahts.sourceforge.net) but am not having much luck. In
particular, I get the following error in the server error log (the
full backtrace is below):

[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/Plex/Errors.py", line 9, in ?
    import exceptions
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex: ImportError: Cannot re-init internal module exceptions

This is running in the following configuration:

Apache/1.3.19 (Unix) PHP/4.0.4pl1 mod_python/2.7.2 Python/2.0 configured

Anyone have an idea what is happening here? Any ideas on ameliorating this problem?

TIA,

    -tree


[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex: Traceback (most recent call last):
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/mod_python/apache.py", line 176, in Dispatch
    module = import_module(module_name, _req)
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/mod_python/apache.py", line 334, in import_module
    module = imp.load_module(mname, f, p, d)
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/opt/www/htdocs/chinlex.py", line 2, in ?
    import MySQLdb, StringIO, ahts
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/__init__.py", line 33, in ?
    from utility import *
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/utility.py", line 29, in ?
    import writer
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/writer.py", line 33, in ?
    from parser import TemplateParser
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/parser.py", line 33, in ?
    from scanner import TemplateScanner
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/scanner.py", line 33, in ?
    from Plex import *
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/Plex/__init__.py", line 34, in ?
    from Lexicons import Lexicon, State
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/Plex/Lexicons.py", line 13, in ?
    import Errors
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex:   File "/usr/local/lib/python2.0/site-packages/ahts/Plex/Errors.py", line 9, in ?
    import exceptions
[Thu Jun 21 09:59:33 2001] [error] PythonHandler chinlex: ImportError: Cannot re-init internal module exceptions

-- 
Tom Emerson                                          Basis Technology Corp.
Sr. Sinostringologist                              http://www.basistech.com
  "Beware the lollipop of mediocrity: lick it once and you suck forever"



More information about the Mod_python mailing list