Bug 1259194

Summary: NameError: name 'self' is not defined
Product: [Fedora] Fedora Reporter: Alexander Todorov <atodorov>
Component: dnfAssignee: Honza Silhan <jsilhan>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: akurtako, bhurtelashish, bugzilla, bugzilla, fedora, jorti, jsilhan, mikhail.v.gavrilov, mikko.tiihonen, mluscon, nicolas.mailhot, omerusta, packaging-team-maint, pnemade, rholy, scottt.tw, spowd, tim.lauridsen, twohotis, vmukhame, vondruch, vtrefny
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 1.1.1-2.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-09 23:19:24 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 Alexander Todorov 2015-09-02 07:34:23 UTC
Description of problem:


# dnf install libreport* abrt*
Last metadata expiration check performed 0:05:28 ago on Wed Sep  2 03:27:19 2015.
Package libreport-cli-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package libreport-gtk-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package libreport-plugin-bugzilla-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package libreport-plugin-reportuploader-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package libreport-anaconda-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package libreport-filesystem-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package libreport-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package libreport-python3-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package libreport-web-2.6.2-4.fc24.x86_64 is already installed, skipping.
Package abrt-gui-libs-2.6.2-7.fc24.x86_64 is already installed, skipping.
Package abrt-libs-2.6.2-7.fc24.x86_64 is already installed, skipping.
Error: package abrt-atomic-2.6.2-7.fc24.x86_64 conflicts with abrt-addon-ccpp provided by abrt-addon-ccpp-2.6.2-7.fc24.x86_64
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 148, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 160, in resolving
    base.resolve(cli.demands.allow_erasing)
  File "/usr/lib/python3.4/site-packages/dnf/base.py", line 535, in resolve
    raise exc
dnf.exceptions.DepsolveError: package abrt-atomic-2.6.2-7.fc24.x86_64 conflicts with abrt-addon-ccpp provided by abrt-addon-ccpp-2.6.2-7.fc24.x86_64

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 195, in user_main
    errcode = main(args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 94, in main
    demands = self.cli.demands
NameError: name 'self' is not defined

# rpm -q dnf
dnf-1.1.1-1.fc24.noarch

Comment 1 Radek Holy 2015-09-04 13:59:07 UTC
*** Bug 1259672 has been marked as a duplicate of this bug. ***

Comment 2 Ömer Fadıl Usta 2015-09-05 23:44:37 UTC
This caused because of this commit : 
https://github.com/rpm-software-management/dnf/commit/7394b34937a9bf41244ce09b4d28517170da2f2a

Comment 3 Parag Nemade 2015-09-06 14:15:57 UTC
*** Bug 1260316 has been marked as a duplicate of this bug. ***

Comment 4 Parag Nemade 2015-09-06 14:17:05 UTC
*** Bug 1260359 has been marked as a duplicate of this bug. ***

Comment 5 Michal Luscon 2015-09-07 12:12:30 UTC
*** Bug 1260232 has been marked as a duplicate of this bug. ***

Comment 6 Radek Holy 2015-09-07 12:12:59 UTC
*** Bug 1260215 has been marked as a duplicate of this bug. ***

Comment 7 Heiko Adams 2015-09-07 17:24:29 UTC
Another user experienced a similar problem:

Tried to install gstreamer1-plugins-bad-freeworld from rpmFusion repository

reporter:       libreport-2.6.2
cmdline:        /usr/bin/python3 -OO /bin/dnf install gstreamer1-plugins-bad-freeworld
event_log:      2015-09-07-19:23:46> (»report_uReport« erfolgreich abgeschlossen)
executable:     /bin/dnf
kernel:         4.2.0-1.fc23.x86_64
package:        dnf-1.1.1-1.fc23
reason:         main.py:94:main:NameError: name 'self' is not defined
runlevel:       N 5
type:           Python3
uid:            0

Comment 8 Vojtech Trefny 2015-09-08 09:44:56 UTC
Another user experienced a similar problem:

Tried to install local package with unresolved dependecies.

-------------
$ sudo dnf install ./initial-setup-gui-0.3.36-1.fc23.x86_64.rpm 
[sudo] heslo pro vtrefny: 
Fedora 23 - x86_64                               66 MB/s |  43 MB     00:00    
Fedora 23 - x86_64 - Test Updates                63 MB/s |  12 MB     00:00    
Last metadata expiration check performed 0:00:05 ago on Tue Sep  8 11:40:47 2015.
Error: nothing provides initial-setup = 0.3.36-1.fc23 needed by initial-setup-gui-0.3.36-1.fc23.x86_64
Traceback (most recent call last):
...
-------------

reporter:       libreport-2.6.2
cmdline:        /usr/bin/python3 -OO /bin/dnf install ./initial-setup-gui-0.3.36-1.fc23.x86_64.rpm
event_log:      2015-09-08-11:41:52> ('report_uReport' completed successfully)
executable:     /bin/dnf
kernel:         4.2.0-1.fc23.x86_64
package:        dnf-1.1.1-1.fc23
reason:         main.py:94:main:NameError: name 'self' is not defined
runlevel:       N 5
type:           Python3
uid:            0

Comment 10 Fedora Update System 2015-09-08 12:38:26 UTC
dnf-1.1.1-2.fc22 dnf-plugins-core-0.1.11-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744

Comment 11 Fedora Update System 2015-09-08 12:38:49 UTC
dnf-1.1.1-2.fc22 dnf-plugins-core-0.1.11-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744

Comment 12 Fedora Update System 2015-09-08 12:39:50 UTC
dnf-1.1.1-2.fc23 dnf-plugins-core-0.1.11-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743

Comment 13 Fedora Update System 2015-09-08 12:40:16 UTC
dnf-1.1.1-2.fc23 dnf-plugins-core-0.1.11-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743

Comment 14 Fedora Update System 2015-09-08 17:52:10 UTC
dnf-1.1.1-2.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf dnf-plugins-core'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743

Comment 15 Fedora Update System 2015-09-08 21:26:03 UTC
dnf-1.1.1-2.fc22, dnf-plugins-core-0.1.11-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf-plugins-core dnf'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744

Comment 16 Fedora Update System 2015-09-09 23:18:56 UTC
dnf-1.1.1-2.fc22, dnf-plugins-core-0.1.11-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 Michal Luscon 2015-09-10 10:31:25 UTC
*** Bug 1261685 has been marked as a duplicate of this bug. ***

Comment 18 Michal Luscon 2015-09-14 12:04:07 UTC
*** Bug 1262524 has been marked as a duplicate of this bug. ***

Comment 19 Fedora Update System 2015-09-23 04:12:12 UTC
dnf-1.1.1-2.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.