I'm afraid that without working code I can only guess...

> Here, a traceback :
>
> pythoncom error: Python error invoking COM method.
>
> exceptions.TypeError: Objects of type 'instancemethod' can not be
> converted
> to a
>  COM VARIANT
> Traceback (most recent call last):
>   File "D:\dev\python\Ponxwscript.py", line 45, in ?
>     vret=px.word___version()
>   File
> "C:\Python24\lib\site-packages\win32com\client\dynamic.py", line 491,
> in
> __getattr__
>     raise pythoncom.com_error, details
> pywintypes.com_error: (-2147352567, "Une exception s'est produite.", (0,
> 'Python
>  COM Server Internal Error', "Unexpected Python Error:
> exceptions.TypeError:
> Obj
> ects of type 'instancemethod' can not be converted to a COM
> VARIANT", None,
> 0, -
> 2147467259), None)

That looks like your COM server has a method with the same name as a
property.

> Traceback (most recent call last):
>   File "D:\dev\python\Ponxwscript.py", line 45, in ?
>     vret=px.word___version()
> TypeError: 'unicode' object is not callable

That simply means that px.word___version is already unicode, but you are
trying to call it.

> I hope that my English will have been comprehensible.

Yep - but I'm afraid you haven't provided enough technical context though
(at least for my time-starved email life :)  Please post the complete source
for the *smallest possible* server and client that demonstrates your
problem...

Mark

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to