{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/2897","labels_url":"https://api.github.com/repos/pypa/pip/issues/2897/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/2897/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/2897/events","html_url":"https://github.com/pypa/pip/issues/2897","id":87330079,"number":2897,"title":"Using PIP_NO_CACHE_DIR raises exception","user":{"login":"rhcarvalho","id":88819,"avatar_url":"https://avatars.githubusercontent.com/u/88819?v=3","gravatar_id":"","url":"https://api.github.com/users/rhcarvalho","html_url":"https://github.com/rhcarvalho","followers_url":"https://api.github.com/users/rhcarvalho/followers","following_url":"https://api.github.com/users/rhcarvalho/following{/other_user}","gists_url":"https://api.github.com/users/rhcarvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/rhcarvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhcarvalho/subscriptions","organizations_url":"https://api.github.com/users/rhcarvalho/orgs","repos_url":"https://api.github.com/users/rhcarvalho/repos","events_url":"https://api.github.com/users/rhcarvalho/events{/privacy}","received_events_url":"https://api.github.com/users/rhcarvalho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T12:32:31Z","updated_at":"2015-06-24T01:43:13Z","closed_at":null,"body":"This is related to #2855 and #2856.\r\n#2856 fixed the exception when using `--no-cache-dir` flag, but using the equivalent env var still doesn't work:\r\n\r\n```\r\n$ PIP_NO_CACHE_DIR=1 pip install gunicorn\r\nException:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.3/site-packages/pip-7.0.3-py3.3.egg/pip/basecommand.py\", line 223, in main\r\n    status = self.run(options, args)\r\n  File \"/usr/lib/python3.3/site-packages/pip-7.0.3-py3.3.egg/pip/commands/install.py\", line 242, in run\r\n    with self._build_session(options) as session:\r\n  File \"/usr/lib/python3.3/site-packages/pip-7.0.3-py3.3.egg/pip/basecommand.py\", line 71, in _build_session\r\n    if options.cache_dir else None\r\n  File \"/usr/lib64/python3.3/posixpath.py\", line 82, in join\r\n    elif not path or path.endswith(sep):\r\nAttributeError: 'int' object has no attribute 'endswith'\r\n```"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/114695758","html_url":"https://github.com/pypa/pip/issues/2897#issuecomment-114695758","issue_url":"https://api.github.com/repos/pypa/pip/issues/2897","id":114695758,"user":{"login":"dstufft","id":145979,"avatar_url":"https://avatars.githubusercontent.com/u/145979?v=3","gravatar_id":"","url":"https://api.github.com/users/dstufft","html_url":"https://github.com/dstufft","followers_url":"https://api.github.com/users/dstufft/followers","following_url":"https://api.github.com/users/dstufft/following{/other_user}","gists_url":"https://api.github.com/users/dstufft/gists{/gist_id}","starred_url":"https://api.github.com/users/dstufft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstufft/subscriptions","organizations_url":"https://api.github.com/users/dstufft/orgs","repos_url":"https://api.github.com/users/dstufft/repos","events_url":"https://api.github.com/users/dstufft/events{/privacy}","received_events_url":"https://api.github.com/users/dstufft/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T01:43:13Z","updated_at":"2015-06-24T01:43:13Z","body":"I think you want ``PIP_NO_CACHE_DIR=off``."}}