Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65907 > unrolled thread

Re: pip3.x error using LIST instead of list

Started byChris Angelico <rosuav@gmail.com>
First post2014-02-12 01:22 +1100
Last post2014-02-12 01:22 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: pip3.x error using LIST instead of list Chris Angelico <rosuav@gmail.com> - 2014-02-12 01:22 +1100

#65907 — Re: pip3.x error using LIST instead of list

FromChris Angelico <rosuav@gmail.com>
Date2014-02-12 01:22 +1100
SubjectRe: pip3.x error using LIST instead of list
Message-ID<mailman.6668.1392128558.18130.python-list@python.org>
On Wed, Feb 12, 2014 at 1:10 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web