question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mitogen does not support Ansible 2.8 Python interpreter detection

See original GitHub issue

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:

TASK [Gathering Facts] ************************************************************************************************************************
fatal: [8.9.11.101]: UNREACHABLE! => {"changed": false, "msg": "EOF on stream; last 300 bytes received: 'bash: /usr/bin/python: No such file or directory\\n'", "unreachable": true}

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!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ssbarneacommented, Jan 26, 2020

Really sad to see that there is no progress on this bug, which is a deal breaker.

1reaction
rei-androidcommented, Oct 14, 2019

Any news on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mitogen does not support Ansible 2.8 Python interpreter ...
Running Debian 9 locally with Ansible 2.8.1 with Python 3. ... Mitogen does not support Ansible 2.8 Python interpreter detection #597.
Read more >
Release Notes — Mitogen Documentation
#597 mitogen does not support Ansible 2.8 Python interpreter detection. #655 wait_for_connection gives errors. #672 cannot perform relative import error.
Read more >
Interpreter Discovery - Ansible Documentation
Detects the target OS platform, distribution, and version, then consults a table listing the correct Python interpreter and path for each platform/distribution/ ...
Read more >
mitogen - Bountysource
18:07:51 eldil!3 mitogen] python tests/bench/throughput.py Testing local()... local() took 553.16 ms to ... Which version of Ansible are you running?
Read more >
Speed up Ansible with Mitogen! - DEV Community ‍ ‍
If somebody like me was not familiar with it — this library allows fast execution of python code on a remote host and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found