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 259 days ago. Viewed 3,916 times. #4
[diff] [history] [edit] [rdf]
labels
attachments
  • 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 setup.py:
# python setup.py 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 "127.0.0.1", 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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt