Bug 1130727

Summary: [abrt] dnf: copr.py:105:run:AttributeError: 'Cli' object has no attribute 'logger'
Product: [Fedora] Fedora Reporter: Diogo Campos <diogocamposwd>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akozumpl, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/6c9208b2ee71c5c1dd097a2f4cc3b32468530614
Whiteboard: abrt_hash:1e7e349b1413c1a86fef209f4362602a7266ac4d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-17 10:09:21 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 Diogo Campos 2014-08-17 04:35:33 UTC
Description of problem:
If I remember correctly, I tried to enable a COPR and this error appeared. Nevertheless, the COPR was enabled correctly.

Version-Release number of selected component:
dnf-0.6.0-1.fc21

Additional info:
reporter:       libreport-2.2.3
cmdline:        /usr/bin/python -OO /usr/bin/dnf copr enable comzeradd/geary-git
dso_list:       dnf-plugins-core-0.1.2-1.fc21.noarch
executable:     /usr/bin/dnf
kernel:         3.16.1-300.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
copr.py:105:run:AttributeError: 'Cli' object has no attribute 'logger'

Traceback (most recent call last):
  File "/usr/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 182, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 134, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1072, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/copr.py", line 105, in run
    self.cli.logger.info(_("Repository successfully enabled."))
AttributeError: 'Cli' object has no attribute 'logger'

Local variables in innermost frame:
project_name: u'comzeradd/geary-git'
repo_filename: '/etc/yum.repos.d/_copr_comzeradd-geary-git.repo'
self: <dnf.plugin.dynamic.copr.CoprCommand object at 0x7f8911a61290>
subcommand: u'enable'
extcmds: [u'enable', u'comzeradd/geary-git']
chroot: 'fedora-21-x86_64'

Comment 1 Diogo Campos 2014-08-17 04:35:36 UTC
Created attachment 927405 [details]
File: backtrace

Comment 2 Diogo Campos 2014-08-17 04:35:38 UTC
Created attachment 927406 [details]
File: environ

Comment 3 Parag Nemade 2014-08-17 10:09:21 UTC

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