Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #65906 > unrolled thread
| Started by | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| First post | 2014-02-11 14:10 +0000 |
| Last post | 2014-02-11 07:25 -0800 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
pip3.x error using LIST instead of list Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-11 14:10 +0000
Re: pip3.x error using LIST instead of list Asaf Las <roegltd@gmail.com> - 2014-02-11 07:25 -0800
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-02-11 14:10 +0000 |
| Subject | pip3.x error using LIST instead of list |
| Message-ID | <mailman.6667.1392127849.18130.python-list@python.org> |
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?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
[toc] | [next] | [standalone]
| From | Asaf Las <roegltd@gmail.com> |
|---|---|
| Date | 2014-02-11 07:25 -0800 |
| Message-ID | <3dfac1b7-3a38-4a59-8979-53f524d5accc@googlegroups.com> |
| In reply to | #65906 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web