AnsweredAssumed Answered

failing python script while creating installer using Izpack for spark 2.6.3

Question asked by damuammu on Jun 13, 2012

failing python script while creating instalelr using Izpack for spark 2.6.3

Below is the build script.

 

<target name="installer.izpack.exe" depends="installer.izpack" description="build release executable izpack installer">
       
<exec executable="python" failonerror="true">
           
<arg line="${installer.izpack.dir}/utils/wrappers/izpack2exe/izpack2exe.py"/>
           
<arg line="--file=${basedir}/installer/EasyIT-installer.jar"/>
           
<arg line="--output=${basedir}/installer/EasyIT-installer.exe"/>
           
<arg line="--no-upx"/>
       
</exec>
   
</target>

 

error :

 

installer.izpack.exe:
    
[exec] Traceback (most recent call last):
    
[exec]   File "C:\PROGRA~1\IzPack/utils/wrappers/izpack2exe/izpack2exe.py", line 126, in <module>
    
[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 Win32application

BUILD FAILED
E
:\Java Projects\Spark Projects\EastIT - Copy\build\build.xml:873: execreturned: 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

Outcomes