Message4974
With my previous fix, the roundup-admin program breaks with the
following stack trace:
$ /usr/local/bin/roundup-admin
Traceback (most recent call last):
File "/usr/local/bin/roundup-admin", line 2, in <module>
from roundup.scripts.roundup_admin import run
File "/usr/local/lib/python2.7/site-
packages/roundup/scripts/roundup_admin.py", line 40, in <module>
from roundup.admin import AdminTool
File "/usr/local/lib/python2.7/site-packages/roundup/admin.py", line
26, in <module>
from roundup import date, hyperdb, roundupdb, init, password, token
File "/usr/local/lib/python2.7/site-packages/roundup/hyperdb.py", line
28, in <module>
import roundup.cgi.cgitb
File "/usr/local/lib/python2.7/site-packages/roundup/cgi/cgitb.py",
line 12, in <module>
from roundup.cgi import templating, TranslationService
File "/usr/local/lib/python2.7/site-
packages/roundup/cgi/templating.py", line 26, in <module>
from roundup import hyperdb, date, support
ImportError: cannot import name hyperdb
It appears this is due to the cgitb import I added in hyperdb. There
appears to be a loop importing hyperdb. According to Google
'"ImportError: cannot import name"', first hit, this is a bad idea.
I removed the use of cgitb and replaced the call to that module's html()
function to just put a <br> between each line of the stack trace, and
change ' ' to ' '. It's not as nice as cgitb.html() but roundup-
admin works again. I have attached a new diff file generated using the
same command as before. |
|
Date |
User |
Action |
Args |
2013-12-19 16:37:52 | tekberg | set | messageid: <1387471072.8.0.952795039839.issue2550826@psf.upfronthosting.co.za> |
2013-12-19 16:37:52 | tekberg | set | recipients:
+ tekberg, ber, rouilj |
2013-12-19 16:37:52 | tekberg | link | issue2550826 messages |
2013-12-19 16:37:52 | tekberg | create | |
|