-
-
Notifications
You must be signed in to change notification settings - Fork 171
doc: OS X needs yamlish installed to run ansible #2002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Can we get an explanation of this? I don't think I've needed this, I don't have it on my system and I can't find reference to it in the repo. also, this doc has python2, I'm pretty sure the ^ that's new in the last year, since the macos docs were added anyway, the change was a bit traumatic for a while, I couldn't reliably run ansible on my mac and had to do it all on my linux machine but it seems to be all sorted out now (mainly the fault of our python usage here). |
|
@AshCripps see above, can you confirm whether we were using python2, and used pip2 to install yamlish? |
|
Yeah we swapped to python 2 to run the ansible |
|
Used here https://github.com/nodejs/tap2junit/blob/master/tap2junit/tap13.py#L23 Installed here https://github.com/nodejs/tap2junit/blob/master/setup.py#L34 When Ansible does |
|
@cclauss but that's on the server, this change is on the client. I don't see why yamlish is getting involved on the Ansible client. @AshCripps can you explain why Python 3 didn't work? Or didn't you try that? |
|
Didn't try 3 as I was just following the instructions in the doc https://github.com/nodejs/build/blob/master/ansible/README.md |
|
I have always used python2, too, as the docs direct. I only ansible from ubuntu 19.04, and python2 is what ansible-playbook uses: @rvagg are you saying you are using py3, so that's why you don't run into this? I'm pretty sure I've run into the yamlish error before and installed it, but my memory is not so great. I do see this locally, fwiw: |
Did you check |
sorry, I'm not sure what this is referring to Perhaps this is a broken Ansible + Python2 thing on macOS? How about you try to uninstall all of those things installed with If you want to out |
|
@rvagg Ive tried uninstalling everything I can but ansible is giving me weird errors. It cant find the yaml plugin and when I try the Did you do anything else to get ansible to run with python 3 on your mac? |
|
|
|
Ouch, so I'm far from the expert on this, I mainly just rage at Python and hope others will figure stuff out. And all of the playbooks that I've had to use in the past few months have been fine on my mac, except for an ongoing Python 3 problem with the ccache build task that I finally took care of by replacing the Python with Bash in #1945 (pretty much a reversion to how it was before Python got involved!) It's very possible that I'm just running on cruft that's built up on my mac over the last year or two and I happen to have the necessary pieces. I've just been assuming that i.e. this is just my experience, one instance and with limited Python expertise, if you can't work it out then maybe just go ahead and document what works for you and the next person to do a fresh install with some knowledge about this stuff might clean it up. |
May the force be with you...
This means that Ansible is (wisely) running its own version of Python in a virtualenv. This means that Ansible has its own
|
|
https://gist.github.com/rvagg/74bbfcd1ad730fa0060d6a88b3cc7b3d for me, not sure how helpful that is, this is just what brew gives me and I assume everyone else who installs Ansible via brew. |
Interesting when I use this python in
Which is progress I guess? |
cc: @AshCripps who found this