adodb has no attribute connect
r.warhekar at gmail.com
Tue Feb 10 06:24:13 CET 2009
On Feb 10, 5:01 am, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
> Rahul schrieb:
> > Hello all,
> > I have to access data from database usingadodbso I did
> > Importadodb
> > Conn=adodb.NewADOConnection("odbc")
> > Upto this it works properly but when I say
> It does not. It returns None, thus the following error you see.
> > Conn.Connect("","","")
> > It gives error as
> > [Attributrerror]: Object Nonetype has no attribute Connect.
> > I have Red Hat Enterprise Linux 4
> > Python 2.5
> > Mod_python 3.3.1
> According to the docs on the (very old and seemingly not actively
> developedadodb-site), "odbc" needs the Python windows extensions. As
> you are on redheat, I have difficulties believing you make these work.
> Maybe mxodbc works? Or even better, ditch that ado-stuff and connect
> directly to your database. Python's DB-API is better I guess, no need
> for this attempt at mimicking windows APIs.
Thank you Diez
I think this is very useful for me to change my mind and get shifted
I will try to work on it.
More information about the Python-list