Bug 1235910

Summary: [abrt] tuned: configobj.py:1477:_handle_bom:AttributeError: 'module' object has no attribute 'PY2'
Product: [Fedora] Fedora Reporter: Joshua Rich <joshua.rich>
Component: tunedAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: joshua.rich, jskarvad, jv+fedora, pknirsch, twoerner
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e3fee651068385610b293af2c6e1715021be5520
Whiteboard: abrt_hash:5566c76bc908131881eeef2bf25878c20cc5062d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 15:03:30 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 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.