Hello,
I'm attempting to set a string value using a COM interface to an application. I
get the following traceback. Could anyone help me understand the nature of the
error or how I might begin to discover it?
Thank you,
Aleksandr
Code and traceback:
In [2]: from win32com.client import Dispatch
In [3]: eApp = Dispatch("ExpressionMedia.Application")
In [4]: catalog = eApp.ActiveCatalog
In [5]: selection = catalog.Selection
In [6]: item = selection[0]
In [7]: path = item.Path
In [8]: path
Out[8]: u'E:\\Images\\Events\\Alumni and Student\\BEIA formerly
DEAA\\2008\\Awards dinner CD 01\\DSC_0009.JPG'
In [9]: path = ""
In [10]: path
Out[10]: ''
In [11]: item.Path = ""
---------------------------------------------------------------------------
pywintypes.com_error Traceback (most recent
call last)
C:\<ipython console>
c:\python24\lib\site-packages\win32com\client\__init__.py in __setattr__(self,
attr, value)
461 except KeyError:
462 raise AttributeError, "'%s' object has no
attribute '%s'" % (repr(self), attr)
--> 463 self._oleobj_.Invoke(*(args + (value,) + defArgs))
464 def _get_good_single_object_(self, obj, obUserName=None,
resultCLSID=None):
465 return _get_good_single_object_(obj, obUserName,
resultCLSID)
com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0,
-2147467259), None)
In [12]:
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32