Bugs item #959449, was opened at 2004-05-24 23:54
Message generated for change (Comment added) made by mhammond
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=959449&group_id=78018
Category: com
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jan Erik Breimo (jebreimo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error when using IID in all builds after 159
Initial Comment:
The following script:
import win32com.client.gencache
Excel = win32com.client.gencache.EnsureModule
('{00020813-0000-0000-C000-000000000046}', 0, 1, 4)
excel = Excel.Application()
and simliar scripts that use other servers always fail as
follows in builds 161, 163 and 201:
D:\ws\k2is_source.CC-V2\Tools\Python\diverse>python
ExcelTest.py
Traceback (most recent call last):
File "ExcelTest.py", line 3, in ?
excel = Excel.Application()
File "C:\Python23\Lib\site-
packages\win32com\client\__init__.py", line 489, in
__init__
if oobj is None: oobj = pythoncom.new(self.CLSID)
TypeError: Only strings and iids can be converted to a
CLSID.
In builds 153, 155 and 159 the scripts run without errors.
I'm using Python 2.3.3 on Win2k Professional SP 4
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2004-10-09 12:25
Message:
Logged In: YES
user_id=14198
This is caused by duplicate pythoncom23.dll files - see if
you can find the dupe and remove it. Otherwise please
reopen this bug. The latest installers try and detect this
situation.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=959449&group_id=78018
|