Failed to create installer for spark with python problem

I tried to create the installer exe file by the document of:

http://community.igniterealtime.org/docs/DOC-1767

It is almost succeeded except this error:

=====

[launch4j] Successfully created C:\Documents and Settings\Administrator\workspace\spark\target\build\Spark.exe

[launch4j] Compiling resources

[launch4j] Linking

[launch4j] Successfully created C:\Documents and Settings\Administrator\workspace\spark\target\build\starter.exe

installer.izpack:

[IzPack] Building installer jar: C:\Documents and Settings\Administrator\workspace\spark\installer\spark-installer.jar

[IzPack] Copying 61 files into installer

[IzPack] Merging 8 jars into installer

[IzPack] Writing 1 Pack into installer

installer.izpack.exe:

BUILD FAILED

C:\Documents and Settings\Administrator\workspace\spark\build\build.xml:873: Execute failed: java.io.IOException: Cannot run program “python” (in directory “C:\Documents and Settings\Administrator\workspace\spark”): CreateProcess error=2, ???

Total time: 57 seconds

=====

I have installed pydev and it still don’t work. Can anyone help me?

installer.izpack can be generated successfully. As the installer/spark-installer.jar file.

But installer.izpack.exe will fail.

I tried the command:

C:\Documents and Settings\Administrator\workspace\spark\installer>C:\Python32\python.exe “c:\Program Files\IzPack\utils\wrappers\izpack2exe\izpack2exe.py” --file=spark-installer.jar --output=spark-installer.exe --no-upx

It says:

=====

Traceback (most recent call last):

File “c:\Program Files\IzPack\utils\wrappers\izpack2exe\izpack2exe.py”, line 1

26, in

main()

File “c:\Program Files\IzPack\utils\wrappers\izpack2exe\izpack2exe.py”, line 1

23, in main

create_exe(parse_options())

File “c:\Program Files\IzPack\utils\wrappers\izpack2exe\izpack2exe.py”, line 7

7, in create_exe

subprocess.call(p7zcmd, shell=use_shell)

File “C:\Python32\lib\subprocess.py”, line 471, in call

return Popen(*popenargs, **kwargs).wait()

File “C:\Python32\lib\subprocess.py”, line 745, in init

restore_signals, start_new_session)

File “C:\Python32\lib\subprocess.py”, line 964, in _execute_child

startupinfo)

WindowsError: [Error 193] %1 不是有效的 Win32 应用程序。

=====

If run in eclipse, it says:

=====

installer.izpack.exe:

[exec] python: can’t open file ‘c:\Program’: [Errno 2] No such file or directory

BUILD FAILED

C:\Documents and Settings\Administrator\workspace\spark\build\build.xml:873: exec returned: 2

Total time: 59 seconds

=====

Can anyone help?