<?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>2822</bug_id>
          
          <creation_ts>2012-07-24 08:47:55 +0000</creation_ts>
          <short_desc>rpm-createsolvedb.py fails to import os</short_desc>
          <delta_ts>2012-08-08 09:34:37 +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.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(autobuilder)(P2)(QA Testing Completed)(Done) </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nitin.a.kamble</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>rongqing.li</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23423</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-07-24 08:47:55 +0000</bug_when>
    <thetext>From http://autobuilder.yoctoproject.org:8010/builders/nightly/builds/585/steps/shell_43/logs/stdio:

| + rpm-createsolvedb.py rpm /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/build/tmp/deploy/rpm/qemux86 /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/build/tmp/deploy/rpm/i586 /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/build/tmp/deploy/rpm/all
| &apos;import site&apos; failed; use -v for traceback
| Traceback (most recent call last):
| File &quot;/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/scripts/rpm-createsolvedb.py&quot;, line 14, in 
| import sys, os
| ImportError: No module named os
| ERROR: Function failed: do_package_index (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly/build/build/tmp/work/i586-poky-linux/package-index-1.0-r0/temp/log.do_package_index.22498 for further information)

Sounds like a python/pythonnative problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23427</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-07-24 09:44:00 +0000</bug_when>
    <thetext>This is caused by the change of location of the native python (before: usr/bin/python, now: usr/bin/python-native/python), Add &quot;inherit pythonnative&quot; in  package-index.bb would fix the problem, I will send a pull request for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23513</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-07-26 07:50:12 +0000</bug_when>
    <thetext>package-index recipe is failing similarly:

http://autobuilder.yoctoproject.org:8010/builders/nightly/builds/589/steps/shell_43/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23515</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-07-26 08:16:18 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; package-index recipe is failing similarly:
&gt; 
&gt; http://autobuilder.yoctoproject.org:8010/builders/nightly/builds/589/steps/
&gt; shell_43/logs/stdio

Thanks for reporting this, they are the same errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23731</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-08-02 04:36:32 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=148e19e880f0c132f7679bd8779377fa4e1e6778
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=dfd86b645b239b1a935d6304bbd0e3f787a53003</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23885</commentid>
    <comment_count>5</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-08 09:34:37 +0000</bug_when>
    <thetext>verified on :
git info :87ffccb5dc184375e8807834e3b9b08ada708105
git branch: poky/master

test env:
host: ubuntu 12.04 x86_64

run &quot;bitbake package-index&quot;:

Loading cache: 100% |###########################################| ETA:  00:00:00
Loaded 1135 entries from dependency cache.

Build Configuration:
BB_VERSION        = &quot;1.15.3&quot;
TARGET_ARCH       = &quot;i586&quot;
TARGET_OS         = &quot;linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.2+snapshot-20120808&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        = &quot;master:87ffccb5dc184375e8807834e3b9b08ada708105&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
......
NOTE: Running task 211 of 216 (ID: 7, /buildarea1/tester/test_git/meta/recipes-core/meta/package-index.bb, do_package_index)
NOTE: package package-index-1.0-r0: task do_populate_lic: Started
NOTE: package package-index-1.0-r0: task do_package_index: Started
NOTE: package package-index-1.0-r0: task do_populate_lic: Succeeded
NOTE: Running noexec task 215 of 216 (ID: 8, /buildarea1/tester/test_git/meta/recipes-core/meta/package-index.bb, do_package_write)
NOTE: package package-index-1.0-r0: task do_package_index: Succeeded
NOTE: Running noexec task 216 of 216 (ID: 10, /buildarea1/tester/test_git/meta/recipes-core/meta/package-index.bb, do_build)
NOTE: Tasks Summary: Attempted 216 tasks of which 209 didn&apos;t need to be rerun and all succeeded.
--------------------
no such error when build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>