Re: trouble connect to Postgres
James Thompson <[email protected]>
| Newsgroups | gmane.comp.gnu.enterprise.general |
|---|---|
| Message-ID | <[email protected]> |
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/GConnections.py", 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/__init__.py", 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 python 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 >>> Thanks, James -- ->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-< James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561 Kansas State University Department of Mathematics ->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<