Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1043829

Summary: Python stack-dump on selecting package dependencies after removing a package
Product: [Fedora] Fedora Reporter: alberth289346
Component: yumexAssignee: Tim Lauridsen <tla>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: tla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yumex-3.0.16-1.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-08 19:15:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description alberth289346 2013-12-17 10:05:32 UTC
Description of problem:

After selecting and removing a package, click at "package dependencies". A window pops up with a Python stack-trace (and also the text is dumped onto the console):

Exception: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 1504, in dispatcher
    self.parse_command(args[0], args[1:])
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 1486, in parse_command
    self.get_dependencies(args)
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 779, in get_dependencies
    deps = self.yumbase.findDeps([po])
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3062, in findDeps
    reqs = pkg.requires
AttributeError: 'NoneType' object has no attribute 'requires'


Steps to Reproduce:
1. start yumex (I run it from a terminal)
2. it comes up empty (no updates to install)
3. type a package name (in my case "berusky"), and select the packages you want to remove.
4. click "apply"
5. wait until the packages are removed, the window is again empty.
6. click "package dependencies" (bottom icon at the right/bottom-half of the window).
7. the stack-dump is produced.

I reproduced this on two occasions, so the actual package being removed is probably not relevant. Maybe not having updates to perform is not relevant either.


Additional info:

The console session (after replacing my home-directory with $HOME)

$  yumex
10:41:17 : INFO - Using config file : $HOME/yumex/yumex.conf
10:41:17 : INFO - Using config file : $HOME/yumex/yumex.conf
10:41:18 : DEBUG - network interface em1 (r8169) is connected
10:41:18 : INFO - Connected to an network
10:41:18 : DEBUG - network interface em1 (r8169) is connected
10:41:18 : INFO - Starting yum child process
10:41:18 : INFO - YUM: Yum Version : 3.4.3
10:41:18 : INFO - YUM: Loaded plugins: auto-update-debuginfo, fastestmirror, langpacks
10:41:19 : INFO - Getting available updates
10:41:19 : INFO - Downloaded : repomdTBJlYctmp.xml ( 2.7 k )
10:41:20 : INFO - Downloaded : repomdGfkpxXtmp.xml ( 2.7 k )
10:41:21 : INFO - Downloaded : updates-debuginfo/19/x86_64/metalink ( 29 k )
10:41:21 : INFO - Downloaded : repomd_2DMJZtmp.xml ( 3.0 k )
10:41:21 : INFO - YUM: Loading mirror speeds from cached hostfile
10:41:22 : INFO - Downloaded : updates/19/x86_64/metalink ( 30 k )
10:41:22 : INFO - YUM:  * fedora: mirror.i3d.net
10:41:22 : INFO - YUM:  * fedora-debuginfo: be.mirror.eurid.eu
10:41:22 : INFO - YUM:  * rpmfusion-free: mir01.syntis.net
10:41:22 : INFO - YUM:  * rpmfusion-free-debuginfo: mir01.syntis.net
10:41:22 : INFO - YUM:  * rpmfusion-free-updates: mir01.syntis.net
10:41:22 : INFO - YUM:  * rpmfusion-free-updates-debuginfo: mir01.syntis.net
10:41:22 : INFO - YUM:  * rpmfusion-nonfree: mir01.syntis.net
10:41:22 : INFO - YUM:  * rpmfusion-nonfree-debuginfo: mir01.syntis.net
10:41:22 : INFO - YUM:  * rpmfusion-nonfree-updates: mir01.syntis.net
10:41:22 : INFO - YUM:  * rpmfusion-nonfree-updates-debuginfo: mir01.syntis.net
10:41:22 : INFO - YUM:  * updates: be.mirror.eurid.eu
10:41:22 : INFO - YUM:  * updates-debuginfo: be.mirror.eurid.eu
10:41:23 : INFO - Downloaded : adobe-linux-x86_64 ( 951  )
10:41:23 : INFO - Downloaded : rpmfusion-free-updates/19/x86_64 ( 3.3 k )
10:41:23 : INFO - Downloaded : rpmfusion-nonfree-updates/19/x86_64 ( 3.3 k )
10:41:23 : INFO - Downloaded : updates/19/x86_64 ( 4.6 k )
10:41:28 : INFO - 0 packages returned
10:41:28 : INFO - Getting available obsoletes
10:41:28 : INFO - 0 packages returned
10:41:28 : INFO - Adding Packages to view
10:41:28 : INFO - Added 0 Packages to view
10:41:57 : DEBUG - network interface em1 (r8169) is connected
10:41:57 : INFO - Closing rpm db and releasing yum lock
10:41:57 : INFO - yum backend process is ended
10:41:57 : INFO - exitcode from backend : 0
10:41:58 : INFO - Starting yum child process
10:41:58 : INFO - Using the following repositories :
fedora,rpmfusion-free-updates,adobe-linux-x86_64,rpmfusion-nonfree-updates,rpmfusion-free,updates,rpmfusion-nonfree


10:42:05 : INFO - YUM: Yum Version : 3.4.3
10:42:05 : INFO - YUM: Loaded plugins: auto-update-debuginfo, fastestmirror, langpacks
10:42:05 : INFO - Setting Yum Option gpgcheck = True
10:42:05 : INFO - Setting Yum Option skip_broken = False
10:42:05 : INFO - Setting Yum Option clean_requirements_on_remove = False
10:42:05 : INFO - Getting available updates
10:42:06 : INFO - Downloaded : repomdXjIZQZtmp.xml ( 2.7 k )
10:42:06 : INFO - Downloaded : repomdsIxkp_tmp.xml ( 2.7 k )
10:42:07 : INFO - Downloaded : updates-debuginfo/19/x86_64/metalink ( 29 k )
10:42:08 : INFO - Downloaded : repomdLmE3nstmp.xml ( 3.0 k )
10:42:08 : INFO - YUM: Loading mirror speeds from cached hostfile
10:42:08 : INFO - Downloaded : updates/19/x86_64/metalink ( 30 k )
10:42:09 : INFO - YUM:  * fedora: mirror.1000mbps.com
10:42:09 : INFO - YUM:  * fedora-debuginfo: mirror.1000mbps.com
10:42:09 : INFO - YUM:  * rpmfusion-free: mirror.nl.leaseweb.net
10:42:09 : INFO - YUM:  * rpmfusion-free-debuginfo: mirror.nl.leaseweb.net
10:42:09 : INFO - YUM:  * rpmfusion-free-updates: mirror.nl.leaseweb.net
10:42:09 : INFO - YUM:  * rpmfusion-free-updates-debuginfo: mirror.nl.leaseweb.net
10:42:09 : INFO - YUM:  * rpmfusion-nonfree: mirror.nl.leaseweb.net
10:42:09 : INFO - YUM:  * rpmfusion-nonfree-debuginfo: mirror.nl.leaseweb.net
10:42:09 : INFO - YUM:  * rpmfusion-nonfree-updates: mirror.nl.leaseweb.net
10:42:09 : INFO - YUM:  * rpmfusion-nonfree-updates-debuginfo: mirror.nl.leaseweb.net
10:42:09 : INFO - YUM:  * updates: mirror.1000mbps.com
10:42:09 : INFO - YUM:  * updates-debuginfo: mirror.1000mbps.com
10:42:09 : INFO - Downloaded : adobe-linux-x86_64 ( 951  )
10:42:09 : INFO - Downloaded : rpmfusion-free-updates/19/x86_64 ( 3.3 k )
10:42:09 : INFO - Downloaded : rpmfusion-nonfree-updates/19/x86_64 ( 3.3 k )
10:42:09 : INFO - Downloaded : updates/19/x86_64 ( 4.6 k )
10:42:10 : INFO - 0 packages returned
10:42:11 : INFO - Getting available obsoletes
10:42:11 : INFO - 0 packages returned
10:42:11 : INFO - YUM: --> Running transaction check
10:42:11 : INFO - YUM: ---> Package berusky.x86_64 0:1.6-2.fc19 will be erased
10:42:11 : INFO - YUM: ---> Package berusky-data.noarch 0:1.6-2.fc19 will be erased
10:42:12 : INFO - YUM: --> Finished Dependency Resolution
10:42:16 : INFO - YUM: Running Transaction Check
10:42:17 : INFO - YUM: --> Populating transaction set with selected packages. Please wait.
10:42:17 : INFO - YUM: ---> Package berusky-data.noarch 0:1.6-2.fc19 will be erased
10:42:17 : INFO - YUM: ---> Package berusky.x86_64 0:1.6-2.fc19 will be erased
10:42:18 : INFO - berusky-1.6-2.fc19.x86_64 is erased
10:42:22 : INFO - berusky-data-1.6-2.fc19.noarch is erased
10:42:23 : INFO - Transaction completed successfully
10:42:23 : INFO - Closing rpm db and releasing yum lock
10:42:23 : INFO - yum backend process is ended
10:42:23 : DEBUG - network interface em1 (r8169) is connected
10:42:23 : INFO - Starting yum child process
10:42:23 : INFO - Using the following repositories :
fedora,rpmfusion-free-updates,adobe-linux-x86_64,rpmfusion-nonfree-updates,rpmfusion-free,updates,rpmfusion-nonfree


