-
Notifications
You must be signed in to change notification settings - Fork 199
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
Mitogen does not support Ansible 2.8 Python interpreter detection #597
Comments
Hi there, This is probably something to do with the new "Python interpreter discovery" feature in Ansible 2.8. Mitogen currently lacks support for it. As a workaround, you can specify Sorry for the hassle! Interpreter discovery is simultaneously a simple feature and fairly painful, because to solve it requires implementing |
Thank you, that works! Actually ended up setting that yesterday because Ansible was doing Python 2 on one host and Python 3 on another. Do you want me to close this out or leave it open for now? |
All behavioural differences are bugs, so it stays open :) Thanks for reporting! |
No problem, sounds good! |
Any news on this? |
@dw I got a different error with Ansible 2.8.5 and Mitogen 0.2.8:
task:
In this case a machine's default system python was super old so we needed to use a user-installed python instead to avoid SNI issues. This works just fine without mitogen. |
I believe I discovered my issue. It's due to how the
This is different than what ansible does in this situation:
I'll try and submit a PR to fix |
Will be working on the fix here: #658. Might be going down the rabbit hole a bit but I'm determined 😅 |
My fix is ready |
Really sad to see that there is no progress on this bug, which is a deal breaker. |
Facing the same issue. I have managed to work around this issue by setting the following for my CentOS 7 and CentOS 8 group:
This has allowed me to continue working with both sets of VMs at a time, as when I had previously set the python interpreter to |
I've made a PR here: #658 can those affected please try my patch and see if it fixes things for you? |
Running Debian 9 locally with Ansible 2.8.1 with Python 3. Controlling a Ubuntu 18.04 server.
I followed the instructions here: https://networkgenomics.com/ansible/
Of course it didn't work for 2.8.X, so I switched it out for master. Now I'm getting this:
Oddly enough, /usr/bin/python does exist but it's a symlink to python2.7.
I think it should be trying /usr/bin/python3. Ansible works just fine without mitogen enabled.
I think there's something about a ansible_python_interpreter that I can set, but seems like this should work by default.
What can I try/test? I'm new to both Ansible and Mitogen, so not very familiar with either yet.
Thank you!
The text was updated successfully, but these errors were encountered: