[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...> - 2012-01-28 05:00:19
|
Bugs item #3192904, was opened at 2011-02-25 19:41 Message generated for change (Comment added) made by mhammond 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: Closed >Resolution: Fixed 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: Mark Hammond (mhammond) Date: 2012-01-27 21:00 Message: Hopefully I'll have a new build out in a few days... ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2011-08-09 23:54 Message: It is fixed in hg - I hope to release a new binary within a month or so. ---------------------------------------------------------------------- Comment By: Aneesh (aneeshmbaby) Date: 2011-08-09 23:44 Message: Hi, When we can expect a fix for this issue? We have one product which makes use of this and would like to go for a release of that with Python 3.2 and PyWin32 3.2. Thanks a lot Aneesh ---------------------------------------------------------------------- Comment By: Aneesh (aneeshmbaby) Date: 2011-07-25 04:50 Message: I am also facing same problem. Today I tried to install pywin32-216.win32-py3.1.exe on two different Windows 7 Pro 32 bit machines and this issue was there always. It got installed fine on a Windows XP machine. The work around mentioned by masinghal helped in installing it but that is not good enough for us. Would like to have a solution for this quickly... Thanks, Aneesh ---------------------------------------------------------------------- Comment By: masinghal () Date: 2011-07-12 15: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 15: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 01: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 00: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 00: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-07 16: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 13:32 Message: Do you have the same problem in build 216? ---------------------------------------------------------------------- Comment By: johanfo () Date: 2011-03-07 11: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 |