[pywin32-bugs] [ pywin32-Bugs-1998611 ] excel.Workbooks.Add() python 2.5 pywin32-211 error
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-06-20 10:00:31
|
Bugs item #1998611, was opened at 2008-06-20 11:44 Message generated for change (Settings changed) made by p_jeremie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1998611&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: win32 Group: None Status: Open Resolution: None Priority: 6 Private: No Submitted By: P.Jeremie (p_jeremie) Assigned to: Mark Hammond (mhammond) >Summary: excel.Workbooks.Add() python 2.5 pywin32-211 error Initial Comment: Hello all, I've got some issues with Python 2.5.2 + Pywin 2.5 Here is what I get when I try to open a new workbook in Excel: >>> excel.Visible = 1 >>> excel.Workbooks.Add() Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> excel.Workbooks.Add() File "C:\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:\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:\Python25\Lib\site-packages\win32com\client\build.py", line 297, in MakeFuncMethod return self.MakeDispatchFuncMethod(entry, name, bMakeClass) File "C:\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:\Python25\Lib\site-packages\win32com\client\build.py", line 604, in BuildCallList argName = MakePublicAttributeName(argName) File "C:\Python25\Lib\site-packages\win32com\client\build.py", line 542, in MakePublicAttributeName return filter(lambda char: char in valid_identifier_chars, className) Is it linked with the fact that I installed 2.5.2 over 2.4 ? Thanks for your help. Cheers, Jeremie File "C:\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) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1998611&group_id=78018 |