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


Groups > comp.lang.python > #65909

Re: pip3.x error using LIST instead of list

Date 2014-02-11 15:27 +0100
From Johannes Findeisen <mailman@hanez.org>
Subject Re: pip3.x error using LIST instead of list
References <lddb0e$410$1@ger.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.6669.1392128859.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, 11 Feb 2014 14:10:32 +0000
Mark Lawrence wrote:

> As the subject line says, details below.
> 
> c:\Python34\Scripts>pip3.4 LIST
> Traceback (most recent call last):
>    File "C:\Python34\lib\runpy.py", line 189, in _run_module_as_main
>      "__main__", mod_spec)
>    File "C:\Python34\lib\runpy.py", line 87, in _run_code
>      exec(code, run_globals)
>    File "c:\Python34\Scripts\pip3.4.exe\__main__.py", line 9, in <module>
>    File "C:\Python34\lib\site-packages\pip\__init__.py", line 177, in main
>      cmd_name, cmd_args = parseopts(initial_args)
>    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?

Hi, I get the same error with an older release of pip. But, I get that
error regardless which uppercase argument I am passing to pip. Look
below:

hanez@phantom ~ % pip LIST     
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/pip", line 9, in <module>
    load_entry_point('pip==1.5.2', 'console_scripts', 'pip')()
  File "/usr/lib64/python2.7/site-packages/pip/__init__.py", line 177,
 in main cmd_name, cmd_args = parseopts(initial_args)
  File "/usr/lib64/python2.7/site-packages/pip/__init__.py", line 156,
 in parseopts cmd_args.remove(args_else[0].lower())
ValueError: list.remove(x): x not in list
hanez@phantom ~ % pip FOO 
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/pip", line 9, in <module>
    load_entry_point('pip==1.5.2', 'console_scripts', 'pip')()
  File "/usr/lib64/python2.7/site-packages/pip/__init__.py", line 177,
 in main cmd_name, cmd_args = parseopts(initial_args)
  File "/usr/lib64/python2.7/site-packages/pip/__init__.py", line 156,
 in parseopts cmd_args.remove(args_else[0].lower())
ValueError: list.remove(x): x not in list
hanez@phantom ~ % pip foo
ERROR: unknown command "foo"
hanez@phantom ~ % pip --version
pip 1.5.2 from /usr/lib64/python2.7/site-packages (python 2.7)
hanez@phantom ~ % 

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: pip3.x error using LIST instead of list Johannes Findeisen <mailman@hanez.org> - 2014-02-11 15:27 +0100

csiph-web