[pywin32-bugs] [ pywin32-Bugs-2009780 ] UnicodeDecodeError on version 211
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-07-04 08:39:52
|
Bugs item #2009780, was opened at 2008-07-03 16:42 Message generated for change (Comment added) made by motoom You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2009780&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: Open Resolution: None Priority: 5 Private: No Submitted By: Steven Doyle (steven_doyle) Assigned to: Nobody/Anonymous (nobody) Summary: UnicodeDecodeError on version 211 Initial Comment: Clean install of python 2.5.2 and windows extensions version 211. After calling my own COM object moniker = win32com.client.Dispatch('MXApi.MXMoniker') moniker.ParseDisplayName("live/chain.fx/global/usd/default") results in a UnicodeDecodeError: 'ascii' codec can't decode byte ... error. Reinstalling version 210 again and the problem goes away. Any ideas? ---------------------------------------------------------------------- Comment By: Michiel Overtoom (motoom) Date: 2008-07-04 10:40 Message: Logged In: YES user_id=96530 Originator: NO I get the same error as steven_doyle with version 211 when I try to access MS-Word or ADO via Win32com. I include a full traceback: >>> import win32com.client >>> word = win32com.client.gencache.EnsureDispatch ("Word.Application") Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> word = win32com.client.gencache.EnsureDispatch ("Word.Application") File "C:\Ap\Python\lib\site-packages\win32com\client\gencache.py", line 536, in EnsureDispatch mod = EnsureModule(tla[0], tla[1], tla[3], tla[4], bForDemand=bForDemand) File "C:\Ap\Python\lib\site-packages\win32com\client\gencache.py", line 520, in EnsureModule module = MakeModuleForTypelib(typelibCLSID, lcid, major, minor, progressInstance, bForDemand = bForDemand, bBuildHidden = bBuildHidden) File "C:\Ap\Python\lib\site-packages\win32com\client\gencache.py", line 287, in MakeModuleForTypelib makepy.GenerateFromTypeLibSpec( (typelibCLSID, lcid, major, minor), progressInstance=progressInstance, bForDemand = bForDemand, bBuildHidden = bBuildHidden) File "C:\Ap\Python\Lib\site-packages\win32com\client\makepy.py", line 275, in GenerateFromTypeLibSpec gen.generate(fileUse, bForDemand) File "C:\Ap\Python\Lib\site-packages\win32com\client\genpy.py", line 770, in generate self.do_generate() File "C:\Ap\Python\Lib\site-packages\win32com\client\genpy.py", line 831, in do_generate oleItems, enumItems, recordItems, vtableItems = self.BuildOleItemsFromType() File "C:\Ap\Python\Lib\site-packages\win32com\client\genpy.py", line 739, in BuildOleItemsFromType newItem = EnumerationItem(info, attr, doc) File "C:\Ap\Python\Lib\site-packages\win32com\client\genpy.py", line 180, in __init__ build.OleItem.__init__(self, doc) File "C:\Ap\Python\Lib\site-packages\win32com\client\build.py", line 91, in __init__ self.python_name = MakePublicAttributeName(self.doc[0]) File "C:\Ap\Python\Lib\site-packages\win32com\client\build.py", line 542, in MakePublicAttributeName return filter( lambda char: char in valid_identifier_chars, className) File "C:\Ap\Python\Lib\site-packages\win32com\client\build.py", line 542, in <lambda> return filter( lambda char: char in valid_identifier_chars, className) UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 52: ordinal not in range(128) >>> ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2008-07-04 01:22 Message: Logged In: YES user_id=14198 Originator: NO Can you please include the full traceback you see? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2009780&group_id=78018 |