pip3.x error using LIST instead of list

Asaf Las roegltd at gmail.com
Tue Feb 11 10:25:42 EST 2014


On Tuesday, February 11, 2014 4:10:32 PM UTC+2, 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?
> 
> Mark Lawrence

Python 3.3.3 pip 1.4.1 no problem:
(app1)app1#pip LIST
ecdsa (0.10)
gevent (1.0)
greenlet (0.4.2)
hiredis (0.1.2)
json-rpc (1.2)
lockfile (0.9.1)
lxml (3.2.5)
mysql-connector-python (1.1.5)
paramiko (1.12.1)
pip (1.4.1)
pycrypto (2.6.1)
redis (2.9.0)
requests (2.2.0)
setuptools (0.9.8)
tinyrpc (0.5)
uWSGI (2.0)
WebOb (1.3.1)
Werkzeug (0.9.4)


python 3.3.3 pip 1.5.2 - problem 

(mnp_venv3)mnp_venv3#pip LIST
Traceback (most recent call last):
  File "/opt/smsc/mnp/mnp_venv3/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/opt/smsc/mnp/mnp_venv3/lib/python3.3/site-packages/pip/__init__.py", line 177, in main
    cmd_name, cmd_args = parseopts(initial_args)
  File "/opt/smsc/mnp/mnp_venv3/lib/python3.3/site-packages/pip/__init__.py", line 156, in parseopts
    cmd_args.remove(args_else[0].lower())
ValueError: list.remove(x): x not in list


imho there are ongoing changes in pip due to new features. It could be
due to that. 
imho, at line 156 .lower() should be removed, because of cmd_args holds original
argument list (copied at line 155) got as argument to function parseopts()

/Asaf



More information about the Python-list mailing list