adodb.NewADOConnection('postgres') returns None

M

micayael

Hi.

I'm trying to use adodb for postgres. I had instaled in ubuntu 9.10
the adodb and psycopg2 module (sudo apt-get install python-adodb
python-psycopg2) but when I put this

import adodb
print adodb.NewADOConnection('postgres') --> None

but with

print adodb.NewADOConnection('mysql') -->
<adodb.adodb_mysql.adodb_mysql instance at 0xb66b5a0c>
 
T

Thomas Jollans

Hi.

I'm trying to use adodb for postgres. I had instaled in ubuntu 9.10
the adodb and psycopg2 module (sudo apt-get install python-adodb
python-psycopg2) but when I put this

import adodb
print adodb.NewADOConnection('postgres') --> None

but with

print adodb.NewADOConnection('mysql') -->
<adodb.adodb_mysql.adodb_mysql instance at 0xb66b5a0c>


http://packages.ubuntu.com/lucid/python-adodb

Recommends: python-psycopg (Package not available)

If it says it wants psycopg, I wouldn't expect it to work with psycopg2,
which is probably quite different in some way - otherwise it would be
called the same.

- Thomas
 
T

Thomas Jollans

Thanks Thomas.
:-( then adodb today dosn't work with postgres (at least on ubuntu)
right?

It certainly looks that way. It may be possible to install an old
psycopg module by hand - I'd expect that to work as well.
 
M

Mladen Gogala

It certainly looks that way. It may be possible to install an old
psycopg module by hand - I'd expect that to work as well.

Not on Ubuntu 9.10:


checking PostgreSQL type catalog... /usr/include/postgresql/catalog/
pg_type.h
checking for mxDateTime.h... configure: error: can't build without mx
headers
mgogala@nycwxp2622:/tmp/psycopg-1.1.21$

ADOdb package for PostgreSQL is broken and needs fixing.
 
M

Mladen Gogala

Thanks Thomas.
:-( then adodb today dosn't work with postgres (at least on ubuntu)
right?

No, ADOdb doesn't work with the newer versions of Postgres. ADOdb doesn't
work with Psycopg2 and the guy who maintains it did not reply to my
email. That is unfortunate because ADOdb is my favorite PHP class
library. It seems, though, that the Python version is not nearly as well
maintained as the PHP one.
 
M

micayael

No, ADOdb doesn't work with the newer versions of Postgres. ADOdb doesn't
work with Psycopg2 and the guy who maintains it did not reply to my
email. That is unfortunate because ADOdb is my favorite PHP class
library. It seems, though, that the Python version is not nearly as well
maintained as the PHP one.

--http://mgogala.byethost5.com

Thanks all of you for reply.

Well bad news then, we have to use Psycopg2 directly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,476
Latest member
blackwatermelon

Latest Threads

Top