Xavieran
September 22nd, 2008, 06:42 AM
Hi,
I'm trying to extract a stack in my program for a format string with traceback.format_stack(), but when I use it (and any of the other related functions in the traceback module) I get this error:
Traceback (most recent call last):
File "<stdin>", line 337, in <module>
File "<stdin>", line 114, in __init__
File "<stdin>", line 100, in parse_config
File "/usr/lib/python2.5/traceback.py", line 271, in format_stack
return format_list(extract_stack(f, limit))
File "/usr/lib/python2.5/traceback.py", line 293, in extract_stack
lineno = f.f_lineno
AttributeError: 'int' object has no attribute 'f_lineno'
Any ideas what's wrong?
The application is a curses based problem, but this error happens before curses is instantiated.
I'm trying to extract a stack in my program for a format string with traceback.format_stack(), but when I use it (and any of the other related functions in the traceback module) I get this error:
Traceback (most recent call last):
File "<stdin>", line 337, in <module>
File "<stdin>", line 114, in __init__
File "<stdin>", line 100, in parse_config
File "/usr/lib/python2.5/traceback.py", line 271, in format_stack
return format_list(extract_stack(f, limit))
File "/usr/lib/python2.5/traceback.py", line 293, in extract_stack
lineno = f.f_lineno
AttributeError: 'int' object has no attribute 'f_lineno'
Any ideas what's wrong?
The application is a curses based problem, but this error happens before curses is instantiated.