Re: [Tutor] Python + PostGreSQL

2006-03-31 Thread Bill Campbell
On Fri, Mar 31, 2006, Srinivas Iyyer wrote:
Dear group, 

I want to connect python to postgresql. 
My python dist. is 2.4.2
My postgres: 8.1.2
My system: Linux Enterprise Linux, Intel Xeon, 4GB
RAM.

I tried to install pygresql: version: 3.8, it failed
throwing exception : Exception: pg_config tool is not
available.

I gave another try on google and Postgres site and
found Pypgsql, PoPy and psycopg1. 

I think that psycopg is generally considered the preferred
package.  I have been using it with several systems including
Zope, and sqlobject.  So far I haven't tried psycopg2.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

A child can go only so far in life without potty training.  It is not
mere coincidence that six of the last seven presidents were potty
trained, not to mention nearly half of the nation's state legislators.
-- Dave Barry
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Python + PostGreSQL

2006-03-31 Thread w chun
hi srini,

i don't know what your system configuration was like for the
installation, but from what i saw in your post (below), it just seems
like /usr/local/pgsql/bin was not in your path since it looks like
sh could not find the pg_config command, not Python (which choked
afterwards).

anyway, if you got psycopg working for you, then just leave it. :-)

cheers,
-wesley

 sh: pg_config: command not found
:
 My pg_config is in : /usr/local/pgsql/bin/pg_config
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor