This is the mail archive of the
mailing list for the Cygwin project.
Re: argparse for cygwin python
- From: Rick Rankin <rick dot rankin at yahoo dot com>
- To: Jason Tishler <jason at tishler dot net>, "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 17 Jan 2012 22:24:37 -0800 (PST)
- Subject: Re: argparse for cygwin python
- References: <4F15B83E.firstname.lastname@example.org> <20120117182328.GA3564@tishler.net>
- Reply-to: Rick Rankin <rick dot rankin at yahoo dot com>
----- Original Message -----
> From: Jason Tishler <xxx@xxx>
> To: xxx@xxx
> 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".
>> 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 ;-)
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple