Bug 1047409

Summary: [abrt] yum: igroups.py:114:_read_pkg_grps:ValueError: invalid literal for int() with base 10: ''
Product: [Fedora] Fedora Reporter: mswal28462 <mswal2846>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: admiller, ffesti, firas.alkafri, jzeleny, matheu14, packaging-team-maint, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/afb27b67ee76fdd53248909b83982b0bcd5fbae6
Whiteboard: abrt_hash:2db10194fc696fab2f322b5bbd121b8fa2102cfd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-03 15:29:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description mswal28462 2013-12-31 01:30:52 UTC
Description of problem:
attempted to install mate

Version-Release number of selected component:
yum-3.4.3-128.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /bin/yum install @mate
executable:     /bin/yum
kernel:         3.12.6-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
igroups.py:114:_read_pkg_grps:ValueError: invalid literal for int() with base 10: ''

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 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 174, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 570, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 435, in doCommand
    return base.installPkgs(extcmds, basecmd=basecmd)
  File "/usr/share/yum-cli/cli.py", line 966, in installPkgs
    txmbrs = self.install(pattern=arg)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4691, in install
    return self._at_groupinstall(kwargs['pattern'])
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4461, in _at_groupinstall
    try: comps = self.comps
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1094, in <lambda>
    comps = property(fget=lambda self: self._getGroups(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 933, in _getGroups
    for gid in self.igroups.groups:
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1103, in <lambda>
    igroups = property(fget=lambda self: self._getIGroups(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1063, in _getIGroups
    self._igroups = yum.igroups.InstalledGroups(db_path=pdb_path)
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 102, in __init__
    self._read_pkg_grps(db_path)
  File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 114, in _read_pkg_grps
    ver = int(_read_str(fo))
ValueError: invalid literal for int() with base 10: ''

Local variables in innermost frame:
_read_str: <function _read_str at 0x1aaf5f0>
db_path: '/var/lib/yum/groups'
self: <yum.igroups.InstalledGroups object at 0x1ab0310>
fo: <open file '/var/lib/yum/groups/installed', mode 'r' at 0x184adb0>

Comment 1 mswal28462 2013-12-31 01:30:57 UTC
Created attachment 843598 [details]
File: backtrace

Comment 2 mswal28462 2013-12-31 01:30:58 UTC
Created attachment 843599 [details]
File: environ

Comment 3 mswal28462 2013-12-31 02:47:31 UTC
Another user experienced a similar problem:

trying to install cinnamon

reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /bin/yum install cinnamon
executable:     /bin/yum
kernel:         3.12.6-300.fc20.x86_64
package:        yum-3.4.3-128.fc20
reason:         igroups.py:114:_read_pkg_grps:ValueError: invalid literal for int() with base 10: ''
runlevel:       N 5
type:           Python
uid:            0

Comment 4 mswal28462 2014-01-01 04:23:36 UTC
Another user experienced a similar problem:

trying to do a "yum update"

reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /bin/yum update
executable:     /bin/yum
kernel:         3.12.6-300.fc20.x86_64
package:        yum-3.4.3-128.fc20
reason:         igroups.py:114:_read_pkg_grps:ValueError: invalid literal for int() with base 10: ''
runlevel:       N 5
type:           Python
uid:            0

Comment 5 Valentina Mukhamedzhanova 2014-03-03 15:29:43 UTC

*** This bug has been marked as a duplicate of bug 971307 ***