View Single Post
Creativetone's Avatar
Posts: 502 | Thanked: 4,478 times | Joined on Feb 2010 @ Finland
#57
Originally Posted by AapoRantalainen View Post
mypaint_0.9.1-maemo5:
* Fix: export brush set
Context menu opens with double clicking group name (it is not very handy, but it was easy to make)
.
There is BUG, when I try to Export Brush package, MyPaint gives a error:

Code:
Traceback (most recent call last): 
File "/opt/mypaint/share/mypaint/gui/brushselectionwindow.py", line 466, export_group_cb(self=<GroupSelector object at 0x42848940 (GtkDrawingArea at 0x7e4020)>, w=<gtk.MenuItem object at 0x47b49490 (GtkMenuItem at 0xc7c260)>, group=u'Tone') 
if filename is not None: 
self.bm.export_group(group, filename) 
variables: {'group': ('local', u'Tone'), 'self.bm.export_group': ('local', <bound method BrushManager.export_group of <gui.brushmanager.BrushManager instance at 0x429012d8>>), 'filename': ('local', u'/home/user/MyDocs/Tone_Brush_Set_2.zip')} 
File "/opt/mypaint/share/mypaint/gui/brushmanager.py", line 466, export_group(self=<gui.brushmanager.BrushManager instance at 0x429012d8>, group=u'Tone', filename=u'/home/user/MyDocs/Tone_Brush_Set_2.zip') 
prefix = brush.get_fileprefix() 
zip.write(prefix + '.myb', brush.name + '.myb') 
zip.write(prefix + '_prev.png', brush.name + '_prev.png') 
variables: {'brush.name': ('local', u'tone/Sketch_Pencil_1'), 'prefix': ('local', u'/opt/mypaint/share/mypaint/brushes/tone/Sketch_Pencil_1'), 'zip.write': ('local', <bound method ZipFile.write of <zipfile.ZipFile instance at 0x47b5f6c0>>)} 
File "/usr/lib/python2.5/zipfile.py", line 568, write(self=<zipfile.ZipFile instance at 0x47b5f6c0>, filename=u'/opt/mypaint/share/mypaint/brushes/tone/Sketch_Pencil_1.myb', arcname=u'tone/Sketch_Pencil_1.myb', compress_type=None) 
zinfo.file_size = file_size = 0 
self.fp.write(zinfo.FileHeader()) 
if zinfo.compress_type == ZIP_DEFLATED: 
variables: {'self.fp.write': ('local', <built-in method write of file object at 0x47b5e9b0>), 'zinfo.FileHeader': ('local', <bound method ZipInfo.FileHeader of <zipfile.ZipInfo object at 0x47b535d0>>)} 
File "/usr/lib/python2.5/zipfile.py", line 260, FileHeader(self=<zipfile.ZipInfo object at 0x47b535d0>) 
len(self.filename), len(extra)) 
return header + self.filename + extra 
variables: {'header': ('local', 'PK\x03\x04\x14\x00\x00\x00\x00\x00\x10\x98\x97>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00'), 'self.filename': ('local', u'tone/Sketch_Pencil_1.myb'), 'extra': ('local', '')} 
UnicodeDecodeError: 'utf8' codec can't decode byte 0x98 in position 11: unexpected code byte
EDIT: There is also Scale problem in Brush Settings->more (envelopes), envelope do not show entirely on the window - see attachment.

EDIT2: Problem at envelope display is somewhat random?
Attached Images
 
__________________
Tone aka Creativetone aka Luovatone

Apple iPad Air 3 & iPad mini 5 | Apple Pencil
MacBook Pro 13-inch | Intuos Pro S, Cintiq 27QHD
iPhone XS Max | Main phone
Nokia N900 x2 | OC 1,15 GHz | MyPaint 0.9.1 for Fremantle | Tone's Brush Set X


www.tonikasurinen.fi
www.facebook.com/tonikasurinenartist
www.instagram.com/tonikasurinenartist

Last edited by Creativetone; 2011-04-25 at 17:39. Reason: second Bug :(
 

The Following 3 Users Say Thank You to Creativetone For This Useful Post: