[pywin32-bugs] [ pywin32-Bugs-2021738 ] Type Library Error
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2012-01-28 05:20:04
|
Bugs item #2021738, was opened at 2008-07-18 11:41 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2021738&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: mark panasevich (mjp1550) Assigned to: Nobody/Anonymous (nobody) Summary: Type Library Error Initial Comment: when attempting to open the type libraries in the COM browser, the following error occurs in build 211 File "C:\Python25\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 123, in OnTreeItemExpanding self.AddSubList(itemHandle, self.GetSubList(item)) File "C:\Python25\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 137, in AddSubList self.AddItem(parentHandle, item) File "C:\Python25\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) C:\Python25\lib\site-packages\win32com\client\combrowse.py:530: Warning: Exception in OnNotify() handler dlg.DoModal() build 210 apparently works. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2012-01-27 21:20 Message: This error would have been fixed a few builds ago as part of the py3k work - please reopen if you can still reproduce it. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2008-07-18 16:57 Message: Logged In: YES user_id=771074 Originator: NO Looks like this is due to PyITypeLib.GetDocumentation returning unicode now. For a short-term workaround, change lines 227 & 228 in combrowse.py: if doc: ret.append(browser.HLIDocString(str(doc), "Doc")) if helpFile: ret.append(HLIHelpFile( (str(helpFile), ctx) )) For a longer term solution, the tree control's InsertItem method needs to be changed to accept unicode. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2021738&group_id=78018 |