• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

kvm virt-manager 报错35解决方案


Recommended Posts


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


yum search python2-urllib3

Warning: No matches found for: python2-urllib3
No matches found

yum search 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
python-urllib3.noarch:带有线程安全连接池和文件的Python HTTP库发布
python34-urllib3.noarch:具有线程安全连接池和文件发布的Python 3.6 HTTP库
python36-urllib3.noarch:具有线程安全连接池和文件发布功能的Python 3.6 HTTP库

- So I proceed removing urllib3 installed with pip2:

pip2 uninstall urllib3


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

重装  python-requests

yum reinstall python-requests

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
  python-requests.noarch 0:2.6.0-8.el7_7
Dependency Installed:
  python-urllib3.noarch 0:1.10.2-7.el7


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now