{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2990","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2990/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2990/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2990/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2990","id":206401955,"node_id":"MDU6SXNzdWUyMDY0MDE5NTU=","number":2990,"title":"AttributeError: '_NamespacePath' object has no attribute 'sort'","user":{"login":"Rockyyost","id":1177963,"node_id":"MDQ6VXNlcjExNzc5NjM=","avatar_url":"https://avatars3.githubusercontent.com/u/1177963?v=4","gravatar_id":"","url":"https://api.github.com/users/Rockyyost","html_url":"https://github.com/Rockyyost","followers_url":"https://api.github.com/users/Rockyyost/followers","following_url":"https://api.github.com/users/Rockyyost/following{/other_user}","gists_url":"https://api.github.com/users/Rockyyost/gists{/gist_id}","starred_url":"https://api.github.com/users/Rockyyost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rockyyost/subscriptions","organizations_url":"https://api.github.com/users/Rockyyost/orgs","repos_url":"https://api.github.com/users/Rockyyost/repos","events_url":"https://api.github.com/users/Rockyyost/events{/privacy}","received_events_url":"https://api.github.com/users/Rockyyost/received_events","type":"User","site_admin":false},"labels":[{"id":131855319,"node_id":"MDU6TGFiZWwxMzE4NTUzMTk=","url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/packaging","name":"packaging","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2017-02-09T04:36:44Z","updated_at":"2018-09-06T02:11:19Z","closed_at":"2017-02-24T04:29:52Z","author_association":"NONE","body":"1. Ubuntu 16.04.1 LTS \r\n2. Python 3.5.2 :: Anaconda 4.2.0 (64-bit)\r\n\r\n\r\nI was trying install with **pip install --upgrade google-cloud** but I get the following **AttributeError: '_NamespacePath' object has no attribute 'sort'**\r\n\r\nBelow is the stack trace:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/ubuntu/anaconda3/bin/pip\", line 7, in <module>\r\n    from pip import main\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/__init__.py\", line 26, in <module>\r\n    from pip.utils import get_installed_distributions, get_prog\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/utils/__init__.py\", line 27, in <module>\r\n    from pip._vendor import pkg_resources\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3018, in <module>\r\n    @_call_aside\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3004, in _call_aside\r\n    f(*args, **kwargs)\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 3046, in _initialize_master_working_set\r\n    dist.activate(replace=False)\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2578, in activate\r\n    declare_namespace(pkg)\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2152, in declare_namespace\r\n    _handle_ns(packageName, path_item)\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2092, in _handle_ns\r\n    _rebuild_mod_path(path, packageName, module)\r\n  File \"/home/ubuntu/anaconda3/lib/python3.5/site-packages/pip/_vendor/pkg_resources/__init__.py\", line 2121, in _rebuild_mod_path\r\n    orig_path.sort(key=position_in_sys_path)\r\nAttributeError: '_NamespacePath' object has no attribute 'sort'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/comments/418940622","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2990#issuecomment-418940622","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2990","id":418940622,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODk0MDYyMg==","user":{"login":"user-ZJ","id":18502662,"node_id":"MDQ6VXNlcjE4NTAyNjYy","avatar_url":"https://avatars0.githubusercontent.com/u/18502662?v=4","gravatar_id":"","url":"https://api.github.com/users/user-ZJ","html_url":"https://github.com/user-ZJ","followers_url":"https://api.github.com/users/user-ZJ/followers","following_url":"https://api.github.com/users/user-ZJ/following{/other_user}","gists_url":"https://api.github.com/users/user-ZJ/gists{/gist_id}","starred_url":"https://api.github.com/users/user-ZJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/user-ZJ/subscriptions","organizations_url":"https://api.github.com/users/user-ZJ/orgs","repos_url":"https://api.github.com/users/user-ZJ/repos","events_url":"https://api.github.com/users/user-ZJ/events{/privacy}","received_events_url":"https://api.github.com/users/user-ZJ/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T02:11:19Z","updated_at":"2018-09-06T02:11:19Z","author_association":"NONE","body":"I also have the same problem when I use python3.5 to build tensorflow.But I user this command to resolve it.\r\npip3 install --user --upgrade pip setuptools"}}
{"actor":{"display_login":"user-ZJ"}}