-
Notifications
You must be signed in to change notification settings - Fork 199
Cannot perform relative import error #672
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
Comments
Seems to be the same as mine in #665 |
I have the same problem with target nodes with python3.5 (ubuntu16.04 LTS). I has fails while running setup module. Sorry for my English. |
@Shm013 Ah good catch. I'm running 16.04 on my hosts too which comes with Python 3.5.2. I have been specifying python3 which is my preferred solution. |
Switching to python2 for ubuntu 16.04 is problematic for me because it appears that the firewalld package only provides python3 bindings. |
I have same issue.
Controller system
Remote system
If I disable
|
This issue is caused by ansible 2.9, by this PR: ansible/ansible#61196. If you downgrade to ansible 2.8.8, the problem goes away. |
I've got the same problem. Has somebody reported this to the ansible project? |
It has been : ansible/ansible#68276 |
Ansible closed the issue with reference to the issue needs fixing in the mitogen project |
I'll take a look soon. My schedule is a bit hectic but I should be able to get to it by the end of the week. |
So on a note I changed |
That's in the Ansible module, but they're saying it's on Mitogen's end? 🤔 interesting. |
Let me try.
Playbook
a little info on my setup
so we are running inside a docker container and has been doing so for very long time , also before this started happening (when we upgraded to 2.9.2) |
Can you upgrade to Ansible 2.9.6 and Mitogen |
I will try to do that, i will be back with an answer tomorrow (it takes some time to build the docker container..) and have some other stuff i need to lookinto also.. but you will hear more about how it went |
Sounds good, thanks! If you have a public docker image already built that I can repro with that'll work too |
Hi,
ansible.cfg:
instal mitogen:
output from run
|
Can you try python 3.7? I just realized we have no tests for Python 3.8 yet, maybe that's the issue. |
Hello, |
Hi, same issue with python 3.7.
|
@macmonac currently there is development on collections for bleeding edge Ansible which will take awhile, which is why the last master merge was 12 days ago 😅 |
@lunarfs a dockerfile would be awesome, thank you 👍 |
Start the container:
give it a minute or so to propperly startup , depending on wheter you run mac or linux.. mac does spend a lot of time making sure the permissions are all set corectley.
So there is no files in this container, it is only a utility container. It usually is wrapped with some toolling, and it alsop contains some more tools, i did spend some time making this version that i could share, hope it is ok a little background.so in general i would have concerns running third party docker containers on my laptop.. so just to clearify some things.. here is the userwrapper script that the container runs on starrtup (this takes some time, especially for those running docker for mac)
and the Dockerfile
so the ADD sections is a problem if you want to build the container yourself.. but now i done it, so it should not be an issue i guess. |
I think I have enough info to repro; I don't have time to do it now but I'll get to it within the next few days for sure 👍 |
Able to repro now, thanks everyone for the info!
I ran this command:
Breaks: Works: Looks like the bug is Mitogen + Ansible 2.9 + Python 3.5.1-Python 3.5.3. |
#719 this patch fixed it for me! :) The patch will make it in the next release(s) of Mitogen, which will be around when Ansible 2.10 is released. |
Any chance of a 2.9.1 release soon with this fix? Would be very helpful for myself at least. ansible 2.10 seems targeted for 2020-08-13. |
Hmm, that is later than I expected 🤔 I don't have access to Mitogen's PyPi account, so that would be up to @dw . |
Confirmed fixed for me too! YAY finally! |
I just applied the patch locally and that's working well so far. Thanks. |
Dear @dw , any plan for a bug fix release with this patch? |
Would love to see this released here too 👍 |
Fix released here: |
I'm encountering the following errors upon gathering facts:
More details from
-vvv
below. Running withoutmitogen
in contrast works fine.Running brew "latest"
ansible
:Configuration (relevant parts):
where
~/software/mitogen
is a clone onmaster
(i.e.c289b1699da075e6f4eb581eb8f42c7fddba176e
as of writing this).Host:
Target:
Output of
ansible-config dump --only-changed
:The error with
-vvv
and more context:The text was updated successfully, but these errors were encountered: