Error with message: "winrm or requests are not installed, No module named 'winrm' ", despite having these 2 things installed

64 views
Skip to first unread message

Axel Padilla

unread,
Nov 20, 2023, 10:21:25 AM11/20/23
to Ansible Project

Everything was working fine until I updated it to the latest version of Ansible.
Versions:
Python 3.11.2

ansible [core 2.14.2] with python version 3.11.2 & jinja version 3.1.2

ansible==4.10.0                                                                                                        
ansible-core==2.11.12                                                                                                 
cffi==1.15.1                                                                                                           
chardet==3.0.4                                                                                                         cryptography==40.0.2                                                                                                  
dbus-python==1.2.4                                                                                                     decorator==4.2.1                                                                                                      
file-magic==0.3.0                                                                                                      
gpg==1.13.1                                                                                                          html5lib==0.999999999                                                                                                 
idna==2.5                                                                                                             
isc==2.0                                                                                                               
Jinja2==3.0.3                                                                                                        jmespath==0.9.0                                                                                                    libcomps==0.1.18                                                                                                      
lxml==4.2.3                                                                                                          MarkupSafe==2.0.1                                                                                                  
nftables==0.1                                                                                                          
ntlm-auth==1.5.0                                                                                                       packaging==21.3                                                                                                        
perf==0.1                                                                                                              
pexpect==4.3.1                                                                                                         
ply==3.9                                                                                                               
psutil==5.4.3                                                                                                        ptyprocess==0.5.2                                                                                                    pycairo==1.16.3                                                                                                      pycparser==2.21                                                                                                      
pydbus==0.6.0                                                                                                        PyGObject==3.28.3                                                                                                    pykerberos==1.2.4                                                                                                    pyparsing==3.1.1                                                                                                       PySocks==1.6.8                                                                                                         
python-dateutil==2.6.1                                                                                                 
python-distutils-extra==2.39                                                                                           
python-linux-procfs==0.7.0                                                                                             pyudev==0.21.0                                                                                                         pywinrm==0.4.3                                                                                                         PyYAML==3.12                                                                                                           requests==2.20.0                                                                                                       
requests-ntlm==1.1.0                                                                                                   resolvelib==0.5.4                                                                                                      
rpm==4.14.3                                                                                                            
selinux==2.9                                                                                                           
sepolicy==1.1                                                                                                          
setools==4.3.0                                                                                                         setroubleshoot==1.1                                                                                                    
six==1.11.0                                                                                                            
slip==0.6.4                                                                                                           
slip.dbus==0.6.4                                                                                                       
sos==4.6.0                                                                                                             SSSDConfig==2.8.2                                                                                                    syspurpose==1.28.36                                                                                                    
systemd-python==234                                                                                                  urllib3==1.24.2                                                                                                      webencodings==0.5.1                                                                                                  xmltodict==0.13.0      

Dick Visser

unread,
Nov 20, 2023, 12:16:20 PM11/20/23
to ansible...@googlegroups.com
On Mon, 20 Nov 2023 at 16:21, Axel Padilla <axelfa...@gmail.com> wrote:

Everything was working fine until I updated it to the latest version of Ansible.

Logically that is the cause of your problem. To solve it we need more context.
Which of the methods mentioned on https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html did you use to install ansible initially?
And what commands did you run to upgrade "it"?


 
Reply all
Reply to author
Forward
0 new messages