Bug 9069 - perf: missing python modules for scripts in 'perf report'
Summary: perf: missing python modules for scripts in 'perf report'
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 4.99
Assignee: Michael Opdenacker
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-05 12:09 UTC by Nora Bjorklund
Modified: 2023-04-28 15:51 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nora Bjorklund 2016-02-05 12:09:47 UTC
Receiving below errors when running scripts from 'perf report' (scripts can be run by pressing ENTER in the UI, and then selecting for example 'Run scripts for all samples' and running one of the listed scripts. By installing python-math and python-sqlite3 I was able to overcome the first three errors, however the last one seems to depend on a python-module not available in poky. 

----------------------
Traceback (most recent call last):
  File "/usr/libexec/perf-core/scripts/python/event_analyzing_sample.py", line 19, in <module>
    import math
ImportError: No module named math
Error running python script /usr/libexec/perf-core/scripts/python/event_analyzing_sample.py  
----------------------
File "/usr/libexec/perf-core/scripts/python/export-to-postgresql.py", line 16, in <module>
    import datetime
ImportError: No module named datetime
Error running python script /usr/libexec/perf-core/scripts/python/export-to-postgresql.py 
-----------------------
/usr/libexec/perf-core/scripts/python/event_analyzing_sample.py                                           
Traceback (most recent call last):
  File "/usr/libexec/perf-core/scripts/python/event_analyzing_sample.py", line 21, in <module>
    import sqlite3
ImportError: No module named sqlite3
Error running python script /usr/libexec/perf-core/scripts/python/event_analyzing_sample.py
-----------------------
  File "/usr/libexec/perf-core/scripts/python/export-to-postgresql.py", line 18, in <module>
    from PySide.QtSql import * 
ImportError: No module named PySide.QtSql
Error running python script /usr/libexec/perf-core/scripts/python/export-to-postgresql.py
Comment 1 Bruce Ashfield 2016-02-18 17:04:12 UTC
putting an estimate on this, but it is unlikely I'll have the cycles to deal with it in M3, so someone else may need to take this.
Comment 2 Bruce Ashfield 2016-03-21 23:30:08 UTC
The cycles never arrived for this, moving to 2.2 M1.
Comment 3 Bruce Ashfield 2016-03-22 18:17:55 UTC
I have this fixed, moving to 2.1 M4
Comment 4 Bruce Ashfield 2016-07-27 17:23:36 UTC
Part of this work was done in 2.1, the remaining elements are to verify that this works on oe-core/yocto master, and see if any remaining python dependencies are missing.
Comment 5 Bruce Ashfield 2017-06-21 18:37:24 UTC
I won't have cycles for this. If someone else grabs it, I won't complain.
Comment 6 Randy MacLeod 2022-05-05 15:15:39 UTC
Michael says this may be fixed. He's going to double check and close if it is.
Comment 7 Michael Opdenacker 2023-04-28 15:51:19 UTC
Confirming that we no longer have this issue in the latest "master" branch for Poky.

I added this to local.conf:
IMAGE_INSTALL:append = " perf"

And then ran this on the qemux86-64 target:
perf record -a
perf report

Happy to close this bug at last!