delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/18/01:25:02

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
References: <4F15B83E DOT 8040408 AT molconn DOT com> <20120117182328 DOT GA3564 AT tishler DOT net>
Message-ID: <1326867877.92242.YahooMailNeo@web120705.mail.ne1.yahoo.com>
Date: Tue, 17 Jan 2012 22:24:37 -0800 (PST)
From: Rick Rankin <rick DOT rankin AT yahoo DOT com>
Reply-To: Rick Rankin <rick DOT rankin AT yahoo DOT com>
Subject: Re: argparse for cygwin python
To: Jason Tishler <jason AT tishler DOT net>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
In-Reply-To: <20120117182328.GA3564@tishler.net>
MIME-Version: 1.0
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q0I6OvPa000737




----- Original Message -----
> From: Jason Tishler <xxx AT xxx>
> To: xxx AT xxx
> Cc: 
> Sent: Tuesday, January 17, 2012 11:23 AM
> Subject: Re: argparse for cygwin python
> 
> On Tue, Jan 17, 2012 at 01:04:46PM -0500, LMH wrote:
>>  I have a python script and when I try to run it I get an error for no 
>>  such module, "ImportError: No module named argparse".
>> 
>>  [snip]
>> 
>>  Any suggestions?
> 
> See the following:
> 
>     http://docs.python.org/dev/library/argparse.html
> 
> argparse is not available until Python 3.2; Cygwin Python is 2.6.

No, argparse is included as a standard package in Python 2.7. I use it all the time. It was introduced in Python 3.x, then backported, IIRC. I keep hoping Cygwin's python maintainer will update to at least 2.7 ;-)

--Rick


--
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