[python-win32] Apparent bug in COM browser on Vista

Ross Boylan RossBoylan at stanfordalumni.org
Wed Dec 16 09:37:25 CET 2009


The Python COM browser (pywin32 build 211.1), available from the Tools 
menu of the PythonWin GUI (downloaded yesterday from active state) 
doesn't seem to be working so well on Vista.  I went to the type 
libraries, selected one (any one , apparently) and clicked on it's "+".  
This expands to an IID and a Type Library.  The latter has a "+"; when I 
click on it the console shows
<quote>
Traceback (most recent call last):
  File 
"C:\Python26\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 
123, in OnTreeItemExpanding
    self.AddSubList(itemHandle, self.GetSubList(item))
  File 
"C:\Python26\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 
137, in AddSubList
    self.AddItem(parentHandle, item)
  File 
"C:\Python26\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 
149, in AddItem
    hitem = self.list.InsertItem(parentHandle, hInsertAfter, (None, 
None, None, text, bitmapCol, bitmapSel, cItems, 0))
TypeError: The text item must be a string or None (got unicode)
</quote>
The "+" expands to an item that says "The type info can not be loaded."

I don't have MSVC, and so don't have another tool handy to do this.

Ross Boylan


More information about the python-win32 mailing list