<?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>2072</bug_id>
          
          <creation_ts>2012-03-12 16:27:35 +0000</creation_ts>
          <short_desc>python-dbus fails configure with &quot;could not find Python headers&quot;</short_desc>
          <delta_ts>2016-10-10 20:09:38 +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>core</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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>2.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          <cc>gl</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>18966</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-03-12 16:27:35 +0000</bug_when>
    <thetext>Building core-image-sato for fri2 on master HEAD:

OE Build Configuration:
BB_VERSION        = &quot;1.15.1&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;fri2&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.1+snapshot-20120312&quot;
TUNE_FEATURES     = &quot;m32 core2&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto        = &quot;master:c27b7aab3c37f182bf9acc5d459185f32fb195d0&quot;
meta-intel
meta-fri2         = &quot;master:d9132cc66316be45f44beeea6eba734bb3ab337d&quot;
meta-kernel-dev   = &quot;master:a521d099327773574e26701397a2c0bc6fd66fd2&quot;


| checking for a Python interpreter with version &gt;= 2.6... python
| checking for python... /build/poky/fri2/tmp/sysroots/x86_64-linux/usr/bin/python
| checking for python version... 2.7
| checking for python platform... linux3
| checking for python script directory... ${prefix}/lib/python2.7/site-packages
| checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
| checking for Python headers using /build/poky/fri2/tmp/sysroots/x86_64-linux/usr/bin/python-config --includes... -I/build/poky/fri2/tmp/sysroots/fri2/usr/include/python2.7 -I/build/poky/fri2/tmp/sysroots/fri2/usr/include/python2.7
| checking whether those headers are sufficient... no
| configure: error: could not find Python headers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19156</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-03-15 22:12:14 +0000</bug_when>
    <thetext>Could be sstate related, do not have a reproducer at this point.

Need to have a reproducer from Darren</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19647</commentid>
    <comment_count>2</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2012-03-29 23:31:40 +0000</bug_when>
    <thetext>Can&apos;t be reproduce</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65288</commentid>
    <comment_count>3</comment_count>
    <who name="LETOURNEUR">gl</who>
    <bug_when>2016-08-18 08:34:08 +0000</bug_when>
    <thetext>Hi!!!
I&apos;ve got the same error!

|   File &quot;&lt;string&gt;&quot;, line 22, in &lt;module&gt;
|   File &quot;/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py&quot;, line 22, in &lt;module&gt;
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv(&quot;BUILD_SYS&quot;), os.getenv(&quot;HOST_SYS&quot;) )
| TypeError: expected a string or other character buffer object
| ${libdir}/python2.7/site-packages
| checking for python extension module directory... Traceback (most recent call last):
|   File &quot;&lt;string&gt;&quot;, line 22, in &lt;module&gt;
|   File &quot;/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py&quot;, line 22, in &lt;module&gt;
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv(&quot;BUILD_SYS&quot;), os.getenv(&quot;HOST_SYS&quot;) )
| TypeError: expected a string or other character buffer object
| ${libdir}/python2.7/site-packages
| checking for Python headers using /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/bin/python-native/python-config --includes... Traceback (most recent call last):
|   File &quot;/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/bin/python-native/python-config&quot;, line 6, in &lt;module&gt;
|     from distutils import sysconfig
|   File &quot;/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/lib/python2.7/distutils/sysconfig.py&quot;, line 22, in &lt;module&gt;
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv(&quot;BUILD_SYS&quot;), os.getenv(&quot;HOST_SYS&quot;) )
| TypeError: expected a string or other character buffer object
| failed, will try another way
| checking for Python headers in /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr and /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr... -I/md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/sysroots/x86_64-linux/usr/include/python2.7
| checking whether those headers are sufficient... no
| configure: error: could not find Python headers
| NOTE: The following config.log files may provide further information.
| NOTE: /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/work/cortexa8hf-neon-oe-linux-gnueabi/python-dbus/1.2.0-r0/build/config.log
| ERROR: configure failed
| ERROR: Function failed: do_configure (log file is located at /md0/gletourneur/projects/openembedded/oe-core/build-castor/tmp-glibc/work/cortexa8hf-neon-oe-linux-gnueabi/python-dbus/1.2.0-r0/temp/log.do_configure.17612)
ERROR: Task 5 (/md0/gletourneur/projects/openembedded/oe-core/meta-oe/meta-python/recipes-devtools/python/python-dbus_1.2.0.bb, do_configure) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 1638 tasks of which 1637 didn&apos;t need to be rerun and 1 failed.
No currently running tasks (1637 of 1648)

Summary: 1 task failed:
  /md0/gletourneur/projects/openembedded/oe-core/meta-oe/meta-python/recipes-devtools/python/python-dbus_1.2.0.bb, do_configure

on python-dbus or postgresql....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67104</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2016-10-10 20:09:38 +0000</bug_when>
    <thetext>Cannot reproduce with current python-dbus_1.2.4.bb in master. If you are continuing to see this issue, please provide additional details (host OS and version and logs).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>