<?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>13747</bug_id>
          
          <creation_ts>2020-01-22 19:57:07 +0000</creation_ts>
          <short_desc>python3.8 is causing No module named &apos;_sysconfigdata&apos;</short_desc>
          <delta_ts>2020-01-23 16:01:52 +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</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Khem Raj">raj.khem</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86088</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-01-22 19:57:07 +0000</bug_when>
    <thetext>while building couple of newly migrated recipes to use py3, it seems that py8 on build host is failing

https://errors.yoctoproject.org/Errors/Build/97385/

it seems following reports from python defect tracker is relevant

https://bugs.python.org/issue37577

Please note that on hosts where host python is 3.8 then it works. however not on the ones where they may have older python3 ( e.g. ubuntu 18.04 )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86089</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2020-01-22 20:16:16 +0000</bug_when>
    <thetext>_sysconfigdata is provided by the target python3, so you need to add a DEPENDS on that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86090</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-01-22 20:30:29 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; _sysconfigdata is provided by the target python3, so you need to add a
&gt; DEPENDS on that.

That will fix the problem. But I am also seeing it work when host python is 3.8
so do we have a leak into host here ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86091</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2020-01-22 20:33:07 +0000</bug_when>
    <thetext>It&apos;s possible, but I cannot help you here, as I don&apos;t have such a setup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86092</commentid>
    <comment_count>4</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-01-22 20:38:54 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; It&apos;s possible, but I cannot help you here, as I don&apos;t have such a setup.

ntop already has python3 in DEPENDS [1] and still fails.

[1] https://git.openembedded.org/meta-openembedded/tree/meta-networking/recipes-support/ntop/ntop_5.0.1.bb#n30

the failures are on systems which dont have py3.8 e.g. ubuntu 18.04, I am sure you have one of those</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86093</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2020-01-22 20:41:00 +0000</bug_when>
    <thetext>Right, but looking at the error log again, it says nothing about _sysconfigdata, so the issue is probably something else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86097</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-01-23 15:49:06 +0000</bug_when>
    <thetext>Have you tried python3-native or inheriting the py3native class?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86099</commentid>
    <comment_count>7</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2020-01-23 16:01:52 +0000</bug_when>
    <thetext>This is a problem in python detection logic of ntop which has been fixed by another patch to package itself

https://patchwork.openembedded.org/patch/169380/


the problem in libipmi was due to it asking for python instead of python3
in depends. 

both issues are addressed. So I am marking this fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>