Questions tagged [pygresql]

PyGreSQL is the oldest open-source Python module that interfaces to a PostgreSQL database. It runs on most platforms where PostgreSQL and Python are running.

The current version PyGreSQL 5.0+ needs PostgreSQL 9.0 or newer and Python 2.6, 2.7 or 3.3+.

See the docs at http://www.pygresql.org/

48 questions
0
votes
1 answer

AttributeError: get_tables

What is the problem of this code? Should show a list of tables import pg con = pg.connect(dbname='xxx', host='xxxx', user='xxx') pgqueryset = con.get_tables() Traceback (most recent call last): File "demo.py", line 42, in
anvd
  • 3,997
  • 19
  • 65
  • 126
0
votes
2 answers

python pg module error messages

pg module in python for interacting with postgres is not giving any error message for DML queries. Is there any alternative to pg module which gives meaningful error messages. >>>import pg >>> >>> >>>conn = pg.connect(dbname="db", user="postgres",…
Vineet Menon
  • 728
  • 2
  • 9
  • 25
0
votes
2 answers

How to install pygresql in virtualenv?

when I try to install it via pip, or easy_install, it gives me error: OSError: [Errno 2] No such file or directory: '/usr/include/pgsql/server' How should I do this correctly?
Euphorbium
  • 1,177
  • 5
  • 17
  • 35
1 2 3
4