[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe] trouble connect to Postgres

From: James Thompson
Subject: Re: [GNUe] trouble connect to Postgres
Date: Fri, 26 Mar 2004 16:14:20 -0600
User-agent: KMail/1.6.1

On Friday 26 March 2004 03:42 pm, John Fabiani wrote:
> DB000:     connection = self.getConnection(connection_name)
> DB000:   File "/usr/local/gnue/lib/python2.3/site-packages/gnue/common/
> datasources/", line 255, in getConnection
> DB000:     conn = dbdriver.Connection(self, connection_name, parameters)
> DB000:   File "/usr/local/gnue/lib/python2.3/site-packages/gnue/common/
> datasources/drivers/postgresql/psycopg/", line 42, in Connection
> DB000:     from Driver import Connection as C
> DB000: ImportError: cannot import name Connection

This looks like it's having trouble importing the psycopg driver.  Did you try 
with the provider listed in the quick start?

provider = pygresql

Also could you please try the following for me.  From a shell type 


then when in python type import psycopg<return>

Python 2.1.3 (#1, Sep  7 2002, 15:29:56)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import psycopg


James Thompson    138 Cardwell Hall  Manhattan, Ks   66506    785-532-0561 
Kansas State University                          Department of Mathematics

reply via email to

[Prev in Thread] Current Thread [Next in Thread]