WINRM CONNECTION ERROR: function takes at most 2 arguments (3 given)

Hi,

Goal : Use Linux centos 7.8 server with ansible version 2.9.7 to manage windows 2019 server

Error : WINRM CONNECTION ERROR: function takes at most 2 arguments (3 given)

The issue here is the kerberos library you have installed is either too old or incompatible with what requests-kerberos requires. Uninstall both kerberos and pykerberos and install just pykerberos. You may want to update requests-kerberos as well as 0.7.0 is quite old.

Thanks for the reply

You mean :

yum remove -y krb5-devel krb5-libs krb5-workstation

And

re-run

pip install pykerberos

Shall i do below

yum remove python-kerberos-1.1-15.el7.x86_64

Anyways i did below

1017 21/05/20 17:47:19 yum remove python-kerberos-1.1-15.el7.x86_64
1018 21/05/20 17:49:29 rpm -qa|grep -i kerb
1019 21/05/20 17:49:43 pip install pykerberos
1020 21/05/20 17:49:55 pip install requests-kerberos
1021 21/05/20 17:50:05 ansible windows -m win_ping -vvvvvv
1022 21/05/20 17:50:30 yum install -y python-kerberos
1023 21/05/20 17:50:38 ansible windows -m win_ping -vvvvvv

Still no luck

I used a fresh box & finally did below & wored

yum install -y python3-devel
pip install pykerberos

Thanks @Jordan