Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install failing #3581

Closed
VikramTiwari opened this issue Jul 5, 2017 · 4 comments
Closed

pip install failing #3581

VikramTiwari opened this issue Jul 5, 2017 · 4 comments
Assignees

Comments

@VikramTiwari
Copy link
Contributor

  1. OS type and version: macOS Sierra v10.12.5
  2. Python version and virtual environment information python --version: 3.6.1
  3. google-cloud-python version pip show google-cloud, pip show google-<service> or pip freeze: Nothing
  4. Stacktrace if available: added
  5. Steps to reproduce: Try installing it with Python 3.
  6. Code example: None

Logs:

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/
@dhermes
Copy link
Contributor

dhermes commented Jul 5, 2017

@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.

@VikramTiwari
Copy link
Contributor Author

That was easy. Thanks. 👍

@dhermes
Copy link
Contributor

dhermes commented Jul 5, 2017

Cheers!

@dhermes
Copy link
Contributor

dhermes commented Oct 3, 2017

For anyone who comes here, see #2990 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants