<?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>128</bug_id>
          
          <creation_ts>2010-07-19 10:01:53 +0000</creation_ts>
          <short_desc>bitbake fails to execute with Python 2.4.3</short_desc>
          <delta_ts>2011-02-01 09:54:33 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</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>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>aleksandr.koltsoff</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>9016</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-07-19 10:01:53 +0000</bug_when>
    <thetext>There are still a large number of python 2.4.3 installations, however the current bitbake fails to execute on this version of python.

It&apos;s expected that bitbake will execute and display the error message:

Sorry, python 2.6.0 or later is requried for this version of bitbake.

Instead what happens is:


  File &quot;/msp-lpggp12/mhatle/git/poky-contrib/bitbake//bin/bitbake&quot;, line 203
    except Exception as e:
                      ^
SyntaxError: invalid syntax


It appears the &apos;as&apos; clause of exception handing is not implemented in 2.4.

Similar, if you change the &apos;as&apos; to a &apos;,&apos;, you get another error on line 207.

The &apos;finally&apos; clause of the try was not allowed until 2.5.  So the exception handling and the finally clause may have to be re-evaluated in order to generate the proper error message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11558</commentid>
    <comment_count>1</comment_count>
    <who name="Aleksandr Koltsoff">aleksandr.koltsoff</who>
    <bug_when>2011-01-28 01:19:38 +0000</bug_when>
    <thetext>The same problem also applies to python 2.5 installs (2.5.2 in Ubuntu Hardy for example).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11569</commentid>
    <comment_count>2</comment_count>
    <who name="Aleksandr Koltsoff">aleksandr.koltsoff</who>
    <bug_when>2011-01-28 03:45:38 +0000</bug_when>
    <thetext>bitbake in master (as of 2011-01-28) has fixed the root issue, and displays
&quot;RuntimeError: Sorry, python 2.6.0 or later is required for this version of
bitbake&quot; for both python 2.5.2 and 2.4.5. (see http://bugzilla.pokylinux.org/show_bug.cgi?id=629 ).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11633</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-02-01 09:54:33 +0000</bug_when>
    <thetext>This is resolved in master so marking as resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>