<?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>14150</bug_id>
          
          <creation_ts>2020-12-11 09:50:24 +0000</creation_ts>
          <short_desc>devtool: modify: fails for gstreamer1.0-plugins-good</short_desc>
          <delta_ts>2025-02-14 16:48:23 +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>devtools / tool chain</component>
          <version>3.1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sourabh">sbanerje</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>chee.yang.lee</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ndec13</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
    
    <cc>tim.orling</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>88765</commentid>
    <comment_count>0</comment_count>
    <who name="Sourabh">sbanerje</who>
    <bug_when>2020-12-11 09:50:24 +0000</bug_when>
    <thetext>I have an esdk generated and installed from following configurations:

 * MACHINE = &quot;qemux86-64&quot;
 * DISTRO = &quot;poky&quot;

Image used core-image-clutter.

edk generated as follows:
* bitbake -c populate_sdk_ext core-image-clutter

Error observed on following command:
$ devtool modify gstreamer1.0-plugins-good

ERROR: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;exec_python_func() autogenerated&apos;, lineno: 2, function: &lt;module&gt;
     0001:
 *** 0002:devtool_post_unpack(d)
     0003:
File: &apos;/local/mnt/workspace/sbanerje/DUNFELL_2/SDK_INSTALL/layers/poky/meta/classes/devtool-source.bbclass&apos;, lineno: 68, function: devtool_post_unpack
     0064:}
     0065:
     0066:
     0067:python devtool_post_unpack() {
 *** 0068:    import oe.recipeutils
     0069:    import shutil
     0070:    sys.path.insert(0, os.path.join(d.getVar(&apos;COREBASE&apos;), &apos;scripts&apos;, &apos;lib&apos;))
     0071:    import scriptutils
     0072:    from devtool import setup_git_repo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88784</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-12-17 15:33:57 +0000</bug_when>
    <thetext>Happening on dunfell, someone should check if it&apos;s happening on master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88794</commentid>
    <comment_count>2</comment_count>
    <who name="Sourabh">sbanerje</who>
    <bug_when>2020-12-18 08:37:13 +0000</bug_when>
    <thetext>I will get back with observation on master.

I did a bit of digging into what&apos;s going wrong here, here are my observations:

 1) The real error is as follows

        File: &apos;/local/mnt/workspace/sbanerje/DUNFELL_2/SDK_INSTALL/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.8/sysconfig.py&apos;, lineno: 423, function: _init_posix
             0419:    &quot;&quot;&quot;Initialize the module as appropriate for POSIX systems.&quot;&quot;&quot;
             0420:    # _sysconfigdata is generated at build time, see _generate_posix_vars()
             0421:    name = _get_sysconfigdata_name()
             0422:    print(name)
         *** 0423:    _temp = __import__(name, globals(), locals(), [&apos;build_time_vars&apos;], 0)
             0424:    build_time_vars = _temp.build_time_vars
             0425:    vars.update(build_time_vars)
             0426:
             0427:def _init_non_posix(vars):
        Exception: ModuleNotFoundError: No module named &apos;_sysconfigdata&apos;
        
 2) On deeper digging, seems the above import statement is attempting to import &quot;_sysconfigdata__linux_x86_64-linux-gnu&quot;

 3) The file is present in following paths:

    ./tmp/sysroots/x86_64/usr/lib/python3.8/_sysconfigdata__linux_x86_64-linux-gnu.py
    ./tmp/sysroots/qemux86-64/usr/lib/python3.8/_sysconfigdata__linux_x86_64-linux-gnu.py
    ./tmp/work/core2-64-poky-linux/python3/3.8.2-r0/sysroot-destdir/usr/lib/python3.8/_sysconfigdata__linux_x86_64-linux-gnu.py
    ./tmp/sysroots-components/core2-64/python3/usr/lib/python3.8/_sysconfigdata__linux_x86_64-linux-gnu.py
    ./buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.8/_sysconfigdata__linux_x86_64-linux-gnu.py

    
Hence, I wonder what may be missing? Is it an export path? 

P.S: I am using an &quot;Ubuntu 16.04.6 LTS&quot; as my build-host.
I see a similar discussion here https://patchwork.openembedded.org/patch/175735/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94039</commentid>
    <comment_count>3</comment_count>
    <who name="Chee Yang">chee.yang.lee</who>
    <bug_when>2022-09-21 01:15:18 +0000</bug_when>
    <thetext>i was not able to reproduce the error with current dunfell (65cf3249fa189d5605fb4ee33c429ab79e3bc865) on &quot;Ubuntu 16.04.7 LTS&quot; host.

not sure if i&apos;m not doing this in right steps or is it fixed ?

the way i tried:
with default local.conf
$ bitbake -c populate_sdk_ext core-image-clutter

after the build, run the esdk script 
./tmp/deploy/sdk/poky-glibc-x86_64-core-image-clutter-core2-64-qemux86-64-toolchain-ext-3.1.19.sh

at another session, go to the path with esdk setup in previous script, run 
$ . ./environment-setup-core2-64-poky-linux

and then
$ devtool modify gstreamer1.0-plugins-good</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94153</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-10-13 17:23:24 +0000</bug_when>
    <thetext>Works for Chee Yang, re-open with clear instructions for reproducing if this still affects you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100976</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:46:25 +0000</bug_when>
    <thetext>bulk change to add Saul&apos;s non-WR address.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101069</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:48:23 +0000</bug_when>
    <thetext>Bulk change: Remove Saul&apos;s old WR address.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>