{"action":"closed","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/19846","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/19846/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/19846/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/19846/events","html_url":"https://github.com/saltstack/salt/issues/19846","id":54773369,"number":19846,"title":"Calling saltcloud.* modules and boto* modules on Windows","user":{"login":"highlyunavailable","id":6266125,"avatar_url":"https://avatars3.githubusercontent.com/u/6266125?v=4","gravatar_id":"","url":"https://api.github.com/users/highlyunavailable","html_url":"https://github.com/highlyunavailable","followers_url":"https://api.github.com/users/highlyunavailable/followers","following_url":"https://api.github.com/users/highlyunavailable/following{/other_user}","gists_url":"https://api.github.com/users/highlyunavailable/gists{/gist_id}","starred_url":"https://api.github.com/users/highlyunavailable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highlyunavailable/subscriptions","organizations_url":"https://api.github.com/users/highlyunavailable/orgs","repos_url":"https://api.github.com/users/highlyunavailable/repos","events_url":"https://api.github.com/users/highlyunavailable/events{/privacy}","received_events_url":"https://api.github.com/users/highlyunavailable/received_events","type":"User","site_admin":false},"labels":[{"id":41387723,"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":194768064,"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0","default":false},{"id":604063979,"url":"https://api.github.com/repos/saltstack/salt/labels/stale","name":"stale","color":"ffffff","default":false},{"id":58954720,"url":"https://api.github.com/repos/saltstack/salt/labels/Windows","name":"Windows","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":{"login":"UtahDave","id":306240,"avatar_url":"https://avatars0.githubusercontent.com/u/306240?v=4","gravatar_id":"","url":"https://api.github.com/users/UtahDave","html_url":"https://github.com/UtahDave","followers_url":"https://api.github.com/users/UtahDave/followers","following_url":"https://api.github.com/users/UtahDave/following{/other_user}","gists_url":"https://api.github.com/users/UtahDave/gists{/gist_id}","starred_url":"https://api.github.com/users/UtahDave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UtahDave/subscriptions","organizations_url":"https://api.github.com/users/UtahDave/orgs","repos_url":"https://api.github.com/users/UtahDave/repos","events_url":"https://api.github.com/users/UtahDave/events{/privacy}","received_events_url":"https://api.github.com/users/UtahDave/received_events","type":"User","site_admin":false},"assignees":[{"login":"UtahDave","id":306240,"avatar_url":"https://avatars0.githubusercontent.com/u/306240?v=4","gravatar_id":"","url":"https://api.github.com/users/UtahDave","html_url":"https://github.com/UtahDave","followers_url":"https://api.github.com/users/UtahDave/followers","following_url":"https://api.github.com/users/UtahDave/following{/other_user}","gists_url":"https://api.github.com/users/UtahDave/gists{/gist_id}","starred_url":"https://api.github.com/users/UtahDave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UtahDave/subscriptions","organizations_url":"https://api.github.com/users/UtahDave/orgs","repos_url":"https://api.github.com/users/UtahDave/repos","events_url":"https://api.github.com/users/UtahDave/events{/privacy}","received_events_url":"https://api.github.com/users/UtahDave/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/48","html_url":"https://github.com/saltstack/salt/milestone/48","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/48/labels","id":856250,"number":48,"title":"Under Review","description":"","creator":{"login":"ssgward","id":8439595,"avatar_url":"https://avatars1.githubusercontent.com/u/8439595?v=4","gravatar_id":"","url":"https://api.github.com/users/ssgward","html_url":"https://github.com/ssgward","followers_url":"https://api.github.com/users/ssgward/followers","following_url":"https://api.github.com/users/ssgward/following{/other_user}","gists_url":"https://api.github.com/users/ssgward/gists{/gist_id}","starred_url":"https://api.github.com/users/ssgward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssgward/subscriptions","organizations_url":"https://api.github.com/users/ssgward/orgs","repos_url":"https://api.github.com/users/ssgward/repos","events_url":"https://api.github.com/users/ssgward/events{/privacy}","received_events_url":"https://api.github.com/users/ssgward/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":30,"state":"open","created_at":"2014-11-06T17:18:17Z","updated_at":"2017-11-17T20:52:15Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-01-19T14:56:31Z","updated_at":"2017-11-17T20:52:15Z","closed_at":"2017-11-17T20:52:15Z","author_association":"CONTRIBUTOR","body":"I'm working on a masterless Windows setup process on EC2 and I'm having trouble getting boto and salt-cloud working.\n\nI've installed Python 2.7.9 and added the Boto module with `pip install boto`, but when I go to import it inside of Salt, I get:\n\n```\n  File \"c:\\Python27\\lib\\site-packages\\boto\\exception.py\", line 28, in <module>\n    import xml.sax\nImportError: No module named sax\n```\n\nI think my PYTHONPATH is set correctly:\n\n`C:\\salt>echo %PYTHONPATH%\nC:\\Python27;C:\\Python27\\Lib;C:\\Python27\\Lib\\site-packages`\n\nBut Salt doesn't seem to be using it:\n`['C:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\library.zip', 'c:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\esky-0.9.8-py2.7.egg', 'c:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\jinja2-2.7.1-py2.7.egg', 'c:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\markupsafe-0.18-py2.7.egg', 'c:\\\\salt\\\\salt-2014.7.1.win-am64\\\\msgpack_python-0.4.2-py2.7-win-amd64.egg', 'c:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\psutil-2.1.0-py2.7-win-amd64.egg', 'c:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\pyzmq-14.1.1-py2.7-win-amd64.egg', 'c:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\salt-2014.7.1-py2.7.egg', 'c:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\setuptools-1.1.6-py2.7.egg', 'c:\\\\salt\\\\salt-2014.7.1.win-amd64\\\\wmi-1.4.9-py2.7.egg', 'C:\\\\salt\\\\salt-2014.7.1.win-amd64', 'c:\\\\Python27', 'c:\\\\Python27\\\\lib\\\\site-packages']`\n\nI assume this is something to do with how the Python library is vendored into the Salt windows installer directory.\n\nI also tried making a .egg file and dropping it into the Salt directory, which had the same error until I manually shoved lib/xml/sax.pyc and lib/logging/config.pyc into the library.zip file.\n\nMy use case is that I'm want to use the salt-cloud modules (http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.cloud.html) to look up other machines in EC2 to get their IPs (rather than using a master and a mine) and also add the machine to load balancers/DNS etc.\n\nI'd like to avoid doing my own Windows fork of Salt just to add a few additional modules. Does anyone have any advice on how to do this? I really would like to be able to use additional modules with Salt, but the Windows packaging process seems to make that very difficult without putting the modules in at build time.\n\nIf I don't use salt (just import boto) from a normal python prompt, it works fine because xml.sax is in the Python Path because the library is not overridden by the zip file.\n\nI'm also looking for any guidance to adding modules to Windows minions regardless of the exact package. For example, the Softlayer module for salt-cloud (we also use Softlayer) requires that the Softlayer python package be installed, and the EC2 module for salt-cloud wants apache-libcloud. What's the best way to get these onto Windows minions?\n"}}
{"actor":{"display_login":"stale"}}