Roundup Tracker - Issues

Message4974

Author tekberg
Recipients ber, rouilj, tekberg
Date 2013-12-19.16:37:51
Message-id <1387471072.8.0.952795039839.issue2550826@psf.upfronthosting.co.za>
In-reply-to
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 '&nbsp;'. 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.
History
Date User Action Args
2013-12-19 16:37:52tekbergsetmessageid: <1387471072.8.0.952795039839.issue2550826@psf.upfronthosting.co.za>
2013-12-19 16:37:52tekbergsetrecipients: + tekberg, ber, rouilj
2013-12-19 16:37:52tekberglinkissue2550826 messages
2013-12-19 16:37:52tekbergcreate