For When You Can't Have The Real Thing
[ start | index | login ]
start > dave > experiments > Switch Topology > python PyGreSQL

python PyGreSQL

Created by dave. Last edited by dave, 16 years and 284 days ago. Viewed 3,939 times. #4
[diff] [history] [edit] [rdf]
  • The link on the home page links to a non-existant RPM. Download the source bundle instead and make your own RPM.
  • Neat: you can make rpms from
# python bdist_rpm
$ python y.createdb

Exception raised on connect.

Traceback (most recent call last): File "y.createdb", line 7, in ? db = pg.connect (dbname='switchdb', host='localhost', user='switchdb', passwd='switchdb') pg.InternalError: FATAL: no pg_hba.conf entry for host "", user "switchdb", database "switchdb", SSL off

  • solution: edit the data/pg_hba file to permit tcp/ip connections through the loopback and restart.
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt