{"action":"opened","issue":{"url":"https://api.github.com/repos/pypa/pipenv/issues/1645","repository_url":"https://api.github.com/repos/pypa/pipenv","labels_url":"https://api.github.com/repos/pypa/pipenv/issues/1645/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pipenv/issues/1645/comments","events_url":"https://api.github.com/repos/pypa/pipenv/issues/1645/events","html_url":"https://github.com/pypa/pipenv/issues/1645","id":303979200,"number":1645,"title":"Pipenv fails to install dependencies for pytest on CircleCI","user":{"login":"maxalbert","id":2692805,"avatar_url":"https://avatars0.githubusercontent.com/u/2692805?v=4","gravatar_id":"","url":"https://api.github.com/users/maxalbert","html_url":"https://github.com/maxalbert","followers_url":"https://api.github.com/users/maxalbert/followers","following_url":"https://api.github.com/users/maxalbert/following{/other_user}","gists_url":"https://api.github.com/users/maxalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/maxalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxalbert/subscriptions","organizations_url":"https://api.github.com/users/maxalbert/orgs","repos_url":"https://api.github.com/users/maxalbert/repos","events_url":"https://api.github.com/users/maxalbert/events{/privacy}","received_events_url":"https://api.github.com/users/maxalbert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T21:02:41Z","updated_at":"2018-03-09T21:02:41Z","closed_at":null,"author_association":"NONE","body":"I ran into this issue on CircleCI in a private repo which runs tests using `pytest`, and where `pytest` and the other dependencies are installed using `pipenv`.\r\n\r\nUntil recently this worked fine and the CircleCI build passed. However, after a push to this repo today the CirlcleCI build now fails to install the dependencies for `pytest` - when trying to run `pytest` it complains about the missing module `six`.\r\n\r\nStrangely, I can't reproduce this issue on a local machine, but it definitely fails on CircleCI (see link to minimal repo reproducing the error below). I'm not sure if it's specific to CircleCI or simply due to some differences in the setup.\r\n\r\n##### Describe your environment\r\n\r\nHere is the CirleCI build environment:\r\n\r\n1. OS Type: Debian GNU/Linux 8\r\n2. Python version: 3.6.4\r\n3. Pipenv version: 11.1.11\r\n\r\n##### Expected result\r\n\r\n```\r\n$ pipenv run pytest --version\r\nThis is pytest version 3.4.2, imported from /home/circleci/.local/share/virtualenvs/project-zxI9dQ-Q/lib/python3.6/site-packages/pytest.py\r\n```\r\n\r\n##### Actual result\r\n\r\n```\r\n$ pipenv run pytest --version\r\nTraceback (most recent call last):\r\n  File \"/home/circleci/.local/share/virtualenvs/project-zxI9dQ-Q/bin/pytest\", line 7, in <module>\r\n    from pytest import main\r\n  File \"/home/circleci/.local/share/virtualenvs/project-zxI9dQ-Q/lib/python3.6/site-packages/pytest.py\", line 9, in <module>\r\n    from _pytest.config import (\r\n  File \"/home/circleci/.local/share/virtualenvs/project-zxI9dQ-Q/lib/python3.6/site-packages/_pytest/config.py\", line 9, in <module>\r\n    import six\r\nModuleNotFoundError: No module named 'six'\r\n```\r\n\r\n##### Steps to replicate\r\n\r\nHere is a [minimal repo](https://github.com/maxalbert/pipenv_bug) which reproduces the failure.\r\nThe output of a failing CircleCI test run can be seen [here](https://circleci.com/gh/maxalbert/pipenv_bug/13).\r\n\r\nThe CircleCI [config file](https://github.com/maxalbert/pipenv_bug/blob/master/.circleci/config.yml) in this repo runs the following steps:\r\n- Install `pipenv` and `virtualenv`\r\n- Run `pipenv install`, which should install `pytest` and its dependencies\r\n- Run `pytest --version` to verify that `pytest` was installed correctly and can be run (this is the step that fails)\r\n\r\nThis is the Pipfile used:\r\n```\r\n[[source]]\r\n\r\nurl = \"https://pypi.python.org/simple\"\r\nverify_ssl = true\r\nname = \"pypi\"\r\n\r\n\r\n[packages]\r\n\r\npytest = \"==3.4.2\"\r\n\r\n\r\n[requires]\r\n\r\npython_version = \"3.6\"\r\n```\r\n\r\nAnd here is the `Pipfile.lock` which is generated by `pipenv install`:\r\n```\r\n{\r\n    \"_meta\": {\r\n        \"hash\": {\r\n            \"sha256\": \"748122aab9868a7d99e975aaf09590e4f055778cb44e01aa11039d8d9bc2d2bf\"\r\n        },\r\n        \"pipfile-spec\": 6,\r\n        \"requires\": {\r\n            \"python_version\": \"3.6\"\r\n        },\r\n        \"sources\": [\r\n            {\r\n                \"name\": \"pypi\",\r\n                \"url\": \"https://pypi.python.org/simple\",\r\n                \"verify_ssl\": true\r\n            }\r\n        ]\r\n    },\r\n    \"default\": {\r\n        \"pytest\": {\r\n            \"hashes\": [\r\n                \"sha256:062027955bccbc04d2fcd5d79690947e018ba31abe4c90b2c6721abec734261b\",\r\n                \"sha256:117bad36c1a787e1a8a659df35de53ba05f9f3398fb9e4ac17e80ad5903eb8c5\"\r\n            ],\r\n            \"version\": \"==3.4.2\"\r\n        }\r\n    },\r\n    \"develop\": {}\r\n}\r\n```"}}
{"actor":{"display_login":"maxalbert"}}