[pywin32-bugs] [ pywin32-Bugs-3192904 ] v215/py.32 win32 install fails 32 and 64-bit
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2011-07-12 22:30:07
|
Bugs item #3192904, was opened at 2011-02-26 03:41 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3192904&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: Open Resolution: None Priority: 5 Private: No Submitted By: j petrick (jpetrick1) Assigned to: Nobody/Anonymous (nobody) Summary: v215/py.32 win32 install fails 32 and 64-bit Initial Comment: Both pywin32-215.win32-py3.2.exe and pywin32-215.win-amd64-py3.2.exe throw and exception on install: 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 0x033995B0> ignored As a result, import win32com.client as win32 fails like this: Traceback (most recent call last): File "D:\EQ\InventoryDumps\testScript1.py", line 1, in <module> import win32com.client as win32 File "D:\Python32\lib\site-packages\win32com\__init__.py", line 5, in <module> import win32api, sys, os ImportError: DLL load failed: The specified module could not be found. Importing sys and os separately works fine, looks like win32api install failed. ---------------------------------------------------------------------- Comment By: masinghal () Date: 2011-07-12 22:30 Message: I ran the postinstall script manually and it failed while creating shortcuts. It is actually trying to find the "python 3.2" folder in my user profile roaming data folder. However, python32 is installed for all users so it does not find the python 3.2 folder and fails. Easiest fix was to create the "Python 3.2" folder. Better fix would be to modify the script so that it finds the right folder. C:\Python32\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 Registered: Python.Interpreter Registered: Python.Dictionary Registered: Python -> 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 Can't install shortcuts - 'C:\\Users\\singhalm\\AppData\\Roaming\\Microsoft\\Win dows\\Start Menu\\Programs\\Python 3.2' is not a folder The pywin32 extensions were successfully installed. ---------------------------------------------------------------------- Comment By: johanfo () Date: 2011-03-10 23:36 Message: I just "double clicked the installer" in windows. Has tried both with "admin" and "regular user" rights. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2011-03-08 09:07 Message: running the post-install script was to be my next suggestion :) How did you start the installer - from a cmd-prompt? IThis has been reported before, but it works fine for many (including me) too! ---------------------------------------------------------------------- Comment By: johanfo () Date: 2011-03-08 08:49 Message: Update: I ran "C:\Python32\Scripts\pywin32_postinstall.py -install" after the failed installation, and now it works :) I'm happy! Still, the installer should be investigated though if you have the time. Mark: Thanks for your time and effort on this project! ---------------------------------------------------------------------- Comment By: johanfo () Date: 2011-03-08 08:41 Message: Hi! I am on Vista 64bit, using Python 3.2. It fails with pywin32-216.1.win32-py3.2.exe! By accident, I noticed that I could install the 64 bit python and the 64bit pywin without any problems. Unfortunately, I have to control a 32 bit com object, so I uninstalled all python, deleted registry and the python directory and started from scratch with 32bit python and pywin, and then it fails. Is there something I can do to help you debug this? I'm not sure where to start. JF ---------------------------------------------------------------------- Comment By: j petrick (jpetrick1) Date: 2011-03-08 00:42 Message: 216 build, 64-bit installed OK. I didn't try the 32-bit version. ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2011-03-07 21:32 Message: Do you have the same problem in build 216? ---------------------------------------------------------------------- Comment By: johanfo () Date: 2011-03-07 19:01 Message: I have the exact same problem! Solved it yet? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3192904&group_id=78018 |