Re: [python-win32] Possible trouble with pywin23-216 on python 3.2
I ran across this problem myself awhile back, and it seems to be common enough that they added a feature to distutils to handle it. I have added a copy of my setup.cfg to CVS, which contains: code [build] force=1 [bdist_wininst] user_access_control=auto /code With force=1, it should theoretically clean out the build directory on every run. -- Vernon On Fri, Mar 4, 2011 at 5:18 PM, Mark Hammond mhamm...@skippinet.com.au wrote: The Python 3.2 32-bit build was the only one affected and I've uploaded a 216.1 build for this version only. It is identical to the 216 builds except for the build ID and the conversion of all files to py3k syntax. What went wrong? I was incorrect the other day about the 32bit and 64bit versions sharing the same .py files - they do share the same source files obviously, but the build process copies them to a different directory for each build (the build directory). The hacks I have in the build process for the 2to3 conversion do the conversion in-place in the build directory - which is error prone. I'm fairly confident the problem was that I interrupted the build while 3.2 32-bits was being generated and while the 2to3 conversion was happening. When I restarted the build, the logic which checks if files need copying determined that the build directory was up-to-date - even though the py3k conversion process wasn't complete. As a result, that build directory was left alone with some pre-converted files. Sadly, it isn't trivial to fix this in distutils, so I am just going to need to be more careful when making future releases. I *usually* am good about nuking the entire build tree and rebuilding the world before release, but now that I do that on a VM, a full build takes many hours to complete. I took a shortcut and paid the price :) Cheers, Mark ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32 ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Possible trouble with pywin23-216 on python 3.2
Re: [python-win32] Possible trouble with pywin23-216 on python 3.2 Aha! There's your problem: you're trying to install pywin23. Don't know why you didn't spot it yourself... ;) TJG ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Possible trouble with pywin23-216 on python 3.2
Tim Golden wrote: Re: [python-win32] Possible trouble with pywin23-216 on python 3.2 Aha! There's your problem: you're trying to install pywin23. Unless of course you're using one of those rare machines based on Intel's little-known 23-bit architecture. (There was a typo early on in the design phase that wasn't spotted until an embarrassingly late stage of the development process. They hijacked the time machine and tried to cover it up, but a few prototype machines slipped through.) -- Greg ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
[python-win32] Possible trouble with pywin23-216 on python 3.2
Attempting to install using the binary installer, the installer gets to postinstall script finished, but the display window says: v v v v v v v v 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 - 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 Shortcut for Pythonwin created Shortcut to documentation created Traceback (most recent call last): File string, line 372, in install File string, line 170, in RegisterCOMObjects File C:\Python32\lib\site-packages\win32com\server\register.py, line 47 except win32api.error, (code, fn, msg): ^ SyntaxError: invalid syntax Traceback (most recent call last): File string, line 604, in module File string, line 471, in install File C:\Python32\lib\site-packages\win32com\client\__init__.py, line 424 except pythoncom.com_error, details: ^ SyntaxError: invalid syntax ^ ^ ^ ^ ^ ^ When the adodbapi test is run, it gives: v v v v v v C:\hg\adodbapi\testP3kc:\python32\python.exe testadodbapi.py Traceback (most recent call last): File testadodbapi.py, line 28, in module import win32com.client File c:\python32\lib\site-packages\win32com\client\__init__.py, line 424 except pythoncom.com_error, details: ^ SyntaxError: invalid syntax ^ ^ ^ ^ ^ ^ ^ ^ ^ Which sounds oddly familiar. This is on Windows Vista Home Basic. -- Vernon ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Possible trouble with pywin23-216 on python 3.2
On 3/03/2011 4:15 PM, Vernon Cole wrote: Attempting to install using the binary installer, the installer gets to postinstall script finished, but the display window says: v v v v v v v v 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 - 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 Shortcut for Pythonwin created Shortcut to documentation created Traceback (most recent call last): File string, line 372, in install File string, line 170, in RegisterCOMObjects File C:\Python32\lib\site-packages\win32com\server\register.py, line 47 except win32api.error, (code, fn, msg): ^ SyntaxError: invalid syntax Traceback (most recent call last): File string, line 604, in module File string, line 471, in install File C:\Python32\lib\site-packages\win32com\client\__init__.py, line 424 except pythoncom.com_error, details: ^ SyntaxError: invalid syntax ^ ^ ^ ^ ^ ^ When the adodbapi test is run, it gives: v v v v v v C:\hg\adodbapi\testP3kc:\python32\python.exe testadodbapi.py Traceback (most recent call last): File testadodbapi.py, line 28, in module import win32com.client File c:\python32\lib\site-packages\win32com\client\__init__.py, line 424 except pythoncom.com_error, details: ^ SyntaxError: invalid syntax ^ ^ ^ ^ ^ ^ ^ ^ ^ Which sounds oddly familiar. This is on Windows Vista Home Basic. *sob* - I tested 3.2 with a 64bit build and didn't perform a test install of the 3.2 32bit exe. The 64bit one is fine and I don't understand how that could have happened - in theory the 2 builds share the same .py files - but it has happened :( I'll check 3.1 tomorrow and try to determine what went wrong in the build process, then put up new builds where necessary... Thanks, Mark ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32