Bug 13747

Summary: python3.8 is causing No module named '_sysconfigdata'
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Khem Raj <raj.khem>
Component: devtools / tool chainAssignee: Khem Raj <raj.khem>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Medium+ CC: alex.kanavin, meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie
Version: 3.1   
Target Milestone: 3.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Khem Raj 2020-01-22 19:57:07 UTC
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 )
Comment 1 Alexander Kanavin 2020-01-22 20:16:16 UTC
_sysconfigdata is provided by the target python3, so you need to add a DEPENDS on that.
Comment 2 Khem Raj 2020-01-22 20:30:29 UTC
(In reply to comment #1)
> _sysconfigdata is provided by the target python3, so you need to add a
> 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 ?
Comment 3 Alexander Kanavin 2020-01-22 20:33:07 UTC
It's possible, but I cannot help you here, as I don't have such a setup.
Comment 4 Khem Raj 2020-01-22 20:38:54 UTC
(In reply to comment #3)
> It's possible, but I cannot help you here, as I don'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
Comment 5 Alexander Kanavin 2020-01-22 20:41:00 UTC
Right, but looking at the error log again, it says nothing about _sysconfigdata, so the issue is probably something else?
Comment 6 Richard Purdie 2020-01-23 15:49:06 UTC
Have you tried python3-native or inheriting the py3native class?
Comment 7 Khem Raj 2020-01-23 16:01:52 UTC
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.