ADO and Makepy

A

Alv Mart

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?


Traceback (most recent call last):

File "<interactive input>", line 1, in ?

File "C:\Python2\lib\site-packages\win32com\client\__init__.py", line 479,
in __init__

if oobj is None: oobj = pythoncom.new(self.CLSID)

TypeError: Only strings and iids can be converted to a CLSID.

I have run makepy again but it does not work

egards
 
M

Mark Hammond

Alv said:
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?

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 "makepy.py -i" for details.

Mark.
 

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
473,733
Messages
2,569,440
Members
44,832
Latest member
GlennSmall

Latest Threads

Top