Roundup Tracker - Issues


Author tekberg
Recipients ber, rouilj, tekberg
Date 2013-12-19.16:37:51
Message-id <>
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/", line 40, in <module>
    from roundup.admin import AdminTool
  File "/usr/local/lib/python2.7/site-packages/roundup/", line 
26, in <module>
    from roundup import date, hyperdb, roundupdb, init, password, token
  File "/usr/local/lib/python2.7/site-packages/roundup/", line 
28, in <module>
    import roundup.cgi.cgitb
  File "/usr/local/lib/python2.7/site-packages/roundup/cgi/", 
line 12, in <module>
    from roundup.cgi import templating, TranslationService
  File "/usr/local/lib/python2.7/site-
packages/roundup/cgi/", 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.
Date User Action Args
2013-12-19 16:37:52tekbergsetmessageid: <>
2013-12-19 16:37:52tekbergsetrecipients: + tekberg, ber, rouilj
2013-12-19 16:37:52tekberglinkissue2550826 messages
2013-12-19 16:37:52tekbergcreate