<?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>1128</bug_id>
          
          <creation_ts>2011-05-31 14:32:25 +0000</creation_ts>
          <short_desc>Meaningless error message when python v3 is the only python available</short_desc>
          <delta_ts>2011-06-28 09:48:20 +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>1.0</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>2011-06-14: Patch submitted to poky ML</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Scott Garman">scott.a.garman</assigned_to>
          <cc>josh</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>14095</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-05-31 14:32:25 +0000</bug_when>
    <thetext>Mark Charlebois reported the following:

Using Poky from Arch Linux (read that Arch is not supported, but that comments on how well it works are welcome)

 

Had to install sudo

Found docs for Arch Linux and OE: http://wiki.openembedded.net/index.php/OEandYourDistro#Arch_Linux_.28Duke.29

Installed packages:

 

   pacman -S patch make sed python m4 bison cvs quilt sgmltools-lite docbook-xml \

   xmlto pcre boost jade git texinfo texi2html help2man subversion chrpath

 

quilt is not in the Arch packages. Had to be built from AUR

 

$ bitbake poky-image-sato

Pseudo is not present but is required, building this first before the main build

  File &quot;/shared/yocto/poky-bernard-5.0/bitbake/bin/bitbake&quot;, line 35

    except RuntimeError, exc:

                       ^

SyntaxError: invalid syntax

This error message does not indicate that the problem was due to missing quilt. So a sanity check could be added for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14118</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-06-01 09:48:55 +0000</bug_when>
    <thetext>The exception raised by quilt being missing is invalid syntax in Python.

try:
  stuff
except MyError as e:
  print(e)

is the correct syntax for exception handling, so the error is correct though still not useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14119</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-06-01 09:49:56 +0000</bug_when>
    <thetext>As an aside re the support of Arch, iirc the use Python 3 by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14277</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-06-13 14:46:38 +0000</bug_when>
    <thetext>Ok, so this bug doesn&apos;t have to do with quilt after all - we build quilt as quilt-native, and I don&apos;t have a host version installed on any of my build machines. 

I&apos;ve tested that pointing bitbake to a python v3 interpreter will result in the same error Mark ran into, and that is what we need to add a check for. We&apos;ve checked for old versions of python, but not v3-only ones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14283</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-06-14 15:03:41 +0000</bug_when>
    <thetext>Progress update:

This is not as simple as adding a python version check in sanity.bbclass, because the v3 python interpreter cannot even parse all of the bitbake code. I&apos;m diving through various layers of making bitbake work on python v2 and at least superficially parse on v3 so it can get to the point of running the sanity test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14284</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-06-14 15:20:01 +0000</bug_when>
    <thetext>A hackier alternative here might be to do a python v3 test in the bitbake wrapper script?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14285</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-06-14 15:31:31 +0000</bug_when>
    <thetext>Thanks for the suggestion, Joshua. It looks like that is the only feasible way to fix this. The impasse I&apos;ve reached is that module importing from within your own package has changed, and the new syntax of specifying things is not backward-compatible. So it does not appear that I can pull this off in such a way that both v2 and v3 versions of python will work - even just to get the code to pass the parsing stage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14448</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-06-28 09:48:20 +0000</bug_when>
    <thetext>Fixed in poky master and oe-core master:

http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=9fc32c40af66768f77a9ecec24389eb8a38a6cae

http://cgit.openembedded.org/cgit.cgi/openembedded-core/commit/?id=9dd2d6b7ee36af6229eb9e9c448eab3a6895a9c5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>