[Bugs] #3510 Turtleart UNSP: TA save png failed os8 xo-1.75

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Thu Apr 26 15:32:40 EDT 2012


#3510: TA save png failed os8 xo-1.75
------------------------------------------+---------------------------------
    Reporter:  tonyforster                |          Owner:  walter                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Turtleart                  |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------

Comment(by walter):

 This is a bit strange. The error is triggered because somehow the string
 you are using for the file name is type unicode instead of type string.
 Not sure how that could have happened. I'll add a conversion in these
 cases, but will also try to find the root cause, i.e., where the unicode
 conversion is happening.

     if type(file_name) == unicode:
         img_surface.write_to_png(str(file_name.encode('ascii',
 'replace')))
     else:
         img_surface.write_to_png(str(file_name))

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3510#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list