Bug 1380530

Summary: [abrt] virt-manager: __init__.py:61:<module>:ImportError: cannot import name DependencyWarning
Product: [Fedora] Fedora Reporter: Mikael <mikael79>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: berrange, crobinso, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/00c3e12d78943b7b54d21f5c9be69764f2bb20c9
Whiteboard: abrt_hash:f28f233caffa3586818aadabb797d0739fca6e3b;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-13 17:03:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Mikael 2016-09-29 21:29:44 UTC
Description of problem:
Following instructions at 
https://fedoraproject.org/wiki/Getting_started_with_virtualization?rd=Virtualization_Quick_Start
to get started with/learn about virtualization. 
1. Installed the virtualization group via 
  $ su -c "dnf install @virtualization"
2. Started libvirtd successfully
3a. Tried to look at the help 
  $ virt-install --help 
3b. ...as well as tried the graphical interface via 
  $ virt-manager 
Both  complain that:

> from .packages.urllib3.exceptions import DependencyWarning
> ImportError: cannot import name DependencyWarning

According to pip, urllib3 is already installed.

Version-Release number of selected component:
virt-manager-1.4.0-3.fc24

Additional info:
reporter:       libreport-2.7.2
cmdline:        /usr/bin/python2 /usr/share/virt-manager/virt-manager
dso_list:       virt-manager-common-1.4.0-3.fc24.noarch
executable:     /usr/share/virt-manager/virt-manager
kernel:         4.7.4-200.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
#1 <module> in /usr/lib/python2.7/site-packages/requests/__init__.py:61
#2 <module> in /usr/share/virt-manager/virtinst/urlfetcher.py:34
#3 <module> in /usr/share/virt-manager/virtinst/distroinstaller.py:23
#4 <module> in /usr/share/virt-manager/virtinst/__init__.py:89
#5 <module> in /usr/share/virt-manager/virt-manager:33

Comment 1 Mikael 2016-09-29 21:29:51 UTC
Created attachment 1206054 [details]
File: backtrace

Comment 2 Mikael 2016-09-29 21:29:52 UTC
Created attachment 1206055 [details]
File: environ

Comment 3 Cole Robinson 2016-12-13 17:03:56 UTC
Pretty sure this is an issue with python-requests, possibly a conflict between a system installed version, and a pip installed version. Do a 'find / -name requests' to try and locate the culprit. If that doesn't pinpoint it, feel free to reopen