Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:error': 0.03; 'bug.': 0.09; 'lawrence': 0.09; 'subject:using': 0.09; 'valueerror:': 0.09; 'cc:addr:python-list': 0.11; 'bug': 0.12; 'fetches': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'not,': 0.20; 'feb': 0.22; 'cc:addr:python.org': 0.22; "shouldn't": 0.24; 'cc:2**0': 0.24; 'skip:" 40': 0.26; 'tracker': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'patch': 0.29; 'raise': 0.29; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'lines': 0.31; 'file': 0.32; 'probably': 0.32; 'skip:c 30': 0.32; "i'd": 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'should': 0.36; 'list': 0.37; '12,': 0.39; 'even': 0.60; 'remove': 0.60; 'above,': 0.60; 'number,': 0.60; 'course': 0.61; 'name': 0.63; 'confirm': 0.64; 'surrounding': 0.68; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=BtcwqOo57mLZruL1U/IQU0Wewbt4AEN+vNiVDi++LGw=; b=mygv/1fGlFOdr+3A3p+c/S66+84MP+mTmCoZwc0zXS9f9WuGdCaj9Z8R5jBkRjHcla XgCB4c9yf5R9INSAmfjwyFl14w92wJuw574JKE1V/XsQm9uV5orDBTFIO+29icvCPOUi nX/vBTeKY18/aQ5YCCe0TWiPDABxj/sssxT7GHWoAjsWqRmA50umetqiQIGSYkdaGSqt dvL4SLyKNV/6/w1tiUmKvtghpB6/gJf9aRzM7IlqbUh1koNe1/JfHdIG3nXgCpNjYFWN z9gEOfxY2KvDpvPPfLu7BDvdJRQuf8YBryPm9FQ9aFjFxf68BS9noOFjdj9QrFfRNNNc WrAg== MIME-Version: 1.0 X-Received: by 10.68.200.74 with SMTP id jq10mr5369965pbc.169.1392128549553; Tue, 11 Feb 2014 06:22:29 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Feb 2014 01:22:29 +1100 Subject: Re: pip3.x error using LIST instead of list From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392128558 news.xs4all.nl 2854 [2001:888:2000:d::a6]:53445 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65907 On Wed, Feb 12, 2014 at 1:10 AM, Mark Lawrence wrote: > File "C:\Python34\lib\site-packages\pip\__init__.py", line 156, in > parseopts > cmd_args.remove(args_else[0].lower()) > ValueError: list.remove(x): x not in list > > Is this a known problem, should I raise a bug against pip, what is the best > course of action? Hmm, yep. I'd confirm that as a bug. Inspection of the surrounding code suggests that it shouldn't be lowercasing there (a couple of lines above, it fetches out args_else[0].lower(), but to remove it from cmd_args, it should use original case). Search the tracker for it, to see if it already exists; if not, create it. You have the file name and line number, so you could probably even make a patch :) ChrisA