Finding the file referred to in a Python traceback

metaperl.etc at metaperl.etc at
Tue Sep 26 16:23:57 CEST 2006

In this traceback, the path to 3 different SQL Alchemy source files is
a relative directory. However, no such directory is below my current
working directory.

This is problematic for two reasons:
1 - I cannot use XEmacs find-file-at-point to find the file in which
the error is occurring
2 - I am not really sure where the source file is that is causing
problems because tha path could be relative to anything.

--- output ---

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "conf/", line 34, in __init__
    self.table = tables(self.metadata)
  File "conf/", line 38, in __init__
    self.users         = Table('Users', metadata, autoload=True)
  File "build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/", line
138, in __call__
  File "build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/engine/",
line 495, in reflecttable
"build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/databases/", line
426, in reflecttable
TypeError: __init__() takes at most 2 arguments (3 given)
>>> import sys
>>> print sys.path
['', '/sw/lib/python2.4/site-packages/Dabo-0.6.5s-py2.4.egg',
'/sw/lib/', '/sw/lib/python2.4',
'/sw/lib/python2.4/plat-darwin', '/sw/lib/python2.4/plat-mac',
'/sw/lib/python2.4/lib-tk', '/sw/lib/python2.4/lib-dynload',

More information about the Python-list mailing list