Bug 707242 - [abrt] bootchart-0.14.0-1.2.git20110331.fc15: main.py:127:main:AttributeError: Trace instance has no attribute '__getitem__'
Summary: [abrt] bootchart-0.14.0-1.2.git20110331.fc15: main.py:127:main:AttributeError...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: bootchart
Version: 15
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:74234f2ae2fb5820e10557c24ad...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-24 13:32 UTC by Javier Jardón
Modified: 2012-08-08 19:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 20:28:04 UTC
Type: ---


Attachments (Terms of Use)

Description Javier Jardón 2011-05-24 13:32:03 UTC
abrt version: 2.0.1
architecture:   x86_64
cmdline:        
comment:        Run bootchart -t
component:      bootchart
executable:     /usr/bin/bootchart
kernel:         2.6.38.6-27.fc15.x86_64
os_release:     Fedora release 15 (Lovelock)
package:        bootchart-0.14.0-1.2.git20110331.fc15
reason:         main.py:127:main:AttributeError: Trace instance has no attribute '__getitem__'
time:           Tue May 24 14:31:25 2011
uid:            500
username:       jjardon

backtrace:
:main.py:127:main:AttributeError: Trace instance has no attribute '__getitem__'
:
:Traceback (most recent call last):
:  File "/usr/bin/bootchart", line 23, in <module>
:    sys.exit(main())
:  File "/usr/lib/python2.7/site-packages/pybootchartgui/main.py", line 127, in main
:    proc_tree = res[3]
:AttributeError: Trace instance has no attribute '__getitem__'
:
:Local variables in innermost frame:
:args: ['/var/log/bootchart.tgz']
:res: <pybootchartgui.parsing.Trace instance at 0x2483638>
:writer: <pybootchartgui.main.Writer instance at 0x24835a8>
:parser: <optparse.OptionParser instance at 0x24801b8>
:argv: ['-t']
:options: <Values at 0x24832d8: {'profile': False, 'verbose': False, 'format': 'png', 'show_all': False, 'annotate_file': None, 'quiet': False, 'annotate': None, 'show_pid': False, 'crop_after': None, 'boottime': True, 'prune': True, 'output': 'bootchart.png', 'veryquiet': False, 'interactive': False}>
:math: <module 'math' from '/usr/lib64/python2.7/lib-dynload/math.so'>

Comment 1 Patryk Obara 2011-05-29 13:37:24 UTC
Package: bootchart-0.14.0-1.2.git20110331.fc15
Architecture: x86_64
OS Release: Fedora release 15 (Lovelock)


Comment
-----
right after reboot, try:
$ bootchart -t

Comment 2 Mladen Kuntner 2011-06-25 12:40:09 UTC
In:

/usr/lib/python2.7/site-packages/pybootchartgui/main.py

we have:

proc_tree = res[3]

if we replace this with:

proc_tree = res.proc_tree

bootchart -t works as expected - prints boot time

Comment 3 Harald Hoyer 2011-06-30 13:03:06 UTC
(In reply to comment #2)
> In:
> 
> /usr/lib/python2.7/site-packages/pybootchartgui/main.py
> 
> we have:
> 
> proc_tree = res[3]
> 
> if we replace this with:
> 
> proc_tree = res.proc_tree
> 
> bootchart -t works as expected - prints boot time

Thank you!

pushed upstream 
https://github.com/mmeeks/bootchart/commit/9d7c5755784059cdf4462cf2327fbb1e946deade

Comment 4 Martin Dengler 2012-04-13 01:28:24 UTC
The fix is not in F16 or F17, it seems.  It would be nice to get it in, though of course the fix is trivial.

Comment 5 Fedora End Of Life 2012-08-07 20:28:06 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Martin Dengler 2012-08-08 19:25:52 UTC
Fix still not in F16; assume not F17 either:

# bootchart -t
No path given, trying /var/log/bootchart.tgz
parsing '/var/log/bootchart.tgz'
parsing 'header'
parsing 'cmdline2.log'
parsing 'paternity.log'
parsing 'proc_cpuinfo.log'
parsing 'proc_diskstats.log'
parsing 'proc_meminfo.log'
parsing 'proc_stat.log'
parsing 'taskstats.log'
merged 0 logger processes
pruned 817 process, 0 exploders, 112 threads, and 16 runs
Traceback (most recent call last):
  File "/bin/bootchart", line 23, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/pybootchartgui/main.py", line 127, in main
    proc_tree = res[3]
AttributeError: Trace instance has no attribute '__getitem__'
#

# rpm -q $(rpm -q --whatprovides /usr/lib/python2.7/site-packages/pybootchartgui/main.py)
bootchart-0.14.0-2.3.git20110630.fc17.x86_64


Please can someone change this to F17 or rawhide, as this still occurs for me on F17 and I see no reason to think it's been addressed?


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