You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to install awscli under Ubuntu 16.04 and python 3.5.1 (pip3) or python 2.7.11 (pip) I get the VersionConflict exception raised:
root@jeff-desktop:~# pip install awscli
Collecting awscli
Downloading awscli-1.10.43-py2.py3-none-any.whl (969kB)
100% |████████████████████████████████| 972kB 1.9MB/s
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1006, in check_if_exists
self.satisfied_by = pkg_resources.get_distribution(str(no_marker))
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 535, in get_distribution
dist = get_provider(dist)
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 415, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py", line 695, in find
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (colorama 0.3.7 (/usr/lib/python3/dist-packages), Requirement.parse('colorama<=0.3.3,>=0.2.5'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 328, in run
wb.build(autobuilding=True)
File "/usr/lib/python3/dist-packages/pip/wheel.py", line 748, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 448, in _prepare_file
req_to_install, finder)
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 387, in _check_skip_installed
req_to_install.check_if_exists()
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1011, in check_if_exists
self.req.project_name
AttributeError: 'Requirement' object has no attribute 'project_name'
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@jeff-desktop:~#
I looked at colorama, it's up to 0.3.7 and it's kinda frustrating that this should crash over such a minor feature. I got version 0.3.3 from https://pypi.python.org/pypi/colorama/0.3.3, untar'd it, ran python setup.py install. Then I ran pip install awscli and that worked properly.
The text was updated successfully, but these errors were encountered:
I didn't think of downgrading via pip, so I don't know the answer. Is that
an important enough question that I should try the experiment?
My thinking at the moment is that however I downgraded colorama, that was
the work around to the problem. Yes, in retrospect I probably did do it
the hard way, but it's done now.
I don't have a lot of expertise in some of the finer things you can do with
pip. If you want me to, I can restore colorama to its original state,
verify that the problem returns, then use pip to downgrade, and verify that
that solves the issue. That does seem like a lot of work. But I defer to
your expertise - if you want me to do it, then I will do it.
This uses the `strip` argument to preserve the previous behavior
of colorizing when output is redirected.
Fixesaws#2043Resolvesaws#2037Resolvesaws#1742
When I try to install awscli under Ubuntu 16.04 and python 3.5.1 (pip3) or python 2.7.11 (pip) I get the VersionConflict exception raised:
I looked at colorama, it's up to 0.3.7 and it's kinda frustrating that this should crash over such a minor feature. I got version 0.3.3 from https://pypi.python.org/pypi/colorama/0.3.3, untar'd it, ran
python setup.py install
. Then I ranpip install awscli
and that worked properly.The text was updated successfully, but these errors were encountered: