View Issue Details

IDProjectCategoryView StatusLast Update
0016920CentOS-7virt-managerpublic2020-02-06 08:34
Reportergil_rdsw_frse 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0016920: [abrt] virt-manager: __init__.py:3:<module>:ImportError: cannot import name ssl_match_hostname
DescriptionDescription of problem:
While opening Virtual Machine Manager application

Version-Release number of selected component:
virt-manager-1.5.0-7.el7

Truncated backtrace:
#1 <module> in /usr/lib/python2.7/site-packages/urllib3/packages/__init__.py:3
#2 <module> in /usr/lib/python2.7/site-packages/urllib3/exceptions.py:2
#3 <module> in /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:11
#4 <module> in /usr/lib/python2.7/site-packages/urllib3/__init__.py:8
#5 <module> in /usr/lib/python2.7/site-packages/requests/exceptions.py:10
#6 <module> in /usr/lib/python2.7/site-packages/requests/utils.py:32
#7 <module> in /usr/lib/python2.7/site-packages/requests/__init__.py:58
#8 <module> in /usr/share/virt-manager/virtinst/urlfetcher.py:33
#9 <module> in /usr/share/virt-manager/virtinst/distroinstaller.py:23
#10 <module> in /usr/share/virt-manager/virtinst/__init__.py:90
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python2 /usr/share/virt-manager/virt-manager
executable: /usr/share/virt-manager/virt-manager
kernel: 3.10.0-1062.9.1.el7.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: Not sure how to reproduce the problem
runlevel: N 5
type: Python
uid: 1000
TagsNo tags attached.
abrt_hash42b799d1f209d2ff701de03597e98f36514f89b0
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/224e7727d3b5d0d677cc54a8291529d1220d835f

Activities

gil_rdsw_frse

gil_rdsw_frse

2020-01-14 08:55

reporter  

backtrace (7,926 bytes)
__init__.py:3:<module>:ImportError: cannot import name ssl_match_hostname

Traceback (most recent call last):
  File "/usr/share/virt-manager/virt-manager", line 35, in <module>
    from virtinst import util as util
  File "/usr/share/virt-manager/virtinst/__init__.py", line 90, in <module>
    from virtinst.distroinstaller import DistroInstaller
  File "/usr/share/virt-manager/virtinst/distroinstaller.py", line 23, in <module>
    from . import urlfetcher
  File "/usr/share/virt-manager/virtinst/urlfetcher.py", line 33, in <module>
    import requests
  File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/usr/lib/python2.7/site-packages/requests/utils.py", line 32, in <module>
    from .exceptions import InvalidURL
  File "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in <module>
    from urllib3.exceptions import HTTPError as BaseHTTPError
  File "/usr/lib/python2.7/site-packages/urllib3/__init__.py", line 8, in <module>
    from .connectionpool import (
  File "/usr/lib/python2.7/site-packages/urllib3/connectionpool.py", line 11, in <module>
    from .exceptions import (
  File "/usr/lib/python2.7/site-packages/urllib3/exceptions.py", line 2, in <module>
    from .packages.six.moves.http_client import (
  File "/usr/lib/python2.7/site-packages/urllib3/packages/__init__.py", line 3, in <module>
    from . import ssl_match_hostname
ImportError: cannot import name ssl_match_hostname

Local variables in innermost frame:
__builtins__: {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'memoryview': <type 'memoryview'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2013 Python Software Foundation.
All Rights Reserved.

Copyright (c) 2000 BeOpen.com.
All Rights Reserved.

Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.

Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits':     Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, '_': <bound method NullTranslations.gettext of <gettext.NullTranslations instance at 0x7ff87b730638>>, 'TypeError': <type 'exceptions.TypeError'>, 'license': See http://www.python.org/2.7/license.html, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <built-in function pow>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}
__file__: None
absolute_import: None
__package__: None
__path__: None
__name__: None
__doc__: None
backtrace (7,926 bytes)
dso_list (111 bytes)
python2-urllib3-1.24.1-2.el7.noarch
virt-manager-common-1.5.0-7.el7.noarch
python-requests-2.6.0-8.el7_7.noarch
dso_list (111 bytes)
environ (1,680 bytes)
LC_NUMERIC=it_IT.utf8
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GJS_DEBUG_OUTPUT=stderr
LC_MEASUREMENT=it_IT.utf8
LESSOPEN=||/usr/bin/lesspipe.sh %s
XDG_VTNR=1
QT_IM_MODULE=ibus
LOGNAME=devel
USER=devel
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/devel/.local/bin:/home/devel/bin
LC_PAPER=it_IT.utf8
QTDIR=/usr/lib64/qt-3.3
GUESTFISH_RESTORE=\e[0m
GUESTFISH_INIT=\e[1;34m
XDG_SESSION_DESKTOP=gnome
LANG=en_US.utf8
QTLIB=/usr/lib64/qt-3.3/lib
TERM=dumb
SHELL=/bin/bash
XAUTHORITY=/run/gdm/auth-for-devel-uhxk3a/database
SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2335,unix/unix:/tmp/.ICE-unix/2335
LC_MONETARY=it_IT.utf8
HISTSIZE=100000
WINDOWPATH=1
IMSETTINGS_INTEGRATE_DESKTOP=yes
GIO_LAUNCHED_DESKTOP_FILE_PID=14653
HOME=/home/devel
USERNAME=devel
IMSETTINGS_MODULE=none
SHLVL=1
GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/virt-manager.desktop
XDG_RUNTIME_DIR=/run/user/1000
GUESTFISH_PS1=\[\e[1;32m\]><fs>\[\e[0;31m\] 
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GDMSESSION=gnome
XMODIFIERS=@im=ibus
MAIL=/var/spool/mail/devel
QT_GRAPHICSSYSTEM_CHECKED=1
XDG_DATA_DIRS=/home/devel/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/
XDG_CURRENT_DESKTOP=GNOME
XDG_SESSION_ID=1
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Gc1LZvguBW,guid=c485b41600aee700b4620a3d5e1d60c4
DESKTOP_SESSION=gnome
DISPLAY=:0
GUESTFISH_OUTPUT=\e[0m
XDG_SESSION_TYPE=x11
HOSTNAME=rdsw-fsevergnini.gilardonirx.local
GDM_LANG=en_US.utf8
HISTCONTROL=ignoredups
QTINC=/usr/lib64/qt-3.3/include
PWD=/home/devel
XDG_MENU_PREFIX=gnome-
LC_TIME=it_IT.utf8
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
XDG_SEAT=seat0
environ (1,680 bytes)
machineid (135 bytes)
systemd=dd0ae39aa78242d8b6845704edbccd53
sosreport_uploader-dmidecode=7aa31dbcad6a0d0af2652893a414be2dbbaf1ba83acde7b9969f0afa5db7c654
machineid (135 bytes)
gil_rdsw_frse

gil_rdsw_frse

2020-01-28 11:07

reporter   ~0036145

I found a workaround valid for my installation.
All executed with root user:

- Remove python2-urllib3
rpm --erase --nodeps python2-urllib3-1.24.1-2.el7.noarch

- Install from EPEL pip for Python 2.7, then upgrade it.
yum install python2-pip.noarch
pip install --upgrade pip

- Install whit pip urllib3 (1.25.8)
pip2 install urllib3

I hope this will help someone.
Regards.
gil_rdsw_frse

gil_rdsw_frse

2020-02-06 08:34

reporter   ~0036214

I was reviewing my workaround and there's something strange.
I'm unable to find python2-urllib3 in the repos, this package apparently was the source off my problem.

yum search python2-urllib3
[CUT]
Warning: No matches found for: python2-urllib3
No matches found

yum search urllib3
[CUT]
================================================== N/S matched: urllib3 ==================================================
python-urllib3.noarch : Python HTTP library with thread-safe connection pooling and file post
python34-urllib3.noarch : Python 3.6 HTTP library with thread-safe connection pooling and file post
python36-urllib3.noarch : Python 3.6 HTTP library with thread-safe connection pooling and file post

- So I proceed removing urllib3 installed with pip2:
pip2 uninstall urllib3

- Next verify dependencies and fix errors:
yum check
Loaded plugins: changelog, fastestmirror, langpacks, merge-conf
python-requests-2.6.0-8.el7_7.noarch has missing requires of python-urllib3 >= ('0', '1.10.2', '1')
Error: check all

yum reinstall python-requests
[CUT]
Resolving Dependencies
--> Running transaction check
---> Package python-requests.noarch 0:2.6.0-8.el7_7 will be reinstalled
--> Processing Dependency: python-urllib3 >= 1.10.2-1 for package: python-requests-2.6.0-8.el7_7.noarch
--> Running transaction check
---> Package python-urllib3.noarch 0:1.10.2-7.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
[CUT]
Installed:
  python-requests.noarch 0:2.6.0-8.el7_7
Dependency Installed:
  python-urllib3.noarch 0:1.10.2-7.el7
Complete!

Now virt-manager works fine without manipulation on packages.
I'm not able to understand the source of python2-urllib3-1.24.1-2.el7.noarch, strange thing!

Regards

Issue History

Date Modified Username Field Change
2020-01-14 08:55 gil_rdsw_frse New Issue
2020-01-14 08:55 gil_rdsw_frse File Added: backtrace
2020-01-14 08:55 gil_rdsw_frse File Added: dso_list
2020-01-14 08:55 gil_rdsw_frse File Added: environ
2020-01-14 08:55 gil_rdsw_frse File Added: machineid
2020-01-28 11:07 gil_rdsw_frse Note Added: 0036145
2020-02-06 08:34 gil_rdsw_frse Note Added: 0036214