MyPaint

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

MyPaint

Post#1 by rych » 27 Feb 2023, 09:24

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

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

MyPaint

Post#2 by babam » 27 Feb 2023, 09:28

Try activating 05-devel.xzm
Sorry, my English is bad.

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

MyPaint

Post#3 by rych » 28 Feb 2023, 08:57

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?

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

MyPaint

Post#4 by babam » 28 Feb 2023, 09:58

Try python3
Sorry, my English is bad.

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

MyPaint

Post#5 by rych » 04 Mar 2023, 08:41

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.
>>> 

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

MyPaint

Post#6 by babam » 04 Mar 2023, 09:39

Download and activate python3.
Python3 on Porteus is stripped.
https://slackware.uk/slackware/slackwar ... ck15.0.txz
Sorry, my English is bad.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3925
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

MyPaint

Post#7 by ncmprhnsbl » 04 Mar 2023, 13:23

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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

rych
Warlord
Warlord
Posts: 622
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 5.0 x64 OpenBox
Location: NZ
Contact:

MyPaint

Post#8 by rych » 06 Mar 2023, 08:24

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.

Post Reply