pip3.x error using LIST instead of list

M

Mark Lawrence

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?
 
A

Asaf Las

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top