10:42:23 : INFO - exitcode from backend : 0
10:42:23 : INFO - YUM: Yum Version : 3.4.3
10:42:23 : INFO - YUM: Loaded plugins: auto-update-debuginfo, fastestmirror, langpacks
10:42:24 : INFO - Getting available updates
10:42:24 : INFO - YUM: Loading mirror speeds from cached hostfile
10:42:24 : INFO - YUM:  * fedora: mirror.1000mbps.com
10:42:24 : INFO - YUM:  * fedora-debuginfo: mirror.1000mbps.com
10:42:24 : INFO - YUM:  * rpmfusion-free: mirror.nl.leaseweb.net
10:42:24 : INFO - YUM:  * rpmfusion-free-debuginfo: mirror.nl.leaseweb.net
10:42:24 : INFO - YUM:  * rpmfusion-free-updates: mirror.nl.leaseweb.net
10:42:24 : INFO - YUM:  * rpmfusion-free-updates-debuginfo: mirror.nl.leaseweb.net
10:42:24 : INFO - YUM:  * rpmfusion-nonfree: mirror.nl.leaseweb.net
10:42:24 : INFO - YUM:  * rpmfusion-nonfree-debuginfo: mirror.nl.leaseweb.net
10:42:24 : INFO - YUM:  * rpmfusion-nonfree-updates: mirror.nl.leaseweb.net
10:42:24 : INFO - YUM:  * rpmfusion-nonfree-updates-debuginfo: mirror.nl.leaseweb.net
10:42:24 : INFO - YUM:  * updates: mirror.1000mbps.com
10:42:24 : INFO - YUM:  * updates-debuginfo: mirror.1000mbps.com
10:42:25 : INFO - 0 packages returned
10:42:25 : INFO - Getting available obsoletes
10:42:25 : INFO - 0 packages returned
10:42:25 : INFO - Adding Packages to view
10:42:25 : INFO - Added 0 Packages to view
10:42:33 : INFO - YUM: Traceback (most recent call last):
10:42:33 : INFO - YUM:   File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 1504, in dispatcher
10:42:33 : INFO - YUM:     self.parse_command(args[0], args[1:])
10:42:33 : INFO - YUM:   File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 1486, in parse_command
10:42:33 : INFO - YUM:     self.get_dependencies(args)
10:42:33 : INFO - YUM:   File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 779, in get_dependencies
10:42:33 : INFO - YUM:     deps = self.yumbase.findDeps([po])
10:42:33 : INFO - YUM:   File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3062, in findDeps
10:42:33 : INFO - YUM:     reqs = pkg.requires
10:42:33 : INFO - YUM: AttributeError: 'NoneType' object has no attribute 'requires'
Exception: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 1504, in dispatcher
    self.parse_command(args[0], args[1:])
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 1486, in parse_command
    self.get_dependencies(args)
  File "/usr/lib/python2.7/site-packages/yumexbackend/yum_server.py", line 779, in get_dependencies
    deps = self.yumbase.findDeps([po])
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 3062, in findDeps
    reqs = pkg.requires
AttributeError: 'NoneType' object has no attribute 'requires'

Comment 2 Fedora Update System 2014-10-05 09:15:00 UTC
yumex-3.0.16-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/yumex-3.0.16-1.fc21

Comment 3 Fedora Update System 2014-10-05 09:15:11 UTC
yumex-3.0.16-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yumex-3.0.16-1.fc20

Comment 4 Fedora Update System 2014-10-06 05:03:58 UTC
Package yumex-3.0.16-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yumex-3.0.16-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-12255/yumex-3.0.16-1.fc21
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-10-08 19:15:21 UTC
yumex-3.0.16-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2014-10-14 04:44:39 UTC
yumex-3.0.16-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.