RELEASED Python 2.6.5

Peter peter at psantoro.net
Thu Mar 25 21:07:42 CET 2010


On Wed, 24 Mar 2010 23:22:01 +0100, Martin v. Loewis wrote:

>> Is anyone else having trouble with the 2.6.5 Windows x86 installer?
> 
> Not me. Run
> 
> msiexec /i py...msi /l*v py.log
> 
> and inspect py.log for errors (post it to bugs.python.org if you can't
> determine the cause of the problems).


Martin,

Thanks for the tip about the msiexec command line usage.  If I run the 
installer without selecting the Advanced compiling option, it works fine.

The relevent part of the log when it fails using the Advanced compiling 
option is as follows:

--------------------

MSI (s) (4C:B4) [14:41:27:205]: Doing action: CompilePyc
Action 14:41:27: CompilePyc. 
Action start 14:41:27: CompilePyc.
MSI (s) (4C:B4) [14:45:45:528]: Note: 1: 1722 2: CompilePyc 3: C:\bin
\Python26\python.exe 4: -Wi "C:\bin\Python26\Lib\compileall.py" -f -x 
bad_coding|badsyntax|site-packages|py3_ "C:\bin\Python26\Lib" 
MSI (s) (4C:B4) [14:45:45:528]: Note: 1: 2262 2: Error 3: -2147287038 
Error 1722. There is a problem with this Windows Installer package. A 
program run as part of the setup did not finish as expected. Contact your 
support personnel or package vendor.  Action CompilePyc, location: C:\bin
\Python26\python.exe, command: -Wi "C:\bin\Python26\Lib\compileall.py" -f 
-x bad_coding|badsyntax|site-packages|py3_ "C:\bin\Python26\Lib" 
MSI (s) (4C:B4) [14:47:41:133]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (s) (4C:B4) [14:47:41:133]: Product: Python 2.6.5 -- Error 1722. 
There is a problem with this Windows Installer package. A program run as 
part of the setup did not finish as expected. Contact your support 
personnel or package vendor.  Action CompilePyc, location: C:\bin\Python26
\python.exe, command: -Wi "C:\bin\Python26\Lib\compileall.py" -f -x 
bad_coding|badsyntax|site-packages|py3_ "C:\bin\Python26\Lib" 

Action ended 14:47:41: CompilePyc. Return value 3.
Action ended 14:47:41: INSTALL. Return value 3.

--------------------

I believe the cause of the installation failure message is with the 
syntax of the following command:

C:\bin\Python26\python.exe -Wi "C:\bin\Python26\Lib\compileall.py" -f -x 
bad_coding|badsyntax|site-packages|py3_ "C:\bin\Python26\Lib"

If you run this command in the Windows XP shell, it yields an error.  If 
you wrap the -x option's args in double quotes, it runs ok (except for a 
syntax error when compiling one of the python source files - I don't 
remember which one):

C:\bin\Python26\python.exe -Wi "C:\bin\Python26\Lib\compileall.py" -f -x 
"bad_coding|badsyntax|site-packages|py3_" "C:\bin\Python26\Lib"

So it appears that the Windows XP shell is interpreting the "|" 
characters within the -x option's args as pipe characters and trys to 
pipe the "multiple commands" together.  The simple work around is to not 
use the Advanced compiling option.

Peter



More information about the Python-list mailing list