Hello,

I try to get a working .exe from the COM server available at the "Quick
Start to Server side COM and Python" [1].

With py2exe and Gordon McMillan's Python Installer, the generated .exe
can register/unregister the COM server without problem, but it looks
like the COM client get a timeout while connecting to the COM server:

Traceback (most recent call last):
  File "comclient.py", line 8, in ?
    o = win32com.client.Dispatch("Python.TestServer")
  File "C:\Python23\Lib\site-packages\win32com\client\__init__.py", line
95, in
Dispatch
    dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,c
lsctx)
  File "C:\Python23\Lib\site-packages\win32com\client\dynamic.py", line
91, in _
GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File "C:\Python23\Lib\site-packages\win32com\client\dynamic.py", line
79, in _
GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.II
D_IDispatch)
pywintypes.com_error: (-2146959355, "\xc9chec de l'ex\xe9cution du
serveur", Non
e, None)

The fun is that the COM server and COM client work fine together when
using the python scripts, but they don't work when using the .exe.

Any ideas ?

Best regards,

[1] http://www.python.org/windows/win32com/QuickStartServerCom.html

-- 
C�dric Delfosse                             Linbox / Free&ALter Soft
152, rue de Grigy - Technopole Metz              57070 Metz - FRANCE
t�l: +33 (0)3 87 50 87 90        http://linbox.org http://linbox.com

_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to