Error message when installing via `pip`
See original GitHub issueHey, something is going on when installing awscli-local
via pip
:
docker run -ti --entrypoint bash python
root@dbb55d128863:/# pip install awscli-local
Collecting awscli-local
Downloading awscli-local-0.12.tar.gz (5.0 kB)
Collecting localstack-client
Downloading localstack-client-1.10.tar.gz (4.3 kB)
Collecting boto3
Downloading boto3-1.16.40-py2.py3-none-any.whl (130 kB)
|ββββββββββββββββββββββββββββββββ| 130 kB 1.8 MB/s
Collecting botocore<1.20.0,>=1.19.40
Downloading botocore-1.19.40-py2.py3-none-any.whl (7.1 MB)
|ββββββββββββββββββββββββββββββββ| 7.1 MB 15.5 MB/s
Collecting jmespath<1.0.0,>=0.7.1
Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting python-dateutil<3.0.0,>=2.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
|ββββββββββββββββββββββββββββββββ| 227 kB 11.9 MB/s
Collecting s3transfer<0.4.0,>=0.3.0
Downloading s3transfer-0.3.3-py2.py3-none-any.whl (69 kB)
|ββββββββββββββββββββββββββββββββ| 69 kB 8.5 MB/s
Collecting six>=1.5
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting urllib3<1.27,>=1.25.4
Downloading urllib3-1.26.2-py2.py3-none-any.whl (136 kB)
|ββββββββββββββββββββββββββββββββ| 136 kB 27.7 MB/s
Building wheels for collected packages: awscli-local, localstack-client
Building wheel for awscli-local (setup.py) ... done
Created wheel for awscli-local: filename=awscli_local-0.12-py3-none-any.whl size=4529 sha256=5f0fb63be73b03ae5b4ca544438f7bc294c1d1ccc958eaefe6839a395728a665
Stored in directory: /root/.cache/pip/wheels/ce/35/2f/26fb372ab125cb51548b95876ac844fda1c311455770e9b73c
Building wheel for localstack-client (setup.py) ... done
Created wheel for localstack-client: filename=localstack_client-1.10-py3-none-any.whl size=3809 sha256=8f76b99d892cc75c5cf02a97b61e3000011a4ded27392b71a88bc2b457c4998e
Stored in directory: /root/.cache/pip/wheels/5e/ed/92/4f85adb3f58631a730c35d08bdad0fe7a6d0c48b8456e522f8
Successfully built awscli-local localstack-client
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3021, in _dep_map
return self.__dep_map
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2815, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 517, in _determine_conflicts
return check_install_conflicts(to_install)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/operations/check.py", line 107, in check_install_conflicts
would_be_installed = _simulate_installation_of(to_install, package_set)
File "/usr/local/lib/python3.9/site-packages/pip/_internal/operations/check.py", line 135, in _simulate_installation_of
package_set[name] = PackageDetails(dist.version, dist.requires())
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2736, in requires
dm = self._dep_map
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3023, in _dep_map
self.__dep_map = self._compute_dependencies()
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3040, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pkg_resources/__init__.py", line 3037, in reqs_for_extra
if not req.marker or req.marker.evaluate({'extra': extra}):
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/packaging/markers.py", line 328, in evaluate
return _evaluate_markers(self._markers, current_environment)
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/packaging/markers.py", line 250, in _evaluate_markers
groups[-1].append(_eval_op(lhs_value, op, rhs_value))
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/packaging/markers.py", line 201, in _eval_op
return spec.contains(lhs)
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/packaging/specifiers.py", line 206, in contains
normalized_item = self._coerce_version(item)
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/packaging/specifiers.py", line 170, in _coerce_version
version = parse(version)
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/packaging/version.py", line 57, in parse
return Version(version)
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/packaging/version.py", line 296, in __init__
match = self._regex.search(version)
TypeError: expected string or bytes-like object
Installing collected packages: six, urllib3, python-dateutil, jmespath, botocore, s3transfer, boto3, localstack-client, awscli-local
Successfully installed awscli-local-0.12 boto3-1.16.40 botocore-1.19.40 jmespath-0.10.0 localstack-client-1.10 python-dateutil-2.8.1 s3transfer-0.3.3 six-1.15.0 urllib3-1.26.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error found when installing pip on Windows - Stack Overflow
Open a command prompt window and navigate to the folder containing get-pip.py. Then run python get-pip.py. This will install pip.
Read more >pip install error - python - Ask Ubuntu
You are installing pip with sudo but its using your user's home folder's python staging area. This can cause issues later on where...
Read more >How To Fix PIP Install Not Working? - TechNewsToday
The most common reasons for issues with PIP installations is either that an incorrect PIP path is added to the PATH system variable,...
Read more >How to Fix 'Pip' is Not Recognized as an Internal or External ...
This error usually means there's a problem with the Python installation or the system variable PATH is not set up correctly. Try reinstallingΒ ......
Read more >How to Install Pip on Windows - ActiveState
One of the most common problems with running Python tools like pip is the βnot on PATHβ error. This means that Python cannot...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you force the previous version the installation works fine
Thanks for reporting @lucianoqueiroz @microngust . Looks like this was related to an incompatibility with some newer
pip
versions - the issue should be fixed in the meantime, new version0.13
has been released. Please report here if the problem persists. Thanks