Bug 281591 (Pirut_crash_1)

Summary: pirut crashes when adding many files
Product: [Fedora] Fedora Reporter: Need Real Name <alan.lake>
Component: pirutAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 7CC: james.antill
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-11 21:12:23 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:

Description Need Real Name 2007-09-06 22:27:23 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.5) Gecko/20070718 Fedora/2.0.0.5-1.fc7 Firefox/2.0.0.5

Description of problem:
I did a new install of F7 with a minimum number of packages (because so many need updating anyway).  I used pirut to try to add all of the packages that I thought I'd need.  It crashed, but I don't recall whether it was when I pressed "Apply" or when I approved the additional packages needed.

Version-Release number of selected component (if applicable):
pirut-1.3.9

How reproducible:
Didn't try


Steps to Reproduce:
1.See description
2.
3.

Actual Results:


Expected Results:
Pirut should have completed normally.

Additional info:
I was successful in using pirut to add the files I needed by adding the files from one (left pane) menu at a time.

Comment 1 Need Real Name 2007-09-06 22:31:00 UTC
Component: pirut
Summary: TB6ea86385 sqlitesack.py:794:excludeArchs:AttributeError: 'NoneType'
object has no attribute 'cursor'

Traceback (most recent call last):
  File "/usr/sbin/pirut", line 441, in <module>
    main()
  File "/usr/sbin/pirut", line 434, in main
    pm = PackageManager(options.config, options.onlyrepo)
  File "/usr/sbin/pirut", line 61, in __init__
    GraphicalYumBase.__init__(self, False, config)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 124, in __init__
    self.reset()
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 223, in reset
    self.doTsSetup()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 64, in doTsSetup
    return self._getTs()
  File "/usr/lib/python2.5/site-packages/yum/depsolve.py", line 78, in _getTs
    self._tsInfo.setDatabases(self.rpmdb, self.pkgSack)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 517, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 382, in _getSacks
    self._pkgSack.excludeArchs(archlist)
  File "/usr/lib/python2.5/site-packages/yum/packageSack.py", line 336, in
excludeArchs
    sack.excludeArchs(archlist)
  File "/usr/lib/python2.5/site-packages/yum/sqlitesack.py", line 794, in
excludeArchs
    cur = cache.cursor()
AttributeError: 'NoneType' object has no attribute 'cursor'

Local variables in innermost frame:
arch_query: ('x86_64','athlon','i686','i586','i486','i386','noarch')
archlist: ["'x86_64'", "'athlon'", "'i686'", "'i586'", "'i486'", "'i386'",
"'noarch'"]
rep: fedora
cache: None
self: <yum.sqlitesack.YumSqlitePackageSack object at 0xfbc750>

Comment 2 Jeremy Katz 2007-09-07 14:58:15 UTC
What versions of yum and pirut was this with?

Comment 3 Need Real Name 2007-09-07 19:25:48 UTC
yum-3.2.4
pirut-1.3.9

Comment 4 Jeremy Katz 2007-09-11 21:12:23 UTC
This is fixed in CVS and will be in the update that will be getting pushed for
Fedora 7 within the next week or two.