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 Reply-To: Rick Rankin Subject: Re: argparse for cygwin python To: Jason Tishler , "cygwin AT cygwin DOT com" In-Reply-To: <20120117182328.GA3564@tishler.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q0I6OvPa000737 ----- Original Message ----- > From: Jason Tishler > 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