{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pipenv/issues/3244","repository_url":"https://api.github.com/repos/pypa/pipenv","labels_url":"https://api.github.com/repos/pypa/pipenv/issues/3244/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pipenv/issues/3244/comments","events_url":"https://api.github.com/repos/pypa/pipenv/issues/3244/events","html_url":"https://github.com/pypa/pipenv/issues/3244","id":381702948,"node_id":"MDU6SXNzdWUzODE3MDI5NDg=","number":3244,"title":"Unable to lock from private PyPI","user":{"login":"amancevice","id":157711,"node_id":"MDQ6VXNlcjE1NzcxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/157711?v=4","gravatar_id":"","url":"https://api.github.com/users/amancevice","html_url":"https://github.com/amancevice","followers_url":"https://api.github.com/users/amancevice/followers","following_url":"https://api.github.com/users/amancevice/following{/other_user}","gists_url":"https://api.github.com/users/amancevice/gists{/gist_id}","starred_url":"https://api.github.com/users/amancevice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amancevice/subscriptions","organizations_url":"https://api.github.com/users/amancevice/orgs","repos_url":"https://api.github.com/users/amancevice/repos","events_url":"https://api.github.com/users/amancevice/events{/privacy}","received_events_url":"https://api.github.com/users/amancevice/received_events","type":"User","site_admin":false},"labels":[{"id":541923427,"node_id":"MDU6TGFiZWw1NDE5MjM0Mjc=","url":"https://api.github.com/repos/pypa/pipenv/labels/needs%20more%20information","name":"needs more information","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-11-16T18:00:46Z","updated_at":"2018-11-21T08:54:05Z","closed_at":null,"author_association":"NONE","body":"I am currently unable to lock my Pipfile when using our private PyPI sources on `2018.11.14`. This issue hadn't appeared on prior versions of pipenv. I suppose it's possible that our private PyPI sources are the problem, but I'm not sure what could be happening.\r\n\r\nThis is an example `Pipfile` that causes the error:\r\n\r\n```\r\n[[source]]\r\nurl = \"http://<private-pypi-host>/simple/\"\r\nverify_ssl = false\r\nname = \"private-pypi\"\r\n\r\n[packages]\r\nmoto = \"==1.3.6\"\r\n\r\n[dev-packages]\r\n\r\n[requires]\r\n```\r\n\r\nRunning `pipenv install` yields the following logs:\r\n\r\n```\r\nCreating a virtualenv for this project…\r\nPipfile: /Pipfile\r\nUsing /usr/local/bin/python (3.7.1) to create virtualenv…\r\n✔ Complete \r\nAlready using interpreter /usr/local/bin/python\r\nUsing base prefix '/usr/local'\r\nNew python executable in /root/.local/share/virtualenvs/-x-v5uFv0/bin/python\r\nInstalling setuptools, pip, wheel...\r\ndone.\r\nVirtualenv location: /root/.local/share/virtualenvs/-x-v5uFv0\r\nPipfile.lock not found, creating…\r\nLocking [dev-packages] dependencies…\r\nLocking [packages] dependencies…\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/pexpect/expect.py\", line 109, in expect_loop\r\n    return self.timeout()\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/pexpect/expect.py\", line 82, in timeout\r\n    raise TIMEOUT(msg)\r\npexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f85959d7f98>\r\nsearcher: searcher_re:\r\n    0: re.compile('\\n')\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/pipenv\", line 11, in <module>\r\n    sys.exit(cli())\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py\", line 764, in __call__\r\n    return self.main(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py\", line 717, in main\r\n    rv = self.invoke(ctx)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py\", line 1137, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py\", line 956, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py\", line 555, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py\", line 64, in new_func\r\n    return ctx.invoke(f, obj, *args, **kwargs)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py\", line 555, in invoke\r\n    return callback(*args, **kwargs)\r\n  File \"/usr/local/lib/python3.7/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/lib/python3.7/site-packages/pipenv/cli/command.py\", line 249, in install\r\n    editable_packages=state.installstate.editables,\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/core.py\", line 1872, in do_install\r\n    keep_outdated=keep_outdated\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/core.py\", line 1223, in do_init\r\n    pypi_mirror=pypi_mirror,\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/core.py\", line 1047, in do_lock\r\n    lockfile=lockfile\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/utils.py\", line 620, in venv_resolve_deps\r\n    c = resolve(cmd, sp)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/utils.py\", line 503, in resolve\r\n    result = c.expect(u\"\\n\", timeout=environments.PIPENV_TIMEOUT)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/delegator.py\", line 215, in expect\r\n    self.subprocess.expect(pattern=pattern, timeout=timeout)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/pexpect/spawnbase.py\", line 341, in expect\r\n    timeout, searchwindowsize, async_)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/pexpect/spawnbase.py\", line 369, in expect_list\r\n    return exp.expect_loop(timeout)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/pexpect/expect.py\", line 119, in expect_loop\r\n    return self.timeout(e)\r\n  File \"/usr/local/lib/python3.7/site-packages/pipenv/vendor/pexpect/expect.py\", line 82, in timeout\r\n    raise TIMEOUT(msg)\r\npexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f85959d7f98>\r\nsearcher: searcher_re:\r\n    0: re.compile('\\n')\r\n<pexpect.popen_spawn.PopenSpawn object at 0x7f85959d7f98>\r\nsearcher: searcher_re:\r\n    0: re.compile('\\n')\r\n```\r\n\r\nReplacing the `[[source]]` section with the default appears to resolve the issue, but then I'm unable to install private pips.\r\n\r\n-------------------------------------------------------------------------------\r\n\r\n<details><summary>$ pipenv --support</summary>\r\n\r\nPipenv version: `'2018.11.14'`\r\n\r\nPipenv location: `'/usr/local/lib/python3.7/site-packages/pipenv'`\r\n\r\nPython location: `'/usr/local/bin/python'`\r\n\r\nPython installations found:\r\n\r\n  - `3.7.1`: `/usr/local/bin/python`\r\n  - `3.7.1`: `/usr/local/bin/python3.7m`\r\n  - `3.5.3`: `/usr/bin/python3.5`\r\n  - `3.5.3`: `/usr/bin/python3.5m`\r\n  - `2.7.13`: `/usr/bin/python`\r\n\r\nPEP 508 Information:\r\n\r\n```\r\n{'implementation_name': 'cpython',\r\n 'implementation_version': '3.7.1',\r\n 'os_name': 'posix',\r\n 'platform_machine': 'x86_64',\r\n 'platform_python_implementation': 'CPython',\r\n 'platform_release': '4.9.93-linuxkit-aufs',\r\n 'platform_system': 'Linux',\r\n 'platform_version': '#1 SMP Wed Jun 6 16:55:56 UTC 2018',\r\n 'python_full_version': '3.7.1',\r\n 'python_version': '3.7',\r\n 'sys_platform': 'linux'}\r\n```\r\n\r\nSystem environment variables:\r\n\r\n  - `PATH`\r\n  - `HOSTNAME`\r\n  - `TERM`\r\n  - `LANG`\r\n  - `GPG_KEY`\r\n  - `PYTHON_VERSION`\r\n  - `PYTHON_PIP_VERSION`\r\n  - `HOME`\r\n  - `PIP_DISABLE_PIP_VERSION_CHECK`\r\n  - `PYTHONDONTWRITEBYTECODE`\r\n  - `PIP_SHIMS_BASE_MODULE`\r\n  - `PIP_PYTHON_PATH`\r\n  - `PYTHONFINDER_IGNORE_UNSUPPORTED`\r\n\r\nPipenv–specific environment variables:\r\n\r\n\r\nDebug–specific environment variables:\r\n\r\n  - `PATH`: `/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`\r\n  - `LANG`: `C.UTF-8`\r\n\r\n\r\n---------------------------\r\n\r\nContents of `Pipfile` ('/Pipfile'):\r\n\r\n```toml\r\n[[source]]\r\nurl = \"http://public-pypi.service.dc1.consul/simple/\"\r\nverify_ssl = false\r\nname = \"public-pypi\"\r\n\r\n[packages]\r\nmoto = \"==1.3.6\"\r\n\r\n[dev-packages]\r\n\r\n[requires]\r\n\r\n```\r\n\r\n</details>"},"comment":{"url":"https://api.github.com/repos/pypa/pipenv/issues/comments/440585176","html_url":"https://github.com/pypa/pipenv/issues/3244#issuecomment-440585176","issue_url":"https://api.github.com/repos/pypa/pipenv/issues/3244","id":440585176,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDU4NTE3Ng==","user":{"login":"Juanlu001","id":316517,"node_id":"MDQ6VXNlcjMxNjUxNw==","avatar_url":"https://avatars2.githubusercontent.com/u/316517?v=4","gravatar_id":"","url":"https://api.github.com/users/Juanlu001","html_url":"https://github.com/Juanlu001","followers_url":"https://api.github.com/users/Juanlu001/followers","following_url":"https://api.github.com/users/Juanlu001/following{/other_user}","gists_url":"https://api.github.com/users/Juanlu001/gists{/gist_id}","starred_url":"https://api.github.com/users/Juanlu001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juanlu001/subscriptions","organizations_url":"https://api.github.com/users/Juanlu001/orgs","repos_url":"https://api.github.com/users/Juanlu001/repos","events_url":"https://api.github.com/users/Juanlu001/events{/privacy}","received_events_url":"https://api.github.com/users/Juanlu001/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T08:54:05Z","updated_at":"2018-11-21T08:54:05Z","author_association":"NONE","body":"I had this same traceback with a plain `pipenv install ipyleaflet` (first usage) and, when I ran again the command using `PIPENV_TIMEOUT=3600`, it worked. Just in case it's useful for anybody else."}}
{"actor":{"display_login":"Juanlu001"}}