Traceback most recent call last File VBOXSVR python ИнфТехн LabWork_03

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
Traceback (most recent call last):
File "\\VBOXSVR\python\ИнфТехн\LabWork_03\src\Example_02.py", line 5, in <module>
book.Workbooks.Add()
File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 443, 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 277, in _make_method_
methodCodeList = self._olerepr_.MakeFuncMethod(self._olerepr_.mapFuncs[name], methodName,0)
File "C:\Python25\Lib\site-packages\win32com\client\build.py", line 296, in MakeFuncMethod
return self.MakeDispatchFuncMethod(entry, name, bMakeClass)
File "C:\Python25\Lib\site-packages\win32com\client\build.py", line 317, 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 576, in BuildCallList
argName = MakePublicAttributeName(argName)
File "C:\Python25\Lib\site-packages\win32com\client\build.py", line 514, in MakePublicAttributeName
return filter( lambda char: char in valid_identifier_chars, className)
File "C:\Python25\Lib\site-packages\win32com\client\build.py", line 514, in <lambda>
return filter( lambda char: char in valid_identifier_chars, className)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 52: ordinal not in range(128)