pip3.x error using LIST instead of list
Johannes Findeisen
mailman at hanez.org
Tue Feb 11 09:27:30 EST 2014
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 at 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 at 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 at phantom ~ % pip foo
ERROR: unknown command "foo"
hanez at phantom ~ % pip --version
pip 1.5.2 from /usr/lib64/python2.7/site-packages (python 2.7)
hanez at phantom ~ %
More information about the Python-list
mailing list