ADO and Makepy

Mark Hammond mhammond at
Wed Nov 12 23:20:47 CET 2003

Alv Mart wrote:
> Hi,
> I ran makepy for ADO. After I installed a new version of python I have this
> error:
> Do you know why could I have this error?
>  >>> from ADODB import Connection,Recordset
>>>>conn = Connection()

You shouldn't need to import the makepy generated module manually.  You 
should just be able to use win32com.client.Dispatch("ADO.Connection").

This will magically use a Connection class from the makepy module.  You 
can also avoid manually running makepy, by calling gencache.EnsureModule 
- run " -i" for details.


More information about the Python-list mailing list