{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10597","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10597/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10597/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10597/events","html_url":"https://github.com/NixOS/nixpkgs/issues/10597","id":113213737,"number":10597,"title":"python: cannot import installed packages","user":{"login":"zhou13","id":576382,"avatar_url":"https://avatars.githubusercontent.com/u/576382?v=3","gravatar_id":"","url":"https://api.github.com/users/zhou13","html_url":"https://github.com/zhou13","followers_url":"https://api.github.com/users/zhou13/followers","following_url":"https://api.github.com/users/zhou13/following{/other_user}","gists_url":"https://api.github.com/users/zhou13/gists{/gist_id}","starred_url":"https://api.github.com/users/zhou13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhou13/subscriptions","organizations_url":"https://api.github.com/users/zhou13/orgs","repos_url":"https://api.github.com/users/zhou13/repos","events_url":"https://api.github.com/users/zhou13/events{/privacy}","received_events_url":"https://api.github.com/users/zhou13/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/python","name":"python","color":"0b02e1"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-25T08:50:55Z","updated_at":"2015-10-27T11:27:27Z","closed_at":null,"body":"1.  `nix-env -i python2.7 python2.7-numpy`\r\n2.  open `python2.7`\r\n3. `import numpy`\r\n\r\nI got\r\n````\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nImportError: No module named numpy\r\n````\r\n\r\nIs this expected?"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/151461850","html_url":"https://github.com/NixOS/nixpkgs/issues/10597#issuecomment-151461850","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10597","id":151461850,"user":{"login":"domenkozar","id":126339,"avatar_url":"https://avatars.githubusercontent.com/u/126339?v=3","gravatar_id":"","url":"https://api.github.com/users/domenkozar","html_url":"https://github.com/domenkozar","followers_url":"https://api.github.com/users/domenkozar/followers","following_url":"https://api.github.com/users/domenkozar/following{/other_user}","gists_url":"https://api.github.com/users/domenkozar/gists{/gist_id}","starred_url":"https://api.github.com/users/domenkozar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenkozar/subscriptions","organizations_url":"https://api.github.com/users/domenkozar/orgs","repos_url":"https://api.github.com/users/domenkozar/repos","events_url":"https://api.github.com/users/domenkozar/events{/privacy}","received_events_url":"https://api.github.com/users/domenkozar/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T11:27:27Z","updated_at":"2015-10-27T11:27:27Z","body":"Yes, there is only one `$PYTHONPATH` and python will use first package that can be imported from it. So setting $PYTHONPATH in profile will pollute anything else depending on it. We could then disallow `$PYTHONPATH` propagating into Nix packages."}}