delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/01/17/14:07:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: Yes, hits=5.4 required=5.0 tests=AWL,BAYES_20,BOTNET,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Date: Tue, 17 Jan 2012 13:23:28 -0500
From: Jason Tishler <jason AT tishler DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: argparse for cygwin python
Message-id: <20120117182328.GA3564@tishler.net>
Mail-followup-to: cygwin AT cygwin DOT com
References: <4F15B83E DOT 8040408 AT molconn DOT com>
MIME-version: 1.0
In-reply-to: <4F15B83E.8040408@molconn.com>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
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

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.

Jason

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