Bug 1087566 - [abrt] dnf: logging.py:144:setup:AttributeError: 'module' object has no attribute 'captureWarnings'
Summary: [abrt] dnf: logging.py:144:setup:AttributeError: 'module' object has no attri...
Keywords:
Status: CLOSED DUPLICATE of bug 1081753
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6f3ad6d60f46e776db7fa2f7b53...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-14 16:08 UTC by gala_dragos
Modified: 2014-04-24 10:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 10:45:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.49 KB, text/plain)
2014-04-14 16:08 UTC, gala_dragos
no flags Details
File: environ (353 bytes, text/plain)
2014-04-14 16:08 UTC, gala_dragos
no flags Details

Description gala_dragos 2014-04-14 16:08:48 UTC
Version-Release number of selected component:
dnf-0.4.19-1.fc20

Additional info:
reporter:       libreport-2.2.1
cmdline:        /usr/bin/python /usr/bin/dnf -v makecache timer
executable:     /usr/bin/dnf
kernel:         3.13.9-200.fc20.i686+PAE
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
logging.py:144:setup:AttributeError: 'module' object has no attribute 'captureWarnings'

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/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 75, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 103, in _main
    cli.configure(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1240, in configure
    self.read_conf_file(opts.conffile, root, releasever, overrides)
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1343, in read_conf_file
    self.base.logging.setup_from_dnf_conf(conf)
  File "/usr/lib/python2.7/site-packages/dnf/logging.py", line 162, in setup_from_dnf_conf
    return self.setup(verbose_level_r, error_level_r, logdir)
  File "/usr/lib/python2.7/site-packages/dnf/logging.py", line 45, in swan_song
    fn(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/dnf/logging.py", line 144, in setup
    logging.captureWarnings(True)
AttributeError: 'module' object has no attribute 'captureWarnings'

Local variables in innermost frame:
verbose_level: 10
self: <dnf.logging.Logging object at 0xb5c12bac>
logger_dnf: <logging.Logger instance at 0xb603f18c>
error_level: 30
handler: <logging.FileHandler instance at 0xb5c1e40c>
logdir: '/var/log'
logfile: '/var/log/dnf.log'

Comment 1 gala_dragos 2014-04-14 16:08:54 UTC
Created attachment 886176 [details]
File: backtrace

Comment 2 gala_dragos 2014-04-14 16:08:56 UTC
Created attachment 886177 [details]
File: environ

Comment 3 Ales Kozumplik 2014-04-15 06:59:17 UTC
Thanks for reporting, we'll take a look.

Comment 4 Ales Kozumplik 2014-04-24 10:45:18 UTC

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


Note You need to log in before you can comment on or make changes to this bug.