[pywin32-bugs] [ pywin32-Bugs-2006053 ] build.py UnicodeDecodeError pywin32-211
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-06-29 17:33:16
|
Bugs item #2006053, was opened at 2008-06-29 19:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2006053&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: com Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Prinz (sgollmer) Assigned to: Nobody/Anonymous (nobody) Summary: build.py UnicodeDecodeError pywin32-211 Initial Comment: Hai, I have a issue with Python 2.5.2/pywin32-211: >>> >>> >>> from win32com.client import GetObject >>> WMI = GetObject('winmgmts:') >>> Entries = WMI.ExecQuery('select * from Win32_Process where Name="svchost.exe"') Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> Entries = WMI.ExecQuery('select * from Win32_Process where Name="svchost.exe"') File "C:\Programme\Python25\Lib\site-packages\win32com\client\dynamic.py", line 467, in __getattr__ if self._olerepr_.mapFuncs.has_key(attr): return self._make_method_(attr) File "C:\Programme\Python25\Lib\site-packages\win32com\client\dynamic.py", line 295, in _make_method_ methodCodeList = self._olerepr_.MakeFuncMethod(self._olerepr_.mapFuncs[name], methodName,0) File "C:\Programme\Python25\Lib\site-packages\win32com\client\build.py", line 297, in MakeFuncMethod return self.MakeDispatchFuncMethod(entry, name, bMakeClass) File "C:\Programme\Python25\Lib\site-packages\win32com\client\build.py", line 318, in MakeDispatchFuncMethod s = linePrefix + 'def ' + name + '(self' + BuildCallList(fdesc, names, defNamedOptArg, defNamedNotOptArg, defUnnamedArg, defOutArg) + '):' File "C:\Programme\Python25\Lib\site-packages\win32com\client\build.py", line 604, in BuildCallList argName = MakePublicAttributeName(argName) File "C:\Programme\Python25\Lib\site-packages\win32com\client\build.py", line 542, in MakePublicAttributeName return filter( lambda char: char in valid_identifier_chars, className) File "C:\Programme\Python25\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) >>> This error didn't occure on pywin32-210. Is something wrong with my code? Thanks Prinz ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2006053&group_id=78018 |