View Issue Details

IDProjectCategoryView StatusLast Update
0013559CentOS-7pki-corepublic2017-07-16 11:11
Reporterhnijbacker 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0013559: [abrt] pki-base: __init__.py:95:load_module:ImportError: No module named 'requests.packages.urllib3'
DescriptionDescription of problem:
During configuring of the free IPA server:

sudo ipa-server-install --setup-dns --domain=example.com --realm=EXAMPLE.COM --ds-password=password --admin-password=password --forwarder=192.168.4.200 --reverse-zone=4.168.192.in-addr.arpa. --unattended
WARNING: yacc table file version is out of date
Traceback (most recent call last):
  File "/sbin/ipa-server-install", line 25, in <module>
    from ipaserver.install.server import Server
  File "/usr/lib/python2.7/site-packages/ipaserver/install/server/__init__.py", line 5, in <module>
    from .install import Server
  File "/usr/lib/python2.7/site-packages/ipaserver/install/server/install.py", line 36, in <module>
    from ipaserver.install import (
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ca.py", line 9, in <module>
    from ipaserver.install import cainstance, dsinstance, bindinstance
  File "/usr/lib/python2.7/site-packages/ipaserver/install/cainstance.py", line 72, in <module>
    from ipaserver.install.dogtaginstance import (export_kra_agent_pem,
  File "/usr/lib/python2.7/site-packages/ipaserver/install/dogtaginstance.py", line 30, in <module>
    from pki.client import PKIConnection
  File "/usr/lib/python2.7/site-packages/pki/__init__.py", line 32, 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 .packages.urllib3.exceptions import HTTPError as BaseHTTPError
  File "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 95, in load_module
    raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'requests.packages.urllib3'

$ sudo pip list
ansible (2.2.0.0)
asn1crypto (0.22.0)
backports.ssl-match-hostname (3.4.0.2)
bcrypt (3.1.3)
blivet (0.61.15.59)
Brlapi (0.6.0)
certifi (2017.4.17)
cffi (1.10.0)
chardet (3.0.4)
configobj (4.7.2)
coverage (3.6b3)
cryptography (1.9)
cssselect (1.0.1)
cupshelpers (1.0)
custodia (0.1.0)
decorator (3.4.0)
di (0.3)
dnspython (1.12.0)
enum34 (1.1.6)
ethtool (0.8)
firstboot (19.5)
freeipa (2.0.0a0)
fros (1.0)
gssapi (1.2.0)
idna (2.5)
iniparse (0.4)
initial-setup (0.3.9.36)
ipaclient (4.4.0)
ipaddress (1.0.18)
ipalib (4.4.0)
ipaplatform (4.4.0)
ipapython (4.4.0)
IPy (0.75)
javapackages (1.0.0)
Jinja2 (2.9.6)
jwcrypto (0.2.1)
kdcproxy (0.3.2)
kitchen (1.1.1)
langtable (0.0.31)
lxml (3.2.1)
MarkupSafe (1.0)
netaddr (0.7.5)
netifaces (0.10.4)
ntplib (0.3.2)
paramiko (2.2.1)
perf (0.1)
pip (8.1.2)
ply (3.4)
policycoreutils-default-encoding (0.1)
pyasn1 (0.2.3)
pycparser (2.17)
pycrypto (2.6.1)
pycups (1.9.63)
pycurl (7.19.0)
pygobject (3.14.0)
pygpgme (0.3)
pyinotify (0.9.4)
pykickstart (1.99.66.10)
pyliblzma (0.5.3)
PyNaCl (1.1.2)
pyOpenSSL (0.13.1)
pyparted (3.9)
pysmbc (1.0.13)
python-augeas (0.5.0)
python-dateutil (1.5)
python-dmidecode (3.10.13)
python-ldap (2.4.15)
python-meh (0.25.2)
python-memcached (1.48)
python-nss (0.16.0)
python-yubico (1.2.3)
pytz (2012d)
pyudev (0.15)
pyusb (1.0.0b1)
pyxattr (0.5.1)
PyYAML (3.12)
qrcode (5.0.1)
requests (2.18.1)
seobject (0.1)
sepolicy (1.1)
setroubleshoot (1.1)
setuptools (36.0.1)
six (1.10.0)
slip (0.4.0)
slip.dbus (0.4.0)
SSSDConfig (1.14.0)
tzupdate (1.2.0)
urlgrabber (3.10)
urllib3 (1.21.1)
wheel (0.29.0)
yum-langpacks (0.4.2)
yum-metadata-parser (1.1.4)

Version-Release number of selected component:
pki-base-10.3.3-18.el7_3

Truncated backtrace:
__init__.py:95:load_module:ImportError: No module named 'requests.packages.urllib3'

Traceback (most recent call last):
  File "/sbin/pki-upgrade", line 28, in <module>
    import pki
  File "/usr/lib/python2.7/site-packages/pki/__init__.py", line 32, 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 .packages.urllib3.exceptions import HTTPError as BaseHTTPError
  File "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 95, in load_module
    raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'requests.packages.urllib3'

Local variables in innermost frame:
real_meta_path: [<requests.packages.VendorAlias object at 0x7f15adfcd310>, <urllib3.packages.six._SixMetaPathImporter object at 0x7f15a3a4a350>]
self: <requests.packages.VendorAlias object at 0x7f15adfcd310>
m: <urllib3.packages.six._SixMetaPathImporter object at 0x7f15a3a4a350>
name: 'requests.packages.urllib3'
real_name: 'urllib3'
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python /sbin/pki-upgrade --silent
dso_list: python-requests-2.6.0-1.el7_1.noarch
executable: /sbin/pki-upgrade
kernel: 3.10.0-514.10.2.el7.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: The problem is reproducible
runlevel: N 5
type: Python
uid: 0
TagsNo tags attached.
abrt_hashfd69837c09f42f077fd70b4d2c54094ee0d69d53
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/978df07661943467adbffe911080b45133552dd3

Activities

hnijbacker

hnijbacker

2017-07-16 11:11

reporter  

backtrace (1,255 bytes)
__init__.py:95:load_module:ImportError: No module named 'requests.packages.urllib3'

Traceback (most recent call last):
  File "/sbin/pki-upgrade", line 28, in <module>
    import pki
  File "/usr/lib/python2.7/site-packages/pki/__init__.py", line 32, 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 .packages.urllib3.exceptions import HTTPError as BaseHTTPError
  File "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 95, in load_module
    raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'requests.packages.urllib3'

Local variables in innermost frame:
real_meta_path: [<requests.packages.VendorAlias object at 0x7f15adfcd310>, <urllib3.packages.six._SixMetaPathImporter object at 0x7f15a3a4a350>]
self: <requests.packages.VendorAlias object at 0x7f15adfcd310>
m: <urllib3.packages.six._SixMetaPathImporter object at 0x7f15a3a4a350>
name: 'requests.packages.urllib3'
real_name: 'urllib3'
backtrace (1,255 bytes)
environ (2,147 bytes)
LESSOPEN=||/usr/bin/lesspipe.sh %s
LOGNAME=root
USER=root
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin
DISPLAY=:0
LANG=en_US.UTF-8
TERM=xterm-256color
SHELL=/bin/bash
XAUTHORITY=/run/gdm/auth-for-vagrant-eGdvGT/database
SHLVL=2
HISTSIZE=1000
SUDO_USER=vagrant
USERNAME=vagrant
SUDO_UID=1000
_=/sbin/pki-upgrade
SUDO_COMMAND=/bin/bash
SUDO_GID=1000
HOSTNAME=labipa.example.com
PWD=/
MAIL=/var/spool/mail/vagrant
LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
environ (2,147 bytes)
machineid (135 bytes)
systemd=698bc08a7b084e3f9625a638e43ddabd
sosreport_uploader-dmidecode=07db6c1d4e915df4a33f95906e7697ce362160b1aff3d4cccdadd09bfc3b8995
machineid (135 bytes)

Issue History

Date Modified Username Field Change
2017-07-16 11:11 hnijbacker New Issue
2017-07-16 11:11 hnijbacker File Added: backtrace
2017-07-16 11:11 hnijbacker File Added: environ
2017-07-16 11:11 hnijbacker File Added: machineid