URL:
<http://gna.org/bugs/?20640>
Summary: non fatal error on "save as" and "export" ,saves
anyway.
Project: MyPaint
Submitted by: digit
Submitted on: Sat Mar 23 14:40:09 2013
Severity: 2 - Minor
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.0.0
Planned Release: None
Operating System: crunchbang linux (debian)
_______________________________________________________
Details:
mypaint 1.0.0
running crunchbang, just updated. using sid and debian-multimedia repos.
when saving as (didnt copy output that time sorry), and export, a "probably
non fatal" error message pops up, containing the output bellow.
i had a look at the png exported, and it seems to have been saved none the
worse for the error. hadnt tried just save.
thought i should report it anyway. :)
hopefully that's of use to you guys. :)
had a brief skim through the existing bugs, didnt see anything, hope am not
too hastey, and duplicating a bug here. sry bout that if so.
(loving mypaint btw)
=== traceback output ===
Traceback (most recent call last):
File "/usr/share/mypaint/gui/filehandling.py", line 449,
save_as_cb(self=<gui.filehandling.FileHandler object>, action=<gtk.Action
object at 0x214f690 (GtkAction at 0x2095340)>)
# Do not change working file
self.save_as_dialog(self.save_file, suggested_filename =
current_filename, export=True)
else:
variables: {'self.save_file': ('local', <bound method FileHandler.wrapper of
<gui.filehandling.FileHandler object at 0x21478d0>>), 'self.save_as_dialog':
('local', <bound method FileHandler.save_as_dialog of
<gui.filehandling.FileHandler object at 0x21478d0>>), 'current_filename':
('local', ''), 'export': (None, []), 'suggested_filename': (None, []), 'True':
('builtin', True)}
File "/usr/share/mypaint/gui/filehandling.py", line 509,
save_as_dialog(self=<gui.filehandling.FileHandler object>,
save_method_reference=<bound method FileHandler.wrapper of
<gui.filehandling.FileHandler object>>, suggested_filename='',
start_in_folder=None, export=True, **options={'alpha': False})
# Do not change working file
save_method_reference(filename, True, **options)
else:
variables: {'True': ('builtin', True), 'options': ('local', {'alpha':
False}), 'save_method_reference': ('local', <bound method FileHandler.wrapper
of <gui.filehandling.FileHandler object at 0x21478d0>>), 'filename': ('local',
u'/home/digit/images/graphs/digitslearningstylesmap.png')}
File "/usr/share/mypaint/gui/drawwindow.py", line 46,
wrapper(self=<gui.filehandling.FileHandler object>,
*args=(u'/home/digit/images/graphs/digitslearningstylesmap.png', True),
**kwargs={'alpha': False})
try:
func(self, *args, **kwargs)
# gtk main loop may be called in here...
variables: {'self': ('local', <gui.filehandling.FileHandler object at
0x21478d0>), 'args': ('local',
(u'/home/digit/images/graphs/digitslearningstylesmap.png', True)), 'func':
('local', <function save_file at 0x1dfccf8>), 'kwargs': ('local', {'alpha':
False})}
File "/usr/share/mypaint/gui/filehandling.py", line 292,
save_file(self=<gui.filehandling.FileHandler object>,
filename=u'/home/digit/images/graphs/digitslearningstylesmap.png',
export=True, **options={'alpha': False})
thumbnail_pixbuf = self.doc.model.render_thumbnail()
helpers.freedesktop_thumbnail(self.filename, thumbnail_pixbuf)
variables: {'thumbnail_pixbuf': ('local', <gtk.gdk.Pixbuf object at
0x3fd2dc0 (GdkPixbuf at 0x35ae8f0)>), 'helpers.freedesktop_thumbnail':
('global', <function freedesktop_thumbnail at 0x1b42578>), 'self.filename':
('local', <gui.filehandling.FileHandler object at 0x21478d0>)}
File "/usr/share/mypaint/lib/helpers.py", line 133,
freedesktop_thumbnail(filename=None, pixbuf=<gtk.gdk.Pixbuf object at
0x3fd2dc0 (GdkPixbuf at 0x35ae8f0)>)
uri = filename2uri(filename)
file_hash = hashlib.md5(uri).hexdigest()
variables: {'filename2uri': ('global', <function filename2uri at
0x1b427d0>), 'uri': (None, []), 'filename': ('local', None)}
File "/usr/share/mypaint/lib/helpers.py", line 245, filename2uri(path=None)
def filename2uri(path):
path = os.path.abspath(path)
#print 'encode', repr(path.encode('utf-8'))
variables: {'path': ('local', None), 'os.path.abspath': ('global', <function
abspath at 0x7f71b59859b0>)}
File "/usr/lib/python2.7/posixpath.py", line 352, abspath(path=None)
"""Return an absolute path."""
if not isabs(path):
if isinstance(path, _unicode):
variables: {'path': ('local', None), 'isabs': ('global', <function isabs at
0x7f71b597cde8>)}
File "/usr/lib/python2.7/posixpath.py", line 61, isabs(s=None)
"""Test whether a path is absolute"""
return s.startswith('/')
variables: {'s': ('local', None)}
AttributeError: 'NoneType' object has no attribute 'startswith'
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?20640>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs