I’ve just upgrade my installation of ansible with the latest release and it seems there’s an issue with the callbacks module:
Considering the following directory structure:
ansible/
callbacks.py
utils/ init.py
callbacks.py line 18:
import utils
utils/init.py line 30:
from ansible.callbacks import display
This is just not possible since it take you to a circular dependency.
I’m not really sure what would be the best way to deal with that, probably splitting utils into multiple modules or removing code from init.py, i’m not exactly sure. Also i might not be the first one to raise this point, if it’s the case, i’m sorry about that
I imagine the world would be yelling us in greater quantity if callbacks weren’t working.
Please let us know steps to reproduce this problem and we can take a look, though I think it’s possible you have a mixed up install where you have “make installed” 1.3 or something and need to clean up after it, maybe?
$ virtualenv test
$ source test/bin/activate
$ python
from ansible import callbacks, utils
Traceback (most recent call last):
File “”, line 1, in
File “/Users/mlhamel/test/lib/python2.7/site-packages/ansible/callbacks.py”, line 18, in
import utils
File “/Users/mlhamel/test/lib/python2.7/site-packages/ansible/utils/init.py”, line 30, in
from ansible.callbacks import display
ImportError: cannot import name display
Let me know if you are able to reproduce, i’ll fill a bug report whenever you’re ready, i was able to reproduce also on Linux (Ubuntu and Arch) with and without --no-site-packages on the virtualenv