{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pipenv/issues/2305","repository_url":"https://api.github.com/repos/pypa/pipenv","labels_url":"https://api.github.com/repos/pypa/pipenv/issues/2305/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pipenv/issues/2305/comments","events_url":"https://api.github.com/repos/pypa/pipenv/issues/2305/events","html_url":"https://github.com/pypa/pipenv/issues/2305","id":329306365,"node_id":"MDU6SXNzdWUzMjkzMDYzNjU=","number":2305,"title":"pipenv --py raises exception outside of a Pipenv project","user":{"login":"pwalsh","id":791678,"node_id":"MDQ6VXNlcjc5MTY3OA==","avatar_url":"https://avatars0.githubusercontent.com/u/791678?v=4","gravatar_id":"","url":"https://api.github.com/users/pwalsh","html_url":"https://github.com/pwalsh","followers_url":"https://api.github.com/users/pwalsh/followers","following_url":"https://api.github.com/users/pwalsh/following{/other_user}","gists_url":"https://api.github.com/users/pwalsh/gists{/gist_id}","starred_url":"https://api.github.com/users/pwalsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwalsh/subscriptions","organizations_url":"https://api.github.com/users/pwalsh/orgs","repos_url":"https://api.github.com/users/pwalsh/repos","events_url":"https://api.github.com/users/pwalsh/events{/privacy}","received_events_url":"https://api.github.com/users/pwalsh/received_events","type":"User","site_admin":false},"labels":[{"id":956155604,"node_id":"MDU6TGFiZWw5NTYxNTU2MDQ=","url":"https://api.github.com/repos/pypa/pipenv/labels/good%20first%20issue","name":"good first issue","color":"0f158c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-06-05T05:25:48Z","updated_at":"2018-06-06T12:50:05Z","closed_at":"2018-06-06T12:37:08Z","author_association":"CONTRIBUTOR","body":"I'm running latest macOS, latest Homebrew-installed Python (2 and 3), and latest Homebrew installed Pipenv.\r\n\r\n```\r\n$ brew --version\r\nHomebrew 1.6.6-88-gb088302\r\nHomebrew/homebrew-core (git revision 70def; last commit 2018-06-04)\r\n\r\n$ pipenv --version\r\npipenv, version 2018.05.18\r\n\r\n$ python --version\r\nPython 3.6.5\r\n``` \r\n\r\nCompare\r\n\r\n```\r\n$ pipenv --where\r\nNo Pipfile present at project home. Consider running `pipenv install` first to automatically generate a Pipfile for you.\r\n```\r\n\r\n```\r\n$ pipenv --venv\r\nNo virtualenv has been created for this project yet!\r\n```\r\n\r\nwith\r\n\r\n```\r\npipenv --py\r\nTraceback (most recent call last):\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/bin/pipenv\", line 11, in <module>\r\n    load_entry_point('pipenv==2018.5.18', 'console_scripts', 'pipenv')()\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py\", line 722, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py\", line 697, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py\", line 1043, in invoke\r\n    return Command.invoke(self, ctx)\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py\", line 895, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py\", line 535, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py\", line 17, in new_func\r\n    return f(get_current_context(), *args, **kwargs)\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/cli.py\", line 217, in cli\r\n    do_py()\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/core.py\", line 1703, in do_py\r\n    click.echo(which('python', allow_global=system))\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/core.py\", line 121, in which\r\n    location = project.virtualenv_location or os.environ.get('VIRTUAL_ENV')\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/project.py\", line 314, in virtualenv_location\r\n    if not self.is_venv_in_project():\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/lib/python3.6/site-packages/pipenv/project.py\", line 219, in is_venv_in_project\r\n    os.path.exists(os.path.join(self.project_directory, '.venv'))\r\n  File \"/usr/local/Cellar/pipenv/2018.5.18/libexec/bin/../lib/python3.6/posixpath.py\", line 80, in join\r\n    a = os.fspath(a)\r\nTypeError: expected str, bytes or os.PathLike object, not NoneType\r\n```"},"comment":{"url":"https://api.github.com/repos/pypa/pipenv/issues/comments/395056691","html_url":"https://github.com/pypa/pipenv/issues/2305#issuecomment-395056691","issue_url":"https://api.github.com/repos/pypa/pipenv/issues/2305","id":395056691,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTA1NjY5MQ==","user":{"login":"uranusjr","id":605277,"node_id":"MDQ6VXNlcjYwNTI3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/605277?v=4","gravatar_id":"","url":"https://api.github.com/users/uranusjr","html_url":"https://github.com/uranusjr","followers_url":"https://api.github.com/users/uranusjr/followers","following_url":"https://api.github.com/users/uranusjr/following{/other_user}","gists_url":"https://api.github.com/users/uranusjr/gists{/gist_id}","starred_url":"https://api.github.com/users/uranusjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uranusjr/subscriptions","organizations_url":"https://api.github.com/users/uranusjr/orgs","repos_url":"https://api.github.com/users/uranusjr/repos","events_url":"https://api.github.com/users/uranusjr/events{/privacy}","received_events_url":"https://api.github.com/users/uranusjr/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T12:50:05Z","updated_at":"2018-06-06T12:50:05Z","author_association":"COLLABORATOR","body":"It is fixed in master. (BTW the Homebrew formula should probably support `--HEAD`… Someone please work on that). GitHub issues do not have a fixed-but-not-released state, so we close issues when they are fixed in master. Otherwise we won’t be able to know what fixes are already done and what are not, which is more problematic. Please do reopen if you find this to be unfixed in the next version though!"}}
{"actor":{"display_login":"uranusjr"}}