Bug 13747 - python3.8 is causing No module named '_sysconfigdata'
Summary: python3.8 is causing No module named '_sysconfigdata'
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 3.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.1 M3
Assignee: Khem Raj
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-01-22 19:57 UTC by Khem Raj
Modified: 2020-01-23 16:01 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.