Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » CreateProcess error=2, Can not run program "python" on Ant
CreateProcess error=2, Can not run program "python" on Ant [message #1758910] Tue, 04 April 2017 13:43 Go to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
Hi,
I have a
`C:\Users\Sony\Desktop\Project\Workspace\testpython\verify_fam_extended.xml:52: Execute failed: java.io.IOException: Cannot run program "python" (in directory "C:\Users\Sony\Desktop\Project\Workspace\testpython\backend\generated"): CreateProcess error=2, The system cannot find the file specified` error when I run my xml code through Ant.
What should I do?
<exec dir="backend/generated" executable="python">
        <arg line="toplevel.py"/>
        <env key="PYTHONPATH" value="${dsltrans.install.path}:./backend/generated"/> 
    </exec>


Member of MDSE Research Group
http://mdse.ui.ac.ir

[Updated on: Tue, 04 April 2017 13:45]

Report message to a moderator

Re: CreateProcess error=2, Can not run program "python" on Ant [message #1758986 is a reply to message #1758910] Wed, 05 April 2017 05:05 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

This is an Ant question, not an Eclipse question. Check the documentation at https://ant.apache.org/manual/Tasks/exec.html , especially for any mentions of errors and return codes.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Indigo RCP/RAP unable to open Eclipse.app, but exe opens from cmd line
Next Topic:problem in eclipse
Goto Forum:
  


Current Time: Fri Apr 19 11:13:16 GMT 2024

Powered by FUDForum. Page generated in 0.03183 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top