<?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>9395</bug_id>
          
          <creation_ts>2016-04-05 12:25:52 +0000</creation_ts>
          <short_desc>Cleanly support unicode throughout Toaster</short_desc>
          <delta_ts>2017-06-15 15:10:47 +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>Toaster</product>
          <component>toaster</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</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>critical</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>aveselinov</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>brian.avery</cc>
    
    <cc>david.reyna</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60798</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-04-05 12:25:52 +0000</bug_when>
    <thetext>In https://bugzilla.yoctoproject.org/show_bug.cgi?id=9142 we observed exceptions being raised when an ImagePkgList MetadataEvent contains non-ASCII characters. Worse still, these exceptions were invisible to the Toaster UI.

A workaround patch has been proposed for 2.1 to workaround the specific issue of handling file paths with non-ASCII characters, however we should make an effort in the 2.2 timeframe to ensure that we have unicode support throughout Toaster.

This is likely to be made much easier should the plan to switch BitBake to Python3 go ahead, see:

https://docs.python.org/2/howto/unicode.html
https://docs.python.org/3/howto/unicode.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67349</commentid>
    <comment_count>1</comment_count>
    <who name="">aveselinov</who>
    <bug_when>2016-10-19 07:47:00 +0000</bug_when>
    <thetext>I&apos;m getting this error whenever I try to build:

&apos;ascii&apos; codec can&apos;t decode byte 0xc2 in position 10: ordinal not in range(128)

On Ubuntu 15.04 machine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67365</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-10-19 15:08:32 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I&apos;m getting this error whenever I try to build:
&gt; 
&gt; &apos;ascii&apos; codec can&apos;t decode byte 0xc2 in position 10: ordinal not in
&gt; range(128)
&gt; 
&gt; On Ubuntu 15.04 machine.

Can you provide more details on your setup so that we can try and reproduce? Is there a more detailed backtrace available?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67370</commentid>
    <comment_count>3</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-10-19 16:02:54 +0000</bug_when>
    <thetext>In particular, for additional information we need: 
toaster version (jethro,krogoth,morty,master...?)
build target : (core-image-minimal,bash,...?)
Additional Layers if any?
Variables changed if any?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67407</commentid>
    <comment_count>4</comment_count>
    <who name="">aveselinov</who>
    <bug_when>2016-10-20 06:55:37 +0000</bug_when>
    <thetext>I have downloaded the vendor BSP for my board (which have a collection of meta layers + poky)
I have installed Toaster krogoth following the manual from yocto website.

compulab-bsp/
├── build
│   ├── buildhistory
│   ├── cache
│   ├── conf
│   └── tmp
├── downloads
│   ├── git2
│   └── uninative
├── sources
│   ├── base
│   ├── Documentation
│   ├── meta-browser      //not used
│   ├── meta-compulab      
│   ├── meta-fsl-arm
│   ├── meta-fsl-arm-extra
│   ├── meta-fsl-demos    //not used
│   ├── meta-openembedded
│   ├── meta-qt5          //not used
│   └── poky
├── _toaster_clones
└── venv
    ├── bin
    ├── include
    ├── lib
    └── local

I init Virtual env:
$ source venv/bin/activate

And start toaster:
$ source sources/poky/bitbake/bin/toaster

The webserver address that I get it isn&apos;t 127.0.0.1:8000 but 0.0.0.0:8000

target image: core-image-base
no additional variables

The traceback error msg that I get when I press the build button:

2016-10-20 08:45:34,486 ERROR runbuilds: Error launching build &apos;ascii&apos; codec can&apos;t decode byte 0xc2 in position 10: ordinal not in range(128)
Traceback (most recent call last):
  File &quot;/home/anatoli/compulab-bsp/sources/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py&quot;, line 67, in schedule
    &quot;%d:%d&quot; % (br.pk, bec.be.pk))
  File &quot;/home/anatoli/compulab-bsp/sources/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py&quot;, line 255, in triggerBuild
    layers = self.setLayers(bitbake, layers, targets)
  File &quot;/home/anatoli/compulab-bsp/sources/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py&quot;, line 155, in setLayers
    self._shellcmd(&apos;git clone &quot;%s&quot; &quot;%s&quot;&apos; % (giturl, localdirname))
  File &quot;/home/anatoli/compulab-bsp/sources/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py&quot;, line 68, in _shellcmd
    err = &quot;command: %s \n%s&quot; % (command, err)
UnicodeDecodeError: &apos;ascii&apos; codec can&apos;t decode byte 0xc2 in position 10: ordinal not in range(128)
2016-10-20 08:45:35,533 DEBUG Saving error &apos;ascii&apos; codec can&apos;t decode byte 0xc2 in position 10: ordinal not in range(128) (cm-fx6-toaster (Release krogoth (krogoth), BBV krogoth (Branch: krogoth)) failed)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68206</commentid>
    <comment_count>5</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-11-09 22:16:24 +0000</bug_when>
    <thetext>Hmm, we are having trouble reproducing this.
Thanks for the additional information!

A couple of things,
0) in krogoth you get a server bound to 0.0.0.0, which will allow you to access the server from a different machine. in morty, it defaults to 127.0.0.1:8000, so it wil only be accessible locally unless you add webport=0.0.0.0:8000 to the toaster start command.
1) Could you try the new release? it is called morty.  We did a switchover to Python 3.4 in the Morty release and cleaned up some (but i fear not all) of the unicode issues.
2) it looks like the command that is failing is     self._shellcmd(&apos;git clone &quot;%s&quot; &quot;%s&quot;&apos; % (giturl, localdirname))
and it looks like a non ascii character is in one of these.  Any idea where it&apos;s creeping in?

3) I couldn&apos;t replicate your error on krogoth. Where doed meta-compulab come from?  did you pull all the other layers in usig toaster and layers.openembedded.org?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68288</commentid>
    <comment_count>6</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-11-14 21:02:01 +0000</bug_when>
    <thetext>waiting for more info so I can reproduce</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68642</commentid>
    <comment_count>7</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-11-28 19:12:48 +0000</bug_when>
    <thetext>Not enough information to reproduce the specific occurrence of the bug.  The general work of insuring unicode support throughout toaster is still a good idea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74221</commentid>
    <comment_count>8</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-06-15 15:10:47 +0000</bug_when>
    <thetext>failed to reproduce :(</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>