Bug 1235910 - [abrt] tuned: configobj.py:1477:_handle_bom:AttributeError: 'module' object has no attribute 'PY2'
Summary: [abrt] tuned: configobj.py:1477:_handle_bom:AttributeError: 'module' object h...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: tuned
Version: 22
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:5566c76bc908131881eeef2bf25...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-26 05:23 UTC by Joshua Rich
Modified: 2016-07-19 15:03 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 15:03:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.55 KB, text/plain)
2015-06-26 05:23 UTC, Joshua Rich
no flags Details
File: environ (186 bytes, text/plain)
2015-06-26 05:23 UTC, Joshua Rich
no flags Details

Description Joshua Rich 2015-06-26 05:23:47 UTC
Version-Release number of selected component:
tuned-2.4.1-5.fc22

Additional info:
reporter:       libreport-2.6.0
cmdline:        /usr/bin/python -Es /usr/sbin/tuned -l -P
dso_list:       python-configobj-5.0.5-2.fc22.noarch
executable:     /usr/sbin/tuned
kernel:         4.0.5-300.fc22.x86_64
runlevel:       unknown
type:           Python
uid:            0

Truncated backtrace:
configobj.py:1477:_handle_bom:AttributeError: 'module' object has no attribute 'PY2'

Traceback (most recent call last):
  File "/usr/sbin/tuned", line 63, in <module>
    app = tuned.daemon.Application(args.profile)
  File "/usr/lib/python2.7/site-packages/tuned/daemon/application.py", line 32, in __init__
    self.config = self._load_global_config()
  File "/usr/lib/python2.7/site-packages/tuned/daemon/application.py", line 183, in _load_global_config
    config = ConfigObj(file_name, configspec=global_config_spec, raise_errors = True, file_error = True)
  File "/usr/lib/python2.7/site-packages/configobj.py", line 1229, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python2.7/site-packages/configobj.py", line 1287, in _load
    content = self._handle_bom(content)
  File "/usr/lib/python2.7/site-packages/configobj.py", line 1477, in _handle_bom
    if six.PY2 and isinstance(line, str):
AttributeError: 'module' object has no attribute 'PY2'

Local variables in innermost frame:
encoding: 'utf16_be'
self: ConfigObj({})
final_encoding: 'utf_16'
BOM: '\xfe\xff'
line: '# Global tuned configuration file.\n'
infile: ['# Global tuned configuration file.\n', '\n', '# Dynamicaly tune devices, if disabled only static tuning will be used.\n', 'dynamic_tuning = 1\n', '\n', '# how long to sleep before checking for events (in seconds)\n', '# higher number means lower overhead but longer response time\n', 'sleep_interval = 1\n', '\n', '# Update interval for dynamic tunings (in seconds).\n', '# It must be multiply of the sleep_interval\n', 'update_interval = 10\n']

Comment 1 Joshua Rich 2015-06-26 05:23:50 UTC
Created attachment 1043396 [details]
File: backtrace

Comment 2 Joshua Rich 2015-06-26 05:23:51 UTC
Created attachment 1043397 [details]
File: environ

Comment 3 Fedora End Of Life 2016-07-19 15:03:30 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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