#10 Runtime traceback formatting problem

closed-fixed
None
5
2004-09-18
2004-07-27
Dave Land
No

Tracebacks generated at the command console display
properly:

Traceback (most recent call last):
File "/sw/lib/python2.3/site-packages/jpydaemon.py",
line 233, in dealWithCmd
exec code in myGlobals , myLocals
File "<string>", line 1, in ?
AttributeError: topic_graph instance has no attribute
'model'

But tracebacks for runtime errors in programs are not:

['Traceback (most recent call last):\n', ' File
"/sw/lib/python2.3/site-packages/jpydaemon.py", line
330, in dealWithDebug\n self.run(\'execfile(\' +
`fullname` + \')\')\n', ' File
"/sw/src/root-python23-2.3.4-1/sw/lib/python2.3/bdb.py",
line 350, in run\n exec cmd in globals, locals\n', '
File "<string>", line 1, in ?\n', ' File
"/Users/dland/aca/sentimetrics/Reporting/excitation2.py",
line 622, in ?\n do_excitation()\n', "NameError:
name 'do_excitation' is not defined\n"]

I would like to see this list unpacked and the strings
rendered:

Traceback (most recent call last):
File "/sw/lib/python2.3/site-packages/jpydaemon.py",
line 330, in dealWithDebug
self.run(\'execfile(\' + `fullname` + \')\')
File
"/sw/src/root-python23-2.3.4-1/sw/lib/python2.3/bdb.py",
line 350, in run
exec cmd in globals, locals
File "<string>", line 1, in ?
File
"/Users/dland/aca/sentimetrics/Reporting/excitation2.py",
line 622, in ?
do_excitation()
NameError: name 'do_excitation' is not defined

Thank you!

Discussion

  • Dave Land

    Dave Land - 2004-07-27
    • assigned_to: nobody --> jymen
    • summary: Traceback formatting problem --> Runtime traceback formatting problem
     
  • Jean-Yves MENGANT

    • status: open --> closed-fixed
     
  • Jean-Yves MENGANT

    Logged In: YES
    user_id=513881

    fixed in 0.0.9

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks