{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/33713","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/33713/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/33713/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/33713/events","html_url":"https://github.com/NixOS/nixpkgs/issues/33713","id":287533939,"number":33713,"title":"Pipenv doesn't propagate packages like pip","user":{"login":"sid-kap","id":6425077,"avatar_url":"https://avatars0.githubusercontent.com/u/6425077?v=4","gravatar_id":"","url":"https://api.github.com/users/sid-kap","html_url":"https://github.com/sid-kap","followers_url":"https://api.github.com/users/sid-kap/followers","following_url":"https://api.github.com/users/sid-kap/following{/other_user}","gists_url":"https://api.github.com/users/sid-kap/gists{/gist_id}","starred_url":"https://api.github.com/users/sid-kap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sid-kap/subscriptions","organizations_url":"https://api.github.com/users/sid-kap/orgs","repos_url":"https://api.github.com/users/sid-kap/repos","events_url":"https://api.github.com/users/sid-kap/events{/privacy}","received_events_url":"https://api.github.com/users/sid-kap/received_events","type":"User","site_admin":false},"labels":[{"id":9820195,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20python","name":"6.topic: python","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-10T18:31:12Z","updated_at":"2018-04-26T18:13:08Z","closed_at":null,"author_association":"NONE","body":"## Issue description\r\n\r\nI'm trying to install numpy using pipenv (rather than using the nix package), and I'm getting the following error: \r\n\r\n```\r\nCreating a Pipfile for this project…\r\nInstalling numpy…\r\n⠧\r\nError:  An error occurred while installing numpy!\r\n/bin/sh: /bin/pip: No such file or directory\r\n```\r\n\r\nFull stack trace:\r\n```\r\nCreating a virtualenv for this project…\r\n⠋Using base prefix '/nix/store/y95dd7cmw2xlf6hvg2j93b227pblpaaq-python3-3.6.4'\r\nNew python executable in /home/sidharth/.local/share/virtualenvs/numpy-test-s0o2G1-0/bin/python3.6m\r\nAlso creating executable in /home/sidharth/.local/share/virtualenvs/numpy-test-s0o2G1-0/bin/python\r\nInstalling setuptools, pip, wheel...\r\n  Complete output from command /home/sidharth/.loca...2G1-0/bin/python3.6m - setuptools pip wheel:       \r\n  Collecting setuptools                                                                                  \r\nException:                                                                                               \r\nTraceback (most recent call last):                                                                       \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/basecommand.py\", line 215, in main              \r\n    status = self.run(options, args)                                                                     \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/commands/install.py\", line 324, in run          \r\n    requirement_set.prepare_files(finder)                                                                \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/req/req_set.py\", line 380, in prepare_files     \r\n    ignore_dependencies=self.ignore_dependencies))                                                       \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/req/req_set.py\", line 620, in _prepare_file     \r\n    session=self.session, hashes=hashes)                                                                 \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/download.py\", line 821, in unpack_url           \r\n    hashes=hashes                                                                                        \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/download.py\", line 659, in unpack_http_url      \r\n    hashes)                                                                                              \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/download.py\", line 853, in _download_http_url   \r\n    stream=True,                                                                                         \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py\", line 488, in get \r\n    return self.request('GET', url, **kwargs)                                                            \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/download.py\", line 386, in request              \r\n    return super(PipSession, self).request(method, url, *args, **kwargs)                                 \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py\", line 475, in request                                                                                                      \r\n    resp = self.send(prep, **send_kwargs)                                                                \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/requests/sessions.py\", line 596, in send\r\n    r = adapter.send(request, **kwargs)                                                                  \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/cachecontrol/adapter.py\", line 37, in send                                                                                                       \r\n    cached_response = self.controller.cached_request(request)                                            \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/cachecontrol/controller.py\", line 111, in cached_request                                                                                         \r\n    resp = self.serializer.loads(request, cache_data)                                                    \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/cachecontrol/serialize.py\", line 114, in loads                                                                                                   \r\n    return getattr(self, \"_loads_v{0}\".format(ver))(request, data)                                       \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl/pip/_vendor/cachecontrol/serialize.py\", line 176, in _loads_v2                                                                                               \r\n    cached = json.loads(zlib.decompress(data).decode(\"utf8\"))                                            \r\nzlib.error: Error -3 while decompressing data: incorrect data check                                      \r\n----------------------------------------                                                                 \r\n...Installing setuptools, pip, wheel...done.                                                             \r\nTraceback (most recent call last):                                                                       \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/bin/.virtualenv-wrapped\", line 12, in <module>                                                                                    \r\n    sys.exit(main())                                                                                     \r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv.py\", line 713, in main\r\n    symlink=options.symlink)\r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv.py\", line 945, in create_environment\r\n    download=download,\r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv.py\", line 901, in install_wheel\r\n    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)\r\n  File \"/nix/store/ivhiacy4kzk3pn0rkzm8v6358xrdmbaz-python3.6-virtualenv-15.1.0/lib/python3.6/site-packages/virtualenv.py\", line 797, in call_subprocess\r\n    % (cmd_desc, proc.returncode))\r\nOSError: Command /home/sidharth/.loca...2G1-0/bin/python3.6m - setuptools pip wheel failed with error code 2\r\n```\r\n\r\n### Steps to reproduce\r\n\r\n```\r\nnix-shell -p pipenv\r\npipenv install numpy\r\n```\r\n\r\n## Technical details\r\n\r\n- system: `\"x86_64-linux\"`\r\n - host os: `Linux 4.9.73, NixOS, 18.03pre124015.f59a0f7f1a6 (Impala)`\r\n - multi-user?: `yes`\r\n - sandbox: `no`\r\n - version: `nix-env (Nix) 1.11.16`\r\n - channels(sidharth): `\"\"`\r\n - channels(root): `\"nixos-18.03pre124015.f59a0f7f1a6\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/384738007","html_url":"https://github.com/NixOS/nixpkgs/issues/33713#issuecomment-384738007","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/33713","id":384738007,"user":{"login":"sid-kap","id":6425077,"avatar_url":"https://avatars0.githubusercontent.com/u/6425077?v=4","gravatar_id":"","url":"https://api.github.com/users/sid-kap","html_url":"https://github.com/sid-kap","followers_url":"https://api.github.com/users/sid-kap/followers","following_url":"https://api.github.com/users/sid-kap/following{/other_user}","gists_url":"https://api.github.com/users/sid-kap/gists{/gist_id}","starred_url":"https://api.github.com/users/sid-kap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sid-kap/subscriptions","organizations_url":"https://api.github.com/users/sid-kap/orgs","repos_url":"https://api.github.com/users/sid-kap/repos","events_url":"https://api.github.com/users/sid-kap/events{/privacy}","received_events_url":"https://api.github.com/users/sid-kap/received_events","type":"User","site_admin":false},"created_at":"2018-04-26T18:13:08Z","updated_at":"2018-04-26T18:13:08Z","author_association":"NONE","body":"@das-g I don't think I got that error! Anyway, I figured out how to make pipenv install wheels instead of building from source, which solved all my problems and also makes installing packages much faster.\r\nI wrote a blog post on how to do this: https://sid-kap.github.io/posts/2018-03-08-nix-pipenv.html."}}
{"actor":{"display_login":"sid-kap"}}