Sam Brauer
sam at webslingerZ.com
Thu Jun 21 13:00:37 EST 2001
When I encountered this in some of my code, I simply removed the "import exceptions" line and it worked fine. So try commenting that line out in $ocal/lib/python2.0/site-packages/ahts/Plex/Errors.py You will probably need to restart apache to see if it works. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sam Brauer : Systems Programmer : sam at webslingerZ.com On Thu, 21 Jun 2001, Tom Emerson wrote: > 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" > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://www.modpython.org/mailman/listinfo/mod_python >
|