Failing python script while creating installer using Izpack for spark 2.6.3

failing python script while creating instalelr using Izpack for spark 2.6.3

Below is the build script.

error :

`installer.izpack.exe:
[exec] Traceback (most recent call last):
[exec] File “C:\PROGRA~1\IzPack/utils/wrappers/izpack2exe/izpack2exe.py”, line 126, in
[exec] main()
[exec] File “C:\PROGRA~1\IzPack/utils/wrappers/izpack2exe/izpack2exe.py”, line 123, in main
[exec] create_exe(parse_options())
[exec] File “C:\PROGRA~1\IzPack/utils/wrappers/izpack2exe/izpack2exe.py”, line 77, in create_exe
[exec] subprocess.call(p7zcmd, shell=use_shell)
[exec] File “C:\Python27\lib\subprocess.py”, line 493, in call
[exec] return Popen(*popenargs, **kwargs).wait()
[exec] File “C:\Python27\lib\subprocess.py”, line 679, in init
[exec] errread, errwrite)
[exec] File “C:\Python27\lib\subprocess.py”, line 896, in _execute_child
[exec] startupinfo)
[exec] WindowsError: [Error 193] %1 is not a valid Win32 application

BUILD FAILED
E:\Java Projects\Spark Projects\EastIT - Copy\build\build.xml:873: exec returned: 1
`

I have posted many question, stil now i didnot get solution for one atleast, Please try to answer how to resolve this issue.

Thanks,

DK