[pywin32-bugs] [ pywin32-Bugs-3290176 ] install error in pywin32-216.win32.py3.2.exe
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2011-04-22 04:43:05
|
Bugs item #3290176, was opened at 2011-04-20 18:53 Message generated for change (Settings changed) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3290176&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: None Group: None >Status: Closed >Resolution: Duplicate Priority: 5 Private: No Submitted By: Paul Metcalfe (pmetcalfe) Assigned to: Nobody/Anonymous (nobody) Summary: install error in pywin32-216.win32.py3.2.exe Initial Comment: pywin32-216.win32-py3.2.exe fails to install on my machine [Win7, fresh install of python 3.2 and of pywin32]. At the postinstall phase of running the installer, I get the error: Traceback (most recent call last): File "<string>", line 604, in <module> File "<string>", line 332, in install File "<string>", line 15, in write AttributeError: 'NoneType' object has no attribute 'write' Exception AttributeError: "'NoneType' object has no attribute 'flush'" in <__main__.Tee object at 0x03093350> ignored If I try to run the install script by hand: cd \Python32 python Scripts\pywin32_postinstall.py -install I get the following error: Traceback (most recent call last): File "<string>", line 604, in <module> File "<string>", line 332, in install File "<string>", line 15, in write AttributeError: 'NoneType' object has no attribute 'write' Exception AttributeError: "'NoneType' object has no attribute 'flush'" in <__main__.Tee object at 0x03093350> ignored C:\Python32>python Scripts\pywin32_postinstall.py -install Copied pythoncom32.dll to C:\Windows\system32\pythoncom32.dll Copied pythoncomloader32.dll to C:\Windows\system32\pythoncomloader32.dll Copied pywintypes32.dll to C:\Windows\system32\pywintypes32.dll FAILED to register the Python COM objects Traceback (most recent call last): File "Scripts\pywin32_postinstall.py", line 372, in install RegisterCOMObjects() File "Scripts\pywin32_postinstall.py", line 170, in RegisterCOMObjects import win32com.server.register File "C:\Python32\lib\site-packages\win32com\server\register.py", line 47 except win32api.error, (code, fn, msg): ^ SyntaxError: invalid syntax -> Software\Python\PythonCore\3.2\Help[None]=None -> Software\Python\PythonCore\3.2\Help\Pythonwin Reference[None]='C:\\Python32\\ Lib\\site-packages\\PyWin32.chm' Pythonwin has been registered in context menu Creating directory C:\Python32\Lib\site-packages\win32com\gen_py Can't install shortcuts - 'C:\\Users\\pmetcalfe\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Python 3.2' is not a folder Traceback (most recent call last): File "Scripts\pywin32_postinstall.py", line 604, in <module> install() File "Scripts\pywin32_postinstall.py", line 471, in install import win32com.client File "C:\Python32\lib\site-packages\win32com\client\__init__.py", line 424 except pythoncom.com_error, details: ^ SyntaxError: invalid syntax There do indeed seem to be old-style exception statements scattered throughout the pywin32 subdirectories of site-packages, as detailed in the attached file. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2011-04-22 14:43 Message: There seem to be 2 problems here: * pywin32-216.win32-py3.2.exe did indeed have some py2k syntax files - that file has been removed from the 216 build and replaced with pywin32-216.1.win32-py3.2.exe - how did you find the old one? * The AttributeError at install time is a different problem I don't yet understand, but will probably work around in the next build - see issue 3192904 for more details. Both those are duplicates of existing bugs (the first fixed, the second not yet) so closing this issue. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3290176&group_id=78018 |