delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/14/19:35:51

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: 1.7.5: ant no longer finds python: upgrade from 1.5 suspected
Date: Mon, 14 Jun 2010 16:35:36 -0700
Message-ID: <27D7F4C907BCB14FAF95CC4E25AB1FE6AF5561@ex2.AdBriteInc.local>
From: "Bill Ross" <bross AT adbrite DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Could ant be thrown off by a 1.7 upgrade? The upgrade is the only big chang=
e since things were last working, and another person who upgraded is showin=
g 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 p=
ython before, but ant can't find python now. The cmd line that worked befor=
e is given below, plus a small test case.

-bash-3.2$ ant dist
=A0[...]
=A0=A0=A0 C:\svn\trunk\tools\build\wsdl\build.xml:60: Execute failed: java.=
io.IOException: Cannot run program "python":
=A0=A0=A0 =A0CreateProcess error=3D2, The system cannot find the file speci=
fied

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/a=
nt

-bash-3.2$ which python
/bin/python

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

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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019