{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/5889","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/5889/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/5889/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/5889/events","html_url":"https://github.com/pypa/pip/issues/5889","id":370671550,"node_id":"MDU6SXNzdWUzNzA2NzE1NTA=","number":5889,"title":"AttributeError: 'NoneType' object has no attribute 'netloc'","user":{"login":"WeatherGod","id":291576,"node_id":"MDQ6VXNlcjI5MTU3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/291576?v=4","gravatar_id":"","url":"https://api.github.com/users/WeatherGod","html_url":"https://github.com/WeatherGod","followers_url":"https://api.github.com/users/WeatherGod/followers","following_url":"https://api.github.com/users/WeatherGod/following{/other_user}","gists_url":"https://api.github.com/users/WeatherGod/gists{/gist_id}","starred_url":"https://api.github.com/users/WeatherGod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeatherGod/subscriptions","organizations_url":"https://api.github.com/users/WeatherGod/orgs","repos_url":"https://api.github.com/users/WeatherGod/repos","events_url":"https://api.github.com/users/WeatherGod/events{/privacy}","received_events_url":"https://api.github.com/users/WeatherGod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-16T15:31:31Z","updated_at":"2018-10-16T20:59:32Z","closed_at":null,"author_association":"NONE","body":"**Environment**\r\n\r\n* pip version: 18.1\r\n* Python version: 3.6\r\n* OS: linux\r\n\r\n**Description**\r\nI am using a fresh conda environment (most packages from conda-forge), pip 18.1, python 3.6, and linux. I am utilizing the new PEP508 syntax for installing private packages from our internal gitlab server (anonymized below). I added some print statements that I hope will be helpful:\r\n\r\n```\r\n$ pip install -e .\r\nObtaining file:///nas/home/broot/Programs/tools/catutils\r\nreq: shapely\r\ncomes_from: catutils==0.15.dev1 from file:///nas/home/broot/Programs/tools/catutils\r\nreq: netCDF4\r\ncomes_from: catutils==0.15.dev1 from file:///nas/home/broot/Programs/tools/catutils\r\nreq: aershp>=0.10\r\ncomes_from: catutils==0.15.dev1 from file:///nas/home/broot/Programs/tools/catutils\r\nreq: numpy!=1.10,!=1.11.0\r\ncomes_from: catutils==0.15.dev1 from file:///nas/home/broot/Programs/tools/catutils\r\nreq: scipy\r\ncomes_from: catutils==0.15.dev1 from file:///nas/home/broot/Programs/tools/catutils\r\nreq: GDAL\r\ncomes_from: catutils==0.15.dev1 from file:///nas/home/broot/Programs/tools/catutils\r\nRequirement already satisfied: shapely in /rd22/scratch/broot/miniconda/envs/py3k/lib/python3.6/site-packages (from catutils==0.15.dev1) (1.6.4.post1)\r\nRequirement already satisfied: netCDF4 in /rd22/scratch/broot/miniconda/envs/py3k/lib/python3.6/site-packages (from catutils==0.15.dev1) (1.4.1)\r\nreq: numpy>=1.7\r\ncomes_from: netCDF4 in /rd22/scratch/broot/miniconda/envs/py3k/lib/python3.6/site-packages (from catutils==0.15.dev1)\r\nreq: cftime\r\ncomes_from: netCDF4 in /rd22/scratch/broot/miniconda/envs/py3k/lib/python3.6/site-packages (from catutils==0.15.dev1)\r\nRequirement already satisfied: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1) (0.16.dev1)\r\nreq: nose\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: numpy\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: matplotlib<2.2.0\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: Shapely\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: GDAL\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: pyyaml\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: jinja2\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: scripttest\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: netCDF4\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: six\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nreq: atomic_context@ git+ssh://git@***********.com/common/atomic_context.git@release\r\ncomes_from: aershp>=0.10 in /nas/home/broot/Programs/tools/aershp/lib (from catutils==0.15.dev1)\r\nException:\r\nTraceback (most recent call last):\r\n  File \"/home/broot/scratch/miniconda/envs/py3k/lib/python3.6/site-packages/pip/_internal/cli/base_command.py\", line 143, in main\r\n    status = self.run(options, args)\r\n  File \"/home/broot/scratch/miniconda/envs/py3k/lib/python3.6/site-packages/pip/_internal/commands/install.py\", line 318, in run\r\n    resolver.resolve(requirement_set)\r\n  File \"/home/broot/scratch/miniconda/envs/py3k/lib/python3.6/site-packages/pip/_internal/resolve.py\", line 102, in resolve\r\n    self._resolve_one(requirement_set, req)\r\n  File \"/home/broot/scratch/miniconda/envs/py3k/lib/python3.6/site-packages/pip/_internal/resolve.py\", line 318, in _resolve_one\r\n    add_req(subreq, extras_requested=available_requested)\r\n  File \"/home/broot/scratch/miniconda/envs/py3k/lib/python3.6/site-packages/pip/_internal/resolve.py\", line 275, in add_req\r\n    wheel_cache=self.wheel_cache,\r\n  File \"/home/broot/scratch/miniconda/envs/py3k/lib/python3.6/site-packages/pip/_internal/req/constructors.py\", line 290, in install_req_from_req\r\n    if req.url and comes_from.link.netloc in domains_not_allowed:\r\nAttributeError: 'NoneType' object has no attribute 'netloc'\r\n```\r\nA bit of explanation of my dependency tree. I am installing a package called \"catutils\". It has a dependency on another private package called \"aershp\". That package, in turn, has a dependency upon two other private, pure-python, packages called \"ncxml\" and \"atomic_context\". I installed \"aershp\" via \"pip install -e .\", and it fetched the other two packages from our gitlab server. This failure happened when I tried doing \"pip install -e .\" for the catutils package.\r\n\r\nSome additional insights. I have gone back and reinstalled (`pip install -e .`) the \"atomic_context\" and the \"ncxml\" packages. I then `pip uninstall aershp`, and then did `pip install -e .`. This failed for some odd reason:\r\n```  Could not find a version that satisfies the requirement aershp>=0.10 (from catutils==0.15.dev1) (from versions: )```\r\nSo, I then did a `pip uninstall catutils`: which said that it was skipping it because it is not installed (as expected), but then went back to the \"aershp\" package and redid `pip install -e .`, and instead of the unsatisfiable error, I got the same error as originally posted above."},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/430398710","html_url":"https://github.com/pypa/pip/issues/5889#issuecomment-430398710","issue_url":"https://api.github.com/repos/pypa/pip/issues/5889","id":430398710,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDM5ODcxMA==","user":{"login":"cjerdonek","id":355822,"node_id":"MDQ6VXNlcjM1NTgyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/355822?v=4","gravatar_id":"","url":"https://api.github.com/users/cjerdonek","html_url":"https://github.com/cjerdonek","followers_url":"https://api.github.com/users/cjerdonek/followers","following_url":"https://api.github.com/users/cjerdonek/following{/other_user}","gists_url":"https://api.github.com/users/cjerdonek/gists{/gist_id}","starred_url":"https://api.github.com/users/cjerdonek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjerdonek/subscriptions","organizations_url":"https://api.github.com/users/cjerdonek/orgs","repos_url":"https://api.github.com/users/cjerdonek/repos","events_url":"https://api.github.com/users/cjerdonek/events{/privacy}","received_events_url":"https://api.github.com/users/cjerdonek/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T20:59:32Z","updated_at":"2018-10-16T20:59:32Z","author_association":"MEMBER","body":"It looks like this was caused by code introduced in PR #5571."}}
{"actor":{"display_login":"cjerdonek"}}