<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9069</bug_id>
          
          <creation_ts>2016-02-05 12:09:47 +0000</creation_ts>
          <short_desc>perf: missing python modules for scripts in &apos;perf report&apos;</short_desc>
          <delta_ts>2023-04-28 15:51:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>kernel</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nora Bjorklund">nora.bjorklund</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58638</commentid>
    <comment_count>0</comment_count>
    <who name="Nora Bjorklund">nora.bjorklund</who>
    <bug_when>2016-02-05 12:09:47 +0000</bug_when>
    <thetext>Receiving below errors when running scripts from &apos;perf report&apos; (scripts can be run by pressing ENTER in the UI, and then selecting for example &apos;Run scripts for all samples&apos; 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 &quot;/usr/libexec/perf-core/scripts/python/event_analyzing_sample.py&quot;, line 19, in &lt;module&gt;
    import math
ImportError: No module named math
Error running python script /usr/libexec/perf-core/scripts/python/event_analyzing_sample.py  
----------------------
File &quot;/usr/libexec/perf-core/scripts/python/export-to-postgresql.py&quot;, line 16, in &lt;module&gt;
    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 &quot;/usr/libexec/perf-core/scripts/python/event_analyzing_sample.py&quot;, line 21, in &lt;module&gt;
    import sqlite3
ImportError: No module named sqlite3
Error running python script /usr/libexec/perf-core/scripts/python/event_analyzing_sample.py
-----------------------
  File &quot;/usr/libexec/perf-core/scripts/python/export-to-postgresql.py&quot;, line 18, in &lt;module&gt;
    from PySide.QtSql import * 
ImportError: No module named PySide.QtSql
Error running python script /usr/libexec/perf-core/scripts/python/export-to-postgresql.py</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59220</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2016-02-18 17:04:12 +0000</bug_when>
    <thetext>putting an estimate on this, but it is unlikely I&apos;ll have the cycles to deal with it in M3, so someone else may need to take this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60246</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2016-03-21 23:30:08 +0000</bug_when>
    <thetext>The cycles never arrived for this, moving to 2.2 M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60303</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2016-03-22 18:17:55 +0000</bug_when>
    <thetext>I have this fixed, moving to 2.1 M4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64542</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2016-07-27 17:23:36 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74437</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-06-21 18:37:24 +0000</bug_when>
    <thetext>I won&apos;t have cycles for this. If someone else grabs it, I won&apos;t complain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93234</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-05-05 15:15:39 +0000</bug_when>
    <thetext>Michael says this may be fixed. He&apos;s going to double check and close if it is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95479</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-04-28 15:51:19 +0000</bug_when>
    <thetext>Confirming that we no longer have this issue in the latest &quot;master&quot; branch for Poky.

I added this to local.conf:
IMAGE_INSTALL:append = &quot; perf&quot;

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

Happy to close this bug at last!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>