Hi,
first of all, thanks a lot for developing this really nice and flexible piece of software, I really like it!
However:
Description of the Problem:
Saving image files works fine but trying to load always fails. Preview is working but main canvas area remains empty. Using the debug version of mypaint I get the error message shown below. The saved files are fine, can be opened by other programs. I tried uninstall, reinstall, delete setting files, restart windows, tried standalone version.
Thanks a lot!
Basic System Details
MyPaint version:
w64
2.0.0+git.af5225a2
Operating System + Version:
Win 10
Version 10.0.18363 Build 18363
Please Tell Us How to Reproduce the Problem in Steps.
Create image, save as png or ora. Close mypaint, reopen, try to load again.
Are there any Errors Popping Up? If so, paste the text in the area shown below.
Output of mypaint debug:
```python
Mypaint version: 2.0.0+git.af5225a2
System information: Windows-10-10.0.18362-SP0
Using: Python 3.8.1, GTK 3.24.13, GdkPixbuf 2.40.0, Cairo 1.16.0, GLib 2.62.1
Traceback (most recent call last):
File "C:/Software/MyPaint/mingw64/lib/mypaint/gui/filehandling.py", line 1073, open_cb(self=<gui.filehandling.FileHandler object>, action=<Gtk.Action object at 0x000000000df7c140 (GtkAction at 0x000000000d203730)>)
filename = filename_to_unicode(filename)
self.open_file(
filename,
variables: {'self.open_file': ('local', <bound method FileHandler.open_file of <gui.filehandling.FileHandler object at 0x000000000df5faf0>>), 'filename': ('local', 'C:\\Software\\MyPaint\\test.ora'), 'compat_handler': (None, []), 'selector.compat_function': ('local', <gui.compatibility.CompatSelector object at 0x0000000010df5670>)}
File "C:/Software/MyPaint/mingw64/lib/mypaint/gui/filehandling.py", line 827, open_file(self=<gui.filehandling.FileHandler object>, filename=r'C:\Software\MyPaint\test.ora', **kwargs={'compat_handler': None})
"""Load a file, replacing the current working document."""
if not self._call_doc_load_method(
self.doc.model.load, filename, False, **kwargs):
variables: {'self._call_doc_load_method': ('local', <bound method FileHandler._call_doc_load_method of <gui.filehandling.FileHandler object at 0x000000000df5faf0>>), 'self.doc.model.load': ('local', <bound method Document.load of <Document nlayers=1 bbox=Rect(0, 0, 0, 0) paintonly=False>>), 'filename': ('local', 'C:\\Software\\MyPaint\\test.ora'), 'kwargs': ('local', {'compat_handler': None})}
File "C:/Software/MyPaint/mingw64/lib/mypaint/gui/filehandling.py", line 880, _call_doc_load_method(self=<gui.filehandling.FileHandler object>, method=<bound method Document.load of <Document nlayers=1 bbox=Rect(0, 0, 0, 0) paintonly=False>>, arg=r'C:\Software\MyPaint\test.ora', is_import=False, compat_handler=<function ora_compat_handler.<locals>.handler>)
files_summary = _IOProgressUI.format_files_summary(arg)
ioui = _IOProgressUI(self.app, op_type, files_summary)
result = ioui.call(
variables: {'ioui': (None, []), '_IOProgressUI': ('global', <class 'gui.filehandling._IOProgressUI'>), 'self.app': ('local', <gui.application.Application object at 0x0000000002dfe250>), 'op_type': ('local', 'load'), 'files_summary': ('local', '„test.ora"')}
File "C:/Software/MyPaint/mingw64/lib/mypaint/gui/filehandling.py", line 249, __init__(self=<gui.filehandling._IOProgressUI object>, app=<gui.application.Application object>, op_type='load', files_summary='„test.ora"', use_statusbar=True, use_dialogs=True)
msg = self._OP_DURATION_TEMPLATES[op_type].format(
files_summary = files_summary,
variables: {'msg': (None, []), 'self._OP_DURATION_TEMPLATES': ('local', {'load': '„{file_summary}“ wird geladen …', 'import': 'Importiere Ebenen aus „{files_summary}"…', 'save': '„{files_summary}“ wird gespeichert …', 'export': 'Export nach „{files_summary}“ läuft …'}), 'op_type': ('local', 'load'), 'format': ('builtin', <built-in function format>), 'files_summary': ('local', '„test.ora"')}
KeyError: 'file_summary'