{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pipenv/issues/1816","repository_url":"https://api.github.com/repos/pypa/pipenv","labels_url":"https://api.github.com/repos/pypa/pipenv/issues/1816/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pipenv/issues/1816/comments","events_url":"https://api.github.com/repos/pypa/pipenv/issues/1816/events","html_url":"https://github.com/pypa/pipenv/issues/1816","id":307317516,"number":1816,"title":"`pipenv install XYZ` command sometimes hangs indefinitely at \"Locking [packages] dependencies\"","user":{"login":"MarenstainBear","id":33665154,"avatar_url":"https://avatars3.githubusercontent.com/u/33665154?v=4","gravatar_id":"","url":"https://api.github.com/users/MarenstainBear","html_url":"https://github.com/MarenstainBear","followers_url":"https://api.github.com/users/MarenstainBear/followers","following_url":"https://api.github.com/users/MarenstainBear/following{/other_user}","gists_url":"https://api.github.com/users/MarenstainBear/gists{/gist_id}","starred_url":"https://api.github.com/users/MarenstainBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarenstainBear/subscriptions","organizations_url":"https://api.github.com/users/MarenstainBear/orgs","repos_url":"https://api.github.com/users/MarenstainBear/repos","events_url":"https://api.github.com/users/MarenstainBear/events{/privacy}","received_events_url":"https://api.github.com/users/MarenstainBear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-21T16:19:09Z","updated_at":"2018-03-22T17:25:54Z","closed_at":null,"author_association":"NONE","body":"Similar to these issues: \r\n\r\n- https://github.com/pypa/pipenv/issues/356\r\n- https://github.com/pypa/pipenv/issues/278\r\n\r\n##### Summary\r\nWhen using `pipenv install XYZ`, the process hangs indefinitely at \"Locking [packages] dependencies\".\r\n\r\nThis doesn't happen every time, and may be related to which package is being installed. This morning it is happening every time I try to install tensorflow. Last night it was happening for numpy as well, but today numpy is fine.\r\n\r\nThe hanged response seems to last indefinitely (though I did manually terminate the process after an hour). The Pipfile.lock is not written, but the Pipfile is written and the expected packages are installed and listed when I run `pipenv run pip freeze`.\r\n\r\nI was able to reproduce this using various permutations of:\r\n\r\n- (L)ubuntu 16.04 and (X)ubuntu 17.10\r\n- `pipenv --three` and `pipenv --two`\r\n- pipenv installed through python 2.7 and pipenv installed through python 3.5\r\n- ...and I downloaded the pipenv source and installed that in an isolated environment to see if the issue was specific to pipenv version 11.8.3. I experienced the same behavior in 11.9.0.\r\n\r\nI am also able to reproduce it by simply running `pipenv lock` or `pipenv update` if I have tensorflow (or whatever package is currently causing me trouble) listed in my Pipfile.\r\n\r\n<details><summary>$ python -m pipenv.help output</summary>\r\n\r\nPipenv version: `'11.8.3'`\r\n\r\nPipenv location: `'/home/mary/.local/lib/python2.7/site-packages/pipenv'`\r\n\r\nPython location: `'/usr/bin/python'`\r\n\r\nOther Python installations in `PATH`:\r\n\r\n  - `2.7`: `/usr/bin/python2.7`\r\n  - `2.7`: `/usr/bin/python2.7`\r\n  - `3.5`: `/usr/bin/python3.5m`\r\n  - `3.5`: `/usr/bin/python3.5`\r\n\r\n  - `2.7.12`: `/usr/bin/python`\r\n  - `2.7.12`: `/usr/bin/python2`\r\n  - `3.5.2`: `/usr/bin/python3`\r\n\r\nPEP 508 Information:\r\n\r\n```\r\n{'implementation_name': 'cpython',\r\n 'implementation_version': '0',\r\n 'os_name': 'posix',\r\n 'platform_machine': 'x86_64',\r\n 'platform_python_implementation': 'CPython',\r\n 'platform_release': '4.13.0-37-generic',\r\n 'platform_system': 'Linux',\r\n 'platform_version': '#42~16.04.1-Ubuntu SMP Wed Mar 7 16:03:28 UTC 2018',\r\n 'python_full_version': '2.7.12',\r\n 'python_version': '2.7',\r\n 'sys_platform': 'linux2'}\r\n```\r\n\r\nSystem environment variables:\r\n\r\n  - `MANDATORY_PATH`\r\n  - `_LXSESSION_PID`\r\n  - `XDG_GREETER_DATA_DIR`\r\n  - `PROJECT_HOME`\r\n  - `LC_CTYPE`\r\n  - `PYTHONDONTWRITEBYTECODE`\r\n  - `XDG_CURRENT_DESKTOP`\r\n  - `XDG_SESSION_TYPE`\r\n  - `LOGNAME`\r\n  - `XDG_SEAT`\r\n  - `PATH`\r\n  - `XDG_VTNR`\r\n  - `QT_PLATFORM_PLUGIN`\r\n  - `PYTHONUNBUFFERED`\r\n  - `VIRTUALENVWRAPPER_SCRIPT`\r\n  - `ZSH`\r\n  - `DISPLAY`\r\n  - `SSH_AGENT_PID`\r\n  - `LANG`\r\n  - `TERM`\r\n  - `SHELL`\r\n  - `XDG_SESSION_PATH`\r\n  - `XAUTHORITY`\r\n  - `LANGUAGE`\r\n  - `SHLVL`\r\n  - `QT_LINUX_ACCESSIBILITY_ALWAYS_ON`\r\n  - `QT_QPA_PLATFORMTHEME`\r\n  - `SESSION_FOLDER`\r\n  - `QT_ACCESSIBILITY`\r\n  - `WINDOWID`\r\n  - `LIBVIRT_DEFAULT_URI`\r\n  - `HOME`\r\n  - `XDG_SESSION_DESKTOP`\r\n  - `SAL_USE_VCLPLUGIN`\r\n  - `XDG_RUNTIME_DIR`\r\n  - `WORKON_HOME`\r\n  - `SSH_AUTH_SOCK`\r\n  - `VTE_VERSION`\r\n  - `GDMSESSION`\r\n  - `VIRTUALENVWRAPPER_WORKON_CD`\r\n  - `XDG_SEAT_PATH`\r\n  - `PIP_PYTHON_PATH`\r\n  - `XDG_SESSION_ID`\r\n  - `DBUS_SESSION_BUS_ADDRESS`\r\n  - `_`\r\n  - `VIRTUALENVWRAPPER_HOOK_DIR`\r\n  - `VIRTUALENVWRAPPER_PROJECT_FILENAME`\r\n  - `DESKTOP_SESSION`\r\n  - `LSCOLORS`\r\n  - `XDG_CONFIG_DIRS`\r\n  - `DEFAULTS_PATH`\r\n  - `XDG_CONFIG_HOME`\r\n  - `OLDPWD`\r\n  - `LS_COLORS`\r\n  - `GDM_LANG`\r\n  - `XDG_DATA_DIRS`\r\n  - `PWD`\r\n  - `XDG_MENU_PREFIX`\r\n  - `LESS`\r\n  - `PAGER`\r\n  - `USER`\r\n\r\nPipenv–specific environment variables:\r\n\r\n\r\nDebug–specific environment variables:\r\n\r\n  - `PATH`: `/home/mary/bin:/home/mary/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games`\r\n  - `SHELL`: `/usr/bin/zsh`\r\n  - `LANG`: `en_US.UTF-8`\r\n  - `PWD`: `/home/mary/Development/Projects/poor_mans_smart_camera`\r\n\r\n\r\n---------------------------\r\n\r\nContents of `Pipfile` ('/home/mary/Development/Projects/poor_mans_smart_camera/Pipfile'):\r\n\r\n```toml\r\n[[source]]\r\nurl = \"https://pypi.python.org/simple\"\r\nverify_ssl = true\r\nname = \"pypi\"\r\n\r\n[dev-packages]\r\n\r\n[packages]\r\nnumpy = \"*\"\r\ntensorflow = \"*\"\r\n\r\n[requires]\r\npython_version = \"3.5\"\r\n\r\n```\r\n\r\n</details>\r\n\r\n------------\r\n\r\n##### Expected result\r\n\r\nI expect the step in which the Pipfile.lock is generated to take at most a minute.\r\n\r\nI have good hardware with lots of free memory and processing power, so I don't think this is a resource constraint. My internet speed is 60 Mbps, so I doubt it is a networking issue when requesting packages.\r\n\r\n##### Actual result\r\n\r\n[verbose_output.txt](https://github.com/pypa/pipenv/files/1834041/verbose_output.txt)\r\n\r\nWhile this screenshot doesn't show verbose output like the file above, it does visually demonstrate what I am experiencing.\r\n![image](https://user-images.githubusercontent.com/33665154/37718864-b1b3683e-2cf1-11e8-84b4-13ff07033196.png)\r\n\r\n##### Steps to replicate\r\n\r\n1. Spin up new virtualenv using `pipenv --three` or `pipenv --two`.\r\n2. Confirm things are working as expected with a package you know is installing fine such as `pipenv install pylint`.\r\n3. Now cause it to hang by installing a package that is not working for whatever reason such as `pipenv install tensorflow`.\r\n\r\n[Pipfile](https://github.com/pypa/pipenv/files/1834128/Pipfile.txt)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/pipenv/issues/comments/375390147","html_url":"https://github.com/pypa/pipenv/issues/1816#issuecomment-375390147","issue_url":"https://api.github.com/repos/pypa/pipenv/issues/1816","id":375390147,"user":{"login":"uranusjr","id":605277,"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-03-22T17:25:54Z","updated_at":"2018-03-22T17:25:54Z","author_association":"COLLABORATOR","body":"@MarenstainBear Which Python do you install Pipenv in? Or do you install Pipenv in another Python, or inside a virtualenv? (Not your project, but Pipenv itself.)\r\n\r\nThe behaviour you mentioned below is indeed curious, but Pipenv does a lot of environment detection, and is known to work weirdly in an improperly-configured shell. I wouldn’t read it too deeply; it’s probably choking on something else."}}
{"actor":{"display_login":"uranusjr"}}