Hi Michael,

I seem to have fixed the exception problem by copying files manually from lib/sqlalchemy into my site-packages directory. I've now installed psycopg2 (sorry, I think it was included :() and can connect to the database.

Thanks for the help!
Mark

On 6/7/06, Michael Bayer <[EMAIL PROTECTED]> wrote:
the exception you have there is a bug that was recently fixed, that the wrong exception class name was being used.  SQLAlchemy's postgres support requires the psycopg2 module to be installed, available at:  http://initd.org/projects/psycopg2


On Jun 6, 2006, at 2:43 PM, Mark Greenbank wrote:

Hi again,

Just doing a bit of tracing through the code and it's looking more and more like and installation problem on my part. Still no solution, though, so any help would still be appreciated.

Some questions:
1) why do the paths still refer to the 'build' directory? Shouldn't these files have been move to 'site-packages' ?
2) the error seems to indicate that InvalidRequestException is not defined; perhaps I'm not accessing the exceptions.py module? Could this be a PYTHONPATH issue?
3) The actual line of code is trying to complain about the dialect for postgres not being present; I thought postgresql was a part of SQLAlchemy. Is this not the case? Could this be another pointer to #2 above?

Mark

On 6/6/06, Mark Greenbank < [EMAIL PROTECTED]> wrote:
Hi all,

I've installed SQLAlchemy-0.2.1 and when I run the following simple test I get an error:

Traceback (most recent call last):
  File "./sqla.py", line 4, in ?
    e = create_engine('postgres://postgres:@localhost/sqla')
  File "build/bdist.linux-i686/egg/sqlalchemy/engine/__init__.py", line 92, in \create_engine
  File "build/bdist.linux-i686/egg/sqlalchemy/engine/strategies.py", line 42, i\n create
  File "build/bdist.linux-i686/egg/sqlalchemy/engine/default.py", line 26, in _\_init__
AttributeError: 'module' object has no attribute 'InvalidRequestException'

The test program is:

from sqlalchemy import *
e = create_engine('postgres://postgres:@localhost /sqla')
print e

can anyone help in narrowing down the error?

Thanks,
Mark

_______________________________________________
Sqlalchemy-users mailing list


_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to