<?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>11134</bug_id>
          
          <creation_ts>2017-03-07 14:19:29 +0000</creation_ts>
          <short_desc>Python Exception &lt;class &apos;ImportError&apos;&gt; No module named &apos;imp&apos;</short_desc>
          <delta_ts>2017-03-17 17:56:22 +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>2.2.1</version>
          <rep_platform>x86</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>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Juro Bystricky">juro.bystricky</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>71107</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-03-07 14:19:29 +0000</bug_when>
    <thetext>When I source the extensible sdk environment:

arm-poky-linux-gnueabi-gdb hello_world.out --command=gdb_init
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;
and &quot;show warranty&quot; for details.
This GDB was configured as &quot;--host=x86_64-linux --target=arm-poky-linux-gnueabi&quot;.
Type &quot;show configuration&quot; for configuration details.
For bug reporting instructions, please see:
&lt;http://www.gnu.org/software/gdb/bugs/&gt;.
Find the GDB manual and other documentation resources online at:
&lt;http://www.gnu.org/software/gdb/documentation/&gt;.
For help, type &quot;help&quot;.
Type &quot;apropos word&quot; to search for commands related to &quot;word&quot;...
Reading symbols from hello_world.out...done.
0x4a010a40 in ?? () from /opt/poky/2.2.1/multi-v7-ml/beagle-bone-black/core-image-sato-sdk-multi-v7-ml/lib/ld-linux.so.3
Breakpoint 1 at 0x10428: file hello_world.c, line 71.
(gdb) quit

When I source the classic SDK environment:

arm-poky-linux-gnueabi-gdb hello_world.out --command gdb_init
Python Exception &lt;class &apos;ImportError&apos;&gt; No module named &apos;imp&apos;:
arm-poky-linux-gnueabi-gdb: warning:
Could not load the Python gdb module from `/opt/poky/2.2.1/multi-v7-ml/beagle-bone-black/sysroots/x86_64-pokysdk-linux/usr/share/gdb/python&apos;.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type &quot;show copying&quot;
and &quot;show warranty&quot; for details.
This GDB was configured as &quot;--host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi&quot;.
Type &quot;show configuration&quot; for configuration details.
For bug reporting instructions, please see:
&lt;http://www.gnu.org/software/gdb/bugs/&gt;.
Find the GDB manual and other documentation resources online at:
&lt;http://www.gnu.org/software/gdb/documentation/&gt;.
For help, type &quot;help&quot;.
Type &quot;apropos word&quot; to search for commands related to &quot;word&quot;...
Reading symbols from hello_world.out...done.
Python Exception &lt;class &apos;NameError&apos;&gt; Installation error: gdb.execute_unwinders function is missing:
0x4a010a40 in ?? () from /opt/poky/2.2.1/multi-v7-ml/beagle-bone-black/core-image-sato-sdk-multi-v7-ml/lib/ld-linux.so.3
Breakpoint 1 at 0x10428: file hello_world.c, line 71.
(gdb) quit

I would assume that the extensible SDK installs something, the classic SDK does not? Maybe the difference is, that I build a sato-sdk for the extensible sdk while for the classic SDK I just build a sato image?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71108</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-03-07 14:20:55 +0000</bug_when>
    <thetext>see also https://bugzilla.yoctoproject.org/show_bug.cgi?id=10776</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71109</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-03-07 15:12:05 +0000</bug_when>
    <thetext>bitbake core-image-sato-sdk -c populate_sdk did not help</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71110</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-03-07 16:45:02 +0000</bug_when>
    <thetext>This patch: 

https://github.com/RobertBerger/poky/commit/f4cea23fa7ad730208a379c2d85c9b863d4c1a41

does not fix it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71200</commentid>
    <comment_count>4</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-03-13 06:23:07 +0000</bug_when>
    <thetext>In addition to:
https://github.com/RobertBerger/poky/commit/f4cea23fa7ad730208a379c2d85c9b863d4c1a41

It needs the patch:

diff --git a/meta/recipes-devtools/python/python-3.5-manifest.inc b/meta/recipes-devtools/python/python-3.5-manifest.inc
index 3046114..6c690db 100644
--- a/meta/recipes-devtools/python/python-3.5-manifest.inc
+++ b/meta/recipes-devtools/python/python-3.5-manifest.inc
@@ -115,7 +115,7 @@ FILES_${PN}-image=&quot;${libdir}/python3.5/colorsys.* ${libdir}/python3.5/imghdr.* $
 
 SUMMARY_${PN}-importlib=&quot;Python import implementation library&quot;
 RDEPENDS_${PN}-importlib=&quot;${PN}-core ${PN}-lang&quot;
-FILES_${PN}-importlib=&quot;${libdir}/python3.5/importlib &quot;
+FILES_${PN}-importlib=&quot;${libdir}/python3.5/importlib ${libdir}/python3.5/imp.* &quot;
 
 SUMMARY_${PN}-io=&quot;Python low-level I/O&quot;
 RDEPENDS_${PN}-io=&quot;${PN}-core ${PN}-math&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71406</commentid>
    <comment_count>5</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2017-03-17 17:56:22 +0000</bug_when>
    <thetext>Patches merged with &quot;Morty&quot; (backported from master):

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=morty&amp;id=8ab3fa375891eba3dc102b6ee7fee3582070654b

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=morty&amp;id=b0f3c0fb99d15b5914ac876b62ff16b3e11d0b80</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>