#8832 NORM Not Tri: datastore crashes when using my old sugar profile for the first time

Zarro Boogs per Child bugtracker at laptop.org
Tue Oct 14 11:21:12 EDT 2008


#8832: datastore crashes when using my old sugar profile for the first time
-----------------------------+----------------------------------------------
 Reporter:  gdesmott         |         Owner:  tomeu        
     Type:  defect           |        Status:  new          
 Priority:  normal           |     Milestone:  Not Triaged  
Component:  sugar-datastore  |       Version:  not specified
 Keywords:                   |   Next_action:  never set    
 Verified:  0                |     Blockedby:               
 Blocking:                   |  
-----------------------------+----------------------------------------------
 I just updated my whole sugar-jhbuild and now, each time I try to run it
 with one of my old sugar profile, DS crashes with this error:

 {{{
 1223996573.185697 INFO root: Migrating datastore from version 0 to version
 1
 1223996573.191086 DEBUG root: Migrating entry '553cbefb-48f5-4e39-821f-
 e2775cf9a646'
 Traceback (most recent call last):
   File "/home/cassidy/dev/sugar-jhbuild/install/bin/datastore-service",
 line 24, in <module>
     ds = DataStore()
   File "/home/cassidy/dev/sugar-jhbuild/install/lib/python2.5/site-
 packages/olpc/datastore/datastore.py", line 55, in __init__
     migration.migrate_from_0()
   File "/home/cassidy/dev/sugar-jhbuild/install/lib/python2.5/site-
 packages/olpc/datastore/migration.py", line 39, in migrate_from_0
     _migrate_metadata(root_path, old_root_path, uid)
   File "/home/cassidy/dev/sugar-jhbuild/install/lib/python2.5/site-
 packages/olpc/datastore/migration.py", line 68, in _migrate_metadata
     f.write(str(value))
 UnicodeEncodeError: 'ascii' codec can't encode character u'\xc9' in
 position 0: ordinal not in range(128)
 }}}

 Then, restarting sugar-jhbuild with the same profile works fine.

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


More information about the Bugs mailing list