{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/28044","labels_url":"https://api.github.com/repos/saltstack/salt/issues/28044/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/28044/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/28044/events","html_url":"https://github.com/saltstack/salt/issues/28044","id":111898624,"number":28044,"title":"pip module doesn't see installed packages and generally weird","user":{"login":"onorua","id":407040,"avatar_url":"https://avatars.githubusercontent.com/u/407040?v=3","gravatar_id":"","url":"https://api.github.com/users/onorua","html_url":"https://github.com/onorua","followers_url":"https://api.github.com/users/onorua/followers","following_url":"https://api.github.com/users/onorua/following{/other_user}","gists_url":"https://api.github.com/users/onorua/gists{/gist_id}","starred_url":"https://api.github.com/users/onorua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onorua/subscriptions","organizations_url":"https://api.github.com/users/onorua/orgs","repos_url":"https://api.github.com/users/onorua/repos","events_url":"https://api.github.com/users/onorua/events{/privacy}","received_events_url":"https://api.github.com/users/onorua/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Execution%20Module","name":"Execution Module","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P4","name":"P4","color":"031a39"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2626,"closed_issues":2774,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-10-19T16:29:06Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-10-16T19:46:22Z","updated_at":"2015-10-19T16:29:56Z","closed_at":null,"body":"So, I have:\r\n\r\nsalt-ssh OS: Debian 8\r\nremote machine OS: Ubuntu 15.04\r\n\r\n```\r\nii  salt-common                             2015.8.1+ds-1                       all          shared libraries that salt requires for all packages\r\nii  salt-minion                             2015.8.1+ds-1                       all          client package for salt, the distributed remote execution system\r\nii  salt-ssh                                2015.8.1+ds-1                       all          remote manager to administer servers via salt\r\nii  python-pip                       1.5.6-5ubuntu2               all          alternative Python package installer\r\n```\r\n\r\nI do:\r\n```\r\ninstall pygit requirements:\r\n  pkg.installed:\r\n    - pkgs:\r\n      - python-dev\r\n      - python-pip\r\n      - libffi-dev\r\n      - libgit2-dev\r\n      - python-cffi\r\n      - wget\r\n      - cmake\r\n\r\ninstall libgit2:\r\n  cmd.run:\r\n    - creates: /usr/local/lib/libgit2.so\r\n    - name: wget -cO- https://github.com/libgit2/libgit2/archive/v0.23.0.tar.gz | tar -C /root/ -zx ; cd /root/libgit2-0.23.0; cmake . ; make ; make install; rm -rf /root/libgit2*; ldconfig\r\n    - require:\r\n      - pkg: install pygit requirements\r\n\r\ninstall pygit2:\r\n  pip.installed:\r\n    - name: pygit2\r\n    - require:\r\n      - cmd: install libgit2\r\n      - pkg: install pygit requirements\r\n```\r\n\r\nas a result I get:\r\n```\r\n----------\r\n          ID: install pygit2\r\n    Function: pip.installed\r\n        Name: pygit2\r\n      Result: None\r\n     Comment: Error installing 'pygit2': Exception:\r\n              Traceback (most recent call last):\r\n                File \"/usr/lib/python2.7/dist-packages/pip/basecommand.py\", line 122, in main\r\n                  status = self.run(options, args)\r\n                File \"/usr/lib/python2.7/dist-packages/pip/commands/freeze.py\", line 74, in run\r\n                  req = pip.FrozenRequirement.from_dist(dist, dependency_links, find_tags=find_tags)\r\n                File \"/usr/lib/python2.7/dist-packages/pip/__init__.py\", line 299, in from_dist\r\n                  assert len(specs) == 1 and specs[0][0] == '=='\r\n              AssertionError\r\n              \r\n              Storing debug log for failure in /home/vagrant/.pip/pip.log\r\n     Started: 19:39:52.555186\r\n    Duration: 145.033 ms\r\n     Changes:   \r\n```\r\n\r\nBut I'm able to install this pip module with pip:\r\n```\r\nroot@master:~# pip install pygit2\r\nDownloading/unpacking pygit2\r\n  Downloading pygit2-0.23.2.tar.gz (464kB): 464kB downloaded\r\n  Running setup.py (path:/tmp/pip-build-VUNdYO/pygit2/setup.py) egg_info for package pygit2\r\n    \r\nRequirement already satisfied (use --upgrade to upgrade): cffi in /usr/lib/python2.7/dist-packages (from pygit2)\r\nRequirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/dist-packages (from cffi->pygit2)\r\nInstalling collected packages: pygit2\r\n  Running setup.py install for pygit2\r\n...\r\nSuccessfully installed pygit2\r\nCleaning up...root@master:~# pip2 install pygit2\r\nRequirement already satisfied (use --upgrade to upgrade): pygit2 in /usr/local/lib/python2.7/dist-packages\r\nRequirement already satisfied (use --upgrade to upgrade): cffi in /usr/lib/python2.7/dist-packages (from pygit2)\r\nRequirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/dist-packages (from cffi->pygit2)\r\nCleaning up...\r\n```\r\n\r\nSo, problem 1:\r\n- for some reason pip modules status is not taken into consideration. \r\n- it fail with some strange \r\n\r\nAm I doing something wrong? "},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/149271587","html_url":"https://github.com/saltstack/salt/issues/28044#issuecomment-149271587","issue_url":"https://api.github.com/repos/saltstack/salt/issues/28044","id":149271587,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T16:29:56Z","updated_at":"2015-10-19T16:29:56Z","body":"@onorua, thanks for the report."}}