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
[ansible] Imports from module_utils fail #324
Comments
80% chance this is some easy fallout from the Python 3 work. Leave this with me a few days, there are some related tests checked in that don't run yet, so I'll fix that at the same time. Thanks for the report! |
Hi there, Can you please retry with http://github.com/dw/mitogen/archive/dmw.zip and let me know if the problem is gone? I need to rework the module_utils tests more significantly, because Ansible's semantics when overlapping module names exists is pretty unfortunate |
@dw works perfectly, thank you! (tested with py2 and py3 runners) |
This will make it into the next release. To be updated when a new release is made, subscribe to https://networkgenomics.com/mail/mitogen-announce/ Thanks for reporting this! |
Oh heck, sorry, I shouldn't have pointed you at that branch. The tip commit had the per-CPU multiplexer patch on top. If you re-pull (assuming you're using it temporarily) that patch is gone. It may be fine (it might even be great!), but best not use it yet. |
…a_silence google requested to remove the extra silence
Hi, thanks for the awesome project, looks very promising so far! We're running into some import issues with some custom modules we have. As a way of sharing libraries between modules (and setting up their remote dependencies if required), we 'package' some module_utils in a separate role. This plays more or less nicely with Ansible's upstream module importer.
In the example below, the file layout is as follows:
However, any imports in those
module_utils
files trip up Mitogen. I've been able to get rid of most of them, but replacingos
is going to be difficult. Does this scenario fall under the '“Module Replacer” style modules are not supported.' clause, and if so, what would be the recommended way of structuring this?The first line of
exec_utils.py
isimport os
.I've tried both py2 and py3 on the controller, and the results are the same. (nice!) The remotes are CentOS7 machines running py2.
Is this a scenario Mitogen could support?
The text was updated successfully, but these errors were encountered: