Page 1 of 1

MyPaint

Posted: 27 Feb 2023, 09:24
by rych
Although MyPaint-v2.0.1.AppImage works fine, the mypaint-2.0.1-x86_64-1salix15.0.xzm built by getmod seems to be incomplete and does not actually run:

Code: Select all

root@porteus:~# mypaint
INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix '/usr'
WARNING: gui.userconfig: Failed to load settings file: /root/.config/mypaint/settings.json
WARNING: gui.userconfig: Failed to load settings: using defaults
INFO: gui.main: No locale setting found, using system locale
INFO: lib.i18n: POSIX: LANG='en_US.UTF-8'
INFO: lib.i18n: POSIX: LANGUAGE=None
WARNING: gui.userconfig: Failed to load settings file: /root/.config/mypaint/settings.json
WARNING: gui.userconfig: Failed to load settings: using defaults
INFO: gui.compatibility: Setting mode to 2.x (standard)
INFO: gui.compatibility: Setting default layer type to Pigment
INFO: gui.device: New device 'Logitech USB Optical Mouse' (GDK_SOURCE_MOUSE, axes:4, class=X11DeviceXI2, vendor='046d', product='c077')
INFO: gui.device: New device 'Wacom Intuos BT S Pad pad' (GDK_SOURCE_TABLET_PAD, axes:6, class=X11DeviceXI2, vendor='056a', product='0376')
INFO: gui.device: New device 'Wacom Intuos BT S Pen stylus' (GDK_SOURCE_PEN, axes:6, class=X11DeviceXI2, vendor='056a', product='0376')
INFO: gui.device: New device 'Virtual core XTEST pointer' (GDK_SOURCE_MOUSE, axes:2, class=X11DeviceXI2, vendor=None, product=None)
INFO: gui.document: Initialized background from '/usr/share/mypaint/backgrounds/mrmamurk/mamurk_e_1.png'
WARNING: gui.keyboard: Ignoring keybinding for '<Actions>/BrushModifierActions/BlendModeMenu'
Traceback (most recent call last):
  File "/usr/bin/mypaint", line 309, in <module>
    main.main(
  File "/usr/lib/mypaint/gui/main.py", line 231, in main
    run()
  File "/usr/lib/mypaint/gui/main.py", line 216, in run
    from gui import gtkexcepthook
  File "/usr/lib/mypaint/gui/gtkexcepthook.py", line 25, in <module>
    import pydoc
ModuleNotFoundError: No module named 'pydoc'
I would be satisfied with AppImage, but I heard there could be some benefits in system integration as other apps could use MyPaint brushes? Anyway, if you have a working module, could you share? Thanks

MyPaint

Posted: 27 Feb 2023, 09:28
by babam
Try activating 05-devel.xzm

MyPaint

Posted: 28 Feb 2023, 08:57
by rych
babam wrote:
27 Feb 2023, 09:28
Try activating 05-devel.xzm
Works! But do I have to activate the rather large 124MB 05-devel.xzm whenever I want to run MyPaint? Couldn't getmod bundle the dependency at the module-creation time?

MyPaint

Posted: 28 Feb 2023, 09:58
by babam
Try python3

MyPaint

Posted: 04 Mar 2023, 08:41
by rych
babam wrote:
28 Feb 2023, 09:58
Try python3

Code: Select all

root@porteus:~# python3
Python 3.9.12 (main, Mar 24 2022, 14:31:07) 
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 

MyPaint

Posted: 04 Mar 2023, 09:39
by babam
Download and activate python3.
Python3 on Porteus is stripped.
https://slackware.uk/slackware/slackwar ... ck15.0.txz

MyPaint

Posted: 04 Mar 2023, 13:23
by ncmprhnsbl
rych wrote:
28 Feb 2023, 08:57
Works! But do I have to activate the rather large 124MB 05-devel.xzm whenever I want to run MyPaint? Couldn't getmod bundle the dependency at the module-creation time?
all you need is /usr/lib64/python3.9/pydoc.py which has been moved to 05-devel(since forever, since next to nothing uses it to run) , so either copy or move that file(in that dir tree) to your mypaint bundle.

btw i looked at mypaint's code(python scripts) to see what it's using pydoc for: one instance for debug function.
for fun, i commented the relevent section out, and it ran fine without it.
just, presumably in the event of a crash, the debug message would probly fail..

MyPaint

Posted: 06 Mar 2023, 08:24
by rych
ncmprhnsbl wrote:
04 Mar 2023, 13:23
all you need is /usr/lib64/python3.9/pydoc.py which has been moved to 05-devel
This worked. Thank you.