This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.7.5: ant no longer finds python: upgrade from 1.5 suspected


Could ant be thrown off by a 1.7 upgrade? The upgrade is the only big change since things were last working, and another person who upgraded is showing the same symptom (no one else handy to compare with).
An ant build setup no longer finds python. It seems like it used cygwin's python before, but ant can't find python now. The cmd line that worked before is given below, plus a small test case.

-bash-3.2$ ant dist
?[...]
??? C:\svn\trunk\tools\build\wsdl\build.xml:60: Execute failed: java.io.IOException: Cannot run program "python":
??? ?CreateProcess error=2, The system cannot find the file specified

See build.xml testcase below. Same result with "python" and "python.exe".

-bash-3.2$ which ant
/cygdrive/c/Program Files/Apache Software Foundation/apache-ant-1.7.1/bin/ant

-bash-3.2$ which python
/bin/python

======= build.xml ('ant dist' to reproduce)
<?xml version="1.0"?><!-- -*- indent-tabs-mode: nil; -*- -->
<project name="test_python" default="dist">

? <target name="dist">
????? <exec executable="python">
??????? <arg value="test.py"/>
????? </exec>
? </target>
</project>
==========

Bill



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]