Finding the file referred to in a Python traceback

metaperl.etc at gmail.com metaperl.etc at gmail.com
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/__init__.py", line 34, in __init__
    self.table = tables(self.metadata)
  File "conf/__init__.py", line 38, in __init__
    self.users         = Table('Users', metadata, autoload=True)
  File "build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/schema.py", line
138, in __call__
  File "build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/engine/base.py",
line 495, in reflecttable
  File
"build/bdist.darwin-8.7.1-i386/egg/sqlalchemy/databases/mssql.py", 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/python2.4/site-packages/SQLAlchemy-0.2.8dev_r1898-py2.4.egg',
'/sw/lib/python24.zip', '/sw/lib/python2.4',
'/sw/lib/python2.4/plat-darwin', '/sw/lib/python2.4/plat-mac',
'/sw/lib/python2.4/plat-mac/lib-scriptpackages',
'/sw/lib/python2.4/lib-tk', '/sw/lib/python2.4/lib-dynload',
'/sw/lib/python2.4/site-packages',
'/sw/lib/python2.4/site-packages/Numeric',
'/sw/lib/python2.4/site-packages/PIL',
'/sw/lib/python2.4/site-packages/gtk-2.0',
'/sw/lib/python2.4/site-packages/pythonutils',
'/sw/lib/python2.4/site-packages/wx-2.6-gtk2-unicode']
>>>




More information about the Python-list mailing list