In the minimal.py callback the reference is to C.COLOR_ERROR. C comes from the 'from ansible import constants as C'
I can see `COLOR_ERROR` in constants.py. If this error is happening, it would appear that the code is out of sync. https://github.com/ansible/ansible/blob/d3deb24ead59d5fdbecad3c946848537f95772ad/lib/ansible/constants.py#L274 https://github.com/ansible/ansible/blob/d3deb24ead59d5fdbecad3c946848537f95772ad/lib/ansible/plugins/callback/minimal.py#L56 These changes were implemented on Dec 29. On Tue, Mar 1, 2016 at 4:21 PM, Arthur Reyes <[email protected]> wrote: > I would see if adding the allege missing line fixes the problem before > reporting it as bug. I don't know if I have the most current build, but > that line is missing from my last pull: > $ ansible --version > ansible 2.1.0 (devel fb797a9e77) last updated 2016/01/22 14:23:55 (GMT > -500) > > > On Tuesday, March 1, 2016 at 4:14:03 PM UTC-6, Joanna Delaporte wrote: >> >> That sounds like a bug, then. Do you know where to report it? >> >> On Tuesday, March 1, 2016 at 4:10:25 PM UTC-6, Arthur Reyes wrote: >>> >>> To be clear, in /ansible/lib/ansible/plugins/callback/minimal, there is >>> no import of ansible.utils.color: >>> >>> # Make coding more python3-ish >>> from __future__ import (absolute_import, division, print_function) >>> __metaclass__ = type >>> >>> from ansible.plugins.callback import CallbackBase >>> from ansible import constants as C >>> >>> >>> class CallbackModule(CallbackBase): >>> >>> >>> On Tuesday, March 1, 2016 at 4:08:14 PM UTC-6, Arthur Reyes wrote: >>>> >>>> I noticed that this module isn't importing this module: >>>> >>>> from ansible.utils.color import colorize, hostcolor >>>> >>>> >>>> On Tuesday, March 1, 2016 at 3:54:51 PM UTC-6, Joanna Delaporte wrote: >>>>> >>>>> Fixed the typo in the subject. The ad-hoc commands are failing >>>>> instantly after this error. >>>>> >>>>> On Tuesday, March 1, 2016 at 3:32:58 PM UTC-6, Joanna Delaporte wrote: >>>>>> >>>>>> When running ad-hoc ansible commands, I get the following error: >>>>>> >>>>>> $ ansible slackware-lab-64 -m setup >>>>>> >>>>>> [WARNING]: Error when using <bound method >>>>>> CallbackModule.v2_runner_on_failed of >>>>>> </home/ansible-user/ansible/lib/ansible/plugins/callback/minimal.CallbackModule >>>>>> object at 0x21d15d0>>: 'module' object has no attribute >>>>>> 'COLOR_ERROR' >>>>>> >>>>>> I am also getting the ssh_split error whenever I try to run a >>>>>> playbook, so my Ansible is completely broken right now. >>>>>> >>>>> -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/a8922c17-5986-442f-85f7-ae042f6aebe6%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/a8922c17-5986-442f-85f7-ae042f6aebe6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v-AjsPOJMP7impd%2BjYu0k-WK_ogwN_-s4CG1gAWm1QF-A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
