View Issue Details

IDProjectCategoryView StatusLast Update
0015588CentOS-7yumpublic2018-12-15 09:35
Reportersplang 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0015588: [abrt] yum: depsolve.py:1597:_compare_providers:AttributeError: FakeRepository instance has no attribute 'compare_providers_p...
DescriptionVersion-Release number of selected component:
yum-3.4.3-161.el7.centos

Truncated backtrace:
depsolve.py:1597:_compare_providers:AttributeError: FakeRepository instance has no attribute 'compare_providers_priority'

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 375, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 184, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 585, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1937, in doCommand
    return base.resolveDepCli(extcmds)
  File "/usr/share/yum-cli/cli.py", line 1662, in resolveDepCli
    ipkg = self.returnInstalledPackageByDep(arg)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4393, in returnInstalledPackageByDep
    req=errstring)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4419, in _bestPackageFromList
    bestlist = self._compare_providers(pkglist, reqpo=None, req=req)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1597, in _compare_providers
    pkgresults[po] += (100 - po.repo.compare_providers_priority) * 10
AttributeError: FakeRepository instance has no attribute 'compare_providers_priority'

Local variables in innermost frame:
obsoleted: False
_common_sourcerpm: <function _common_sourcerpm at 0x7f10b7d406e0>
newest: <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>
_pkg2prov_version: <function _pkg2prov_version at 0x7f10b7d40a28>
res: <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>
self: <cli.YumBaseCli object at 0x7f10b8541350>
req: 'libX11'
pkgresults: {<RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>: 1005, <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>: 1000}
lpos: {'libX11': [<YumAvailablePackageSqlite : libX11-1.6.5-2.el7.x86_64 (0x7f10b73f9350)>]}
_common_prefix_len: <function _common_prefix_len at 0x7f10b7d40848>
rpmdbpkgs: [<RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>, <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>]
arches: ('amd64',)
pkgs: [<RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>, <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>]
_compare_arch_distance: <function _compare_arch_distance at 0x7f10b7d409b0>
reqpo: None
nextpo: <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>
unique_nevra_pkgs: {('libX11', 'i686', '0', '1.6.5', '2.el7'): <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>, ('libX11', 'x86_64', '0', '1.6.5', '2.el7'): <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>}
thisarch: 'amd64'
po: <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>
pkg: <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python /bin/yum resolvedep libX11 reinstall
executable: /bin/yum
kernel: 4.19.8-1.el7.elrepo.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: 0
TagsNo tags attached.
abrt_hashd264dd6b7c03a64a59dc3db8b8cca2be45dfa63a
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/cd88ce6365bb5d5ced74f1a7a468fa8542b784ce

Activities

splang

splang

2018-12-14 17:25

reporter  

backtrace (2,924 bytes)
depsolve.py:1597:_compare_providers:AttributeError: FakeRepository instance has no attribute 'compare_providers_priority'

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 375, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 184, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 585, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1937, in doCommand
    return base.resolveDepCli(extcmds)
  File "/usr/share/yum-cli/cli.py", line 1662, in resolveDepCli
    ipkg = self.returnInstalledPackageByDep(arg)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4393, in returnInstalledPackageByDep
    req=errstring)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4419, in _bestPackageFromList
    bestlist = self._compare_providers(pkglist, reqpo=None, req=req)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1597, in _compare_providers
    pkgresults[po] += (100 - po.repo.compare_providers_priority) * 10
AttributeError: FakeRepository instance has no attribute 'compare_providers_priority'

Local variables in innermost frame:
obsoleted: False
_common_sourcerpm: <function _common_sourcerpm at 0x7f10b7d406e0>
newest: <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>
_pkg2prov_version: <function _pkg2prov_version at 0x7f10b7d40a28>
res: <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>
self: <cli.YumBaseCli object at 0x7f10b8541350>
req: 'libX11'
pkgresults: {<RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>: 1005, <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>: 1000}
lpos: {'libX11': [<YumAvailablePackageSqlite : libX11-1.6.5-2.el7.x86_64 (0x7f10b73f9350)>]}
_common_prefix_len: <function _common_prefix_len at 0x7f10b7d40848>
rpmdbpkgs: [<RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>, <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>]
arches: ('amd64',)
pkgs: [<RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>, <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>]
_compare_arch_distance: <function _compare_arch_distance at 0x7f10b7d409b0>
reqpo: None
nextpo: <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>
unique_nevra_pkgs: {('libX11', 'i686', '0', '1.6.5', '2.el7'): <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>, ('libX11', 'x86_64', '0', '1.6.5', '2.el7'): <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>}
thisarch: 'amd64'
po: <RPMInstalledPackage : libX11-1.6.5-2.el7.x86_64 (0x7f10b7cafa10)>
pkg: <RPMInstalledPackage : libX11-1.6.5-2.el7.i686 (0x7f10b7caf550)>
backtrace (2,924 bytes)
environ (2,158 bytes)
LOGNAME=root
USER=root
QTDIR=/usr/lib64/qt-3.3
XDG_VTNR=1
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DISPLAY=:0
LANG=en_GB.utf8
TERM=xterm-256color
SHELL=/bin/bash
XAUTHORITY=/var/run/lightdm/alan/xauthority
HISTSIZE=100000
SUDO_USER=alan
HOME=/root
USERNAME=root
SUDO_UID=1000
XDG_SESSION_ID=1
SUDO_COMMAND=/bin/yum resolvedep libX11 reinstall
SUDO_GID=1000
HOSTNAME=tribble.gassy.me
COLORTERM=truecolor
MAIL=/var/spool/mail/alan
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:
XDG_SEAT=seat0
environ (2,158 bytes)
machineid (135 bytes)
systemd=85eeb43c1754423284b5573946c84975
sosreport_uploader-dmidecode=2665d035c60afe8118d6d52fcdfc1d79eeaeb46b5b51f88c9b7429fe03d0191e
machineid (135 bytes)
SiriusP2324

SiriusP2324

2018-12-14 22:55

reporter   ~0033344

According to the man page for yum, resolvedep is maintained for legacy purposes only, and should no longer be used. Try 'yum provides' or 'repoquery --repoid=<repoid> -a.'

        * resolvedep dep1 [dep2] [...]
           (maintained for legacy reasons only - use repoquery or yum provides)


       resolvedep
              Is used to list packages providing the specified dependencies,
              at most one package is listed per dependency. This command is
              maintained for legacy reasons only, use repoquery instead.
splang

splang

2018-12-15 09:35

reporter   ~0033347

Thank you.

Please close.

Issue History

Date Modified Username Field Change
2018-12-14 17:25 splang New Issue
2018-12-14 17:25 splang File Added: backtrace
2018-12-14 17:25 splang File Added: environ
2018-12-14 17:25 splang File Added: machineid
2018-12-14 22:55 SiriusP2324 Note Added: 0033344
2018-12-15 09:35 splang Note Added: 0033347