AnswerBun.com

How resolve WARN when run ansible: [WARNING]: Skipping plugin as it seems to be invalid?

Ask Ubuntu Asked on December 4, 2020

When I run ansible command, like this:

ansible -i host all -m ping

I got this warnings:

[WARNING]: Skipping plugin (/usr/lib/python2.7/dist-packages/ansible/plugins/callback/foreman.py) as it seems to be invalid: from_buffer() cannot return the address of the raw string
within a str or unicode or bytearray object
[WARNING]: Skipping plugin (/usr/lib/python2.7/dist-packages/ansible/plugins/callback/grafana_annotations.py) as it seems to be invalid: from_buffer() cannot return the address of the
raw string within a str or unicode or bytearray object
[WARNING]: Skipping plugin (/usr/lib/python2.7/dist-packages/ansible/plugins/callback/hipchat.py) as it seems to be invalid: from_buffer() cannot return the address of the raw string
within a str or unicode or bytearray object
[WARNING]: Skipping plugin (/usr/lib/python2.7/dist-packages/ansible/plugins/callback/nrdp.py) as it seems to be invalid: from_buffer() cannot return the address of the raw string
within a str or unicode or bytearray object
[WARNING]: Skipping plugin (/usr/lib/python2.7/dist-packages/ansible/plugins/callback/slack.py) as it seems to be invalid: from_buffer() cannot return the address of the raw string
within a str or unicode or bytearray object
[WARNING]: Skipping plugin (/usr/lib/python2.7/dist-packages/ansible/plugins/callback/splunk.py) as it seems to be invalid: from_buffer() cannot return the address of the raw string
within a str or unicode or bytearray object
[WARNING]: Skipping plugin (/usr/lib/python2.7/dist-packages/ansible/plugins/callback/sumologic.py) as it seems to be invalid: from_buffer() cannot return the address of the raw string
within a str or unicode or bytearray object

Why this happen, and how can I remove this warning?

Server params:
ansible version – 2.9
OS version – Ubuntu 16.04

One Answer

It look like Python 2 deprecation.

ansible --version

if you get

python version = 2.x.x (…)

You should change ansible runtime to Python 3.

Changing ansible runtime is quite complicated, safer is upgrade OS to version which support Python 3 only. But it could be also difficult, if you need use any other Python2-depend software.

Answered by user1119882 on December 4, 2020

Add your own answers!

Related Questions

Ubuntu 12.10 on Intel Atom tablet

1  Asked on December 13, 2021 by user134935

       

No sound after unplugging the headphones from the computer

3  Asked on December 12, 2021 by gungnir2414

   

GEGL version too old error?

7  Asked on December 12, 2021 by xaif

   

dual monitors on ubuntu server 20.04 on pi 4

1  Asked on December 12, 2021 by mike-burdette

       

Docker daemon fails to start

1  Asked on December 12, 2021 by alimahdavi

       

Failed to start lightdm (stuck on bootloop)

0  Asked on December 12, 2021 by santo-shakil

         

How to make Logitech M510 work in Ubuntu 20.04?

1  Asked on December 12, 2021 by j-willie

 

18.04 Cannot disconnect from wifi network (eduroam)

1  Asked on December 12, 2021 by bersan

 

Ubuntu 16.04 FireWire suddenly disappeared

1  Asked on December 12, 2021

 

Terminal Errors in Kubuntu 20.04

1  Asked on December 12, 2021 by dr-jason-amerson

       

Partial login loop after lock screen in 20.04

1  Asked on December 10, 2021 by ramon-suarez

       

How to edit pdf metadata from command line?

7  Asked on December 10, 2021 by bdr529

     

Constant noise in speakers and headphones

4  Asked on December 10, 2021 by user103978

         

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir