delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/19/14:06:30

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <719d28270806190808m283280eei85282dd302917818 AT mail DOT gmail DOT com> <719d28270806190812wd73479dve7c0678d30ceb216 AT mail DOT gmail DOT com>
Subject: RE: Problem running Scripts in cygwin
Date: Thu, 19 Jun 2008 19:05:47 +0100
Message-ID: <003e01c8d237$19d2d1a0$2708a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <719d28270806190812wd73479dve7c0678d30ceb216@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Calvin Cheng wrote on 19 June 2008 16:13:

> I am having some trouble getting python to run scripts located in
> "/cygdrive/c/Python25/Scripts" in cygwin. I get an error message
> saying:
> python: can't open file 'rst2html.py': [Errno 2] No such file or directory
> 
> I can run those same scripts in "c:/Python/Scripts" correctly, with no
> error, if i am in cmd prompt environment.

  You are using windows python, not cygwin python, so there's no way on
earth it will ever understand posix file paths.

> It really bothers me to have to switch to cmd prompt and cygwin
> alternately to get some scripts running and I would love to get this
> working in cygwin if someone could point me in the right direction or
> have solved a similar problem? Has anyone managed to get this working
> in both cmd and cygwin?

  Use cygwin python, not activestate.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

- Raw text -


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