[ansible-project] Re: WINRM CONNECTION ERROR: function takes at most 2 arguments (3 given)

2020-05-21 Thread Kiran Kumar
I used a fresh box & finally did below & wored

yum install -y  python3-devel
pip install pykerberos

Thanks @Jordan 



On Thursday, May 21, 2020 at 5:37:40 PM UTC-7, Jordan Borean wrote:
>
> 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.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/24efbffb-08c7-4c69-bbc4-6e55e84af57d%40googlegroups.com.


[ansible-project] Re: WINRM CONNECTION ERROR: function takes at most 2 arguments (3 given)

2020-05-21 Thread Kiran Kumar
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 -vv
 1022  21/05/20 17:50:30 yum install -y python-kerberos
 1023  21/05/20 17:50:38 ansible windows -m win_ping -vv


Still no luck 

On Thursday, May 21, 2020 at 5:37:40 PM UTC-7, Jordan Borean wrote:
>
> 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.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c17f0ce7-e187-41d4-9437-a5db3afe56bf%40googlegroups.com.


[ansible-project] Re: WINRM CONNECTION ERROR: function takes at most 2 arguments (3 given)

2020-05-21 Thread Kiran Kumar
Shall i do below 

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


=
 Package Arch  
Version
  Repository  Size
=
Removing:
 python-kerberos x86_64
1.1-15.el7  
 @base   53 k
Removing for dependencies:
 kojinoarch
1.15.1-1.el7.centos
  @extras410 k
 python-requests-kerberosnoarch
0.7.0-2.el7
  @extras 34 k
 python2-kojinoarch
1.15.1-1.el7.centos
  @extras1.4 M
 python2-koji-cli-pluginsnoarch
1.15.1-1.el7.centos
  @extras 17 k


BTW 

pip install requests-kerberos
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. 
Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 
will drop support for Python 2.7 in January 2021. More details about Python 
2 support in pip, can be found at 
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: requests-kerberos in 
/usr/lib/python2.7/site-packages (0.7.0)
Requirement already satisfied: requests>=1.1.0 in 
/usr/lib/python2.7/site-packages (from requests-kerberos) (2.23.0)
Requirement already satisfied: kerberos in 
/usr/lib64/python2.7/site-packages (from requests-kerberos) (1.1)
Requirement already satisfied: certifi>=2017.4.17 in 
/usr/lib/python2.7/site-packages (from requests>=1.1.0->requests-kerberos) 
(2020.4.5.1)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in 
/usr/lib/python2.7/site-packages (from requests>=1.1.0->requests-kerberos) 
(1.25.9)
Requirement already satisfied: idna<3,>=2.5 in 
/usr/lib/python2.7/site-packages (from requests>=1.1.0->requests-kerberos) 
(2.9)
Requirement already satisfied: chardet<4,>=3.0.2 in 
/usr/lib/python2.7/site-packages (from requests>=1.1.0->requests-kerberos) 
(3.0.4)

Please suggest 

On Thursday, May 21, 2020 at 5:37:40 PM UTC-7, Jordan Borean wrote:
>
> 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.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5ad58620-9122-48cd-a7d8-c598169e6d65%40googlegroups.com.


[ansible-project] Re: WINRM CONNECTION ERROR: function takes at most 2 arguments (3 given)

2020-05-21 Thread Kiran Kumar
Thanks for the reply 

You mean : 

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

And 

re-run 

*pip install pykerberos* 



On Thursday, May 21, 2020 at 5:37:40 PM UTC-7, Jordan Borean wrote:
>
> 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.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1575caa5-2722-4c7b-b215-142c50fb5234%40googlegroups.com.


[ansible-project] Re: WINRM CONNECTION ERROR: function takes at most 2 arguments (3 given)

2020-05-21 Thread Jordan Borean
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.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/904f0877-7350-4675-8bec-d5077b056ecd%40googlegroups.com.