python --version: 3.6.1pip show google-cloud, pip show google-<service> or pip freeze: NothingLogs:
Collecting gapic-google-cloud-datastore-v1<0.16dev,>=0.15.0 (from google-cloud-datastore<2.0dev,>=1.1.0->google-cloud)
Using cached gapic-google-cloud-datastore-v1-0.15.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/setuptools/__init__.py", line 10, in <module>
from setuptools.extern.six.moves import filter, filterfalse, map
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/setuptools/extern/__init__.py", line 1, in <module>
from pkg_resources.extern import VendorImporter
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3017, in <module>
@_call_aside
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside
f(*args, **kwargs)
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3045, in _initialize_master_working_set
dist.activate(replace=False)
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2577, in activate
declare_namespace(pkg)
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2151, in declare_namespace
_handle_ns(packageName, path_item)
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2091, in _handle_ns
_rebuild_mod_path(path, packageName, module)
File "/Users/Vikram/pyenv/py3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2120, in _rebuild_mod_path
orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/_f/95xpdnrx4yncxz91dt53mvfh0000gn/T/pip-build-vct6bb1z/gapic-google-cloud-datastore-v1/
@VikramTiwari Thanks for taking the time to file this issue!
This is a common issue with out of date versions of pip / setuptools. You should update those tools.
That was easy. Thanks. 馃憤
Cheers!
For anyone who comes here, see https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2990#issuecomment-333943013.
Most helpful comment
@VikramTiwari Thanks for taking the time to file this issue!
This is a common issue with out of date versions of
pip/setuptools. You should update those tools.