#7733 BLOC 8.2.0 (: Cannot install Wikipedia-10.xo

Zarro Boogs per Child bugtracker at laptop.org
Wed Aug 13 17:24:06 EDT 2008


#7733: Cannot install Wikipedia-10.xo
------------------------+---------------------------------------------------
   Reporter:  tomeu     |       Owner:  tomeu                        
       Type:  defect    |      Status:  new                          
   Priority:  blocker   |   Milestone:  8.2.0 (was Update.2)         
  Component:  sugar     |     Version:  Git as of bug date           
 Resolution:            |    Keywords:  8.2.0:? blocks?:8.2.0 relnote
Next_action:  diagnose  |    Verified:  0                            
  Blockedby:            |    Blocking:                               
------------------------+---------------------------------------------------

Comment(by cscott):

 The root cause seems to be that bundle_path is a unicode string in the top
 three elements of that traceback.  This gets stored into self._path and
 much much later (at the bottom of the traceback) when
 os.path.join(u'somestring', 'someotherstring') is called (first arg a
 unicode, second arg a nonunicode), python implicitly tries to convert the
 non-unicode string to unicode using the ASCII encoding and dies horribly.

 Wasn't a problem before the aforementioned commit, because we didn't
 actually try to do anything with the MANIFEST contents pre-commit.

 I *think* the proper solution is just to declare the relevant dbus
 function as taking a bytestring rather than a unicode string, since paths
 are just sequences of bytes (by convention utf-8 encoded), *not* sequences
 of unicode characters.

-- 
Ticket URL: <http://dev.laptop.org/ticket/7733#comment:12>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list