Finding the file referred to in a Python traceback

M

metaperl.etc

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)['', '/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']
 
S

Sion Arrowsmith

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.

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__ [etc]['', '/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',
[etc]

Paths of files contained in eggs aren't always helpful (as was pointed
out to me recently). If you unzip the SQLAlchemy egg (eggs are just
zip files) (to somewhere other than site-packages if you want to avoid
confusion) you'll probably find schema.py etc. in there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,962
Messages
2,570,134
Members
46,692
Latest member
JenniferTi

Latest Threads

Top