久しぶりにOSXでpython環境を作成したところ、
いきなりpip listでAssertionError
追記 2013-10-06 Debian 7.1でも同様のAssertionErrorを確認
$ pip list distribute (0.6.49) pip (1.4.1) Exception: Traceback (most recent call last): File "/Users/foo/.pythonz/pythons/CPython-3.3.2/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/Users/foo/.pythonz/pythons/CPython-3.3.2/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/commands/list.py", line 80, in run self.run_listing(options) File "/Users/foo/.pythonz/pythons/CPython-3.3.2/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/commands/list.py", line 127, in run_listing self.output_package_listing(installed_packages) File "/Users/foo/.pythonz/pythons/CPython-3.3.2/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/commands/list.py", line 136, in output_package_listing if dist_is_editable(dist): File "/Users/foo/.pythonz/pythons/CPython-3.3.2/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/util.py", line 347, in dist_is_editable req = FrozenRequirement.from_dist(dist, []) File "/Users/foo/.pythonz/pythons/CPython-3.3.2/lib/python3.3/site-packages/pip-1.4.1-py3.3.egg/pip/__init__.py", line 194, in from_dist assert len(specs) == 1 and specs[0][0] == '==' AssertionError
もうstackoverflowなしじゃ生きていけない・・・
http://stackoverflow.com/questions/18542633/pip-list-error-124-installing-on-mac-os-x
というわけで、distributeをアップデートして対策完了
$ pip install -U distribute $ pip list distribute (0.7.3) pip (1.4.1) setuptools (0.6c11) stevedore (0.12) virtualenv (1.10.1) virtualenv-clone (0.2.4) virtualenvwrapper (4.1.1)
0 件のコメント:
コメントを投稿