Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701078 - media-gfx/mypaint-1.2.1-r3 fails to run
Summary: media-gfx/mypaint-1.2.1-r3 fails to run
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-24 13:11 UTC by crabbed halo ablution
Modified: 2019-12-28 13:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info media-gfx/mypaint (mypaint-emerge-info.txt,7.02 KB, text/plain)
2019-11-24 13:12 UTC, crabbed halo ablution
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crabbed halo ablution 2019-11-24 13:11:53 UTC
peter@alfsgard ~ $ mypaint
INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix u'/usr'
INFO: lib.i18n: POSIX: LANG='en_GB.UTF-8'
INFO: lib.i18n: POSIX: LANGUAGE=None
Traceback (most recent call last):
  File "/usr/bin/mypaint", line 464, in <module>
    main.main(datapath, iconspath, old_confpath, version=version)
  File "/usr/share/mypaint/gui/main.py", line 95, in main
    from gui import application
  File "/usr/share/mypaint/gui/application.py", line 48, in <module>
    import lib.document
  File "/usr/share/mypaint/lib/document.py", line 37, in <module>
    import lib.helpers as helpers
  File "/usr/share/mypaint/lib/helpers.py", line 26, in <module>
    import mypaintlib
  File "/usr/share/mypaint/lib/mypaintlib.py", line 13, in <module>
    from . import _mypaintlib
ImportError: cannot import name _mypaintlib


Reproducible: Always
Comment 1 crabbed halo ablution 2019-11-24 13:12:37 UTC
Created attachment 597422 [details]
emerge --info  media-gfx/mypaint
Comment 2 lekto 2019-12-28 13:14:56 UTC
I noticed two problems:
1. mypaint is looking for .so in /usr/share/mypaint/lib/, but .so is in /usr/lib64/,
2. mypaint is looking for mypaintlib.so, but file is called libmypaint.so

>lekto@blaszak ~ $ strace mypaint 2>&1 | grep libmypaint
>lekto@blaszak ~ $ strace mypaint 2>&1 | grep mypaintlib
>stat("/usr/share/mypaint/lib/mypaintlib", 0x7fff74a710c0) = -1 ENOENT (No such file or directory)
>openat(AT_FDCWD, "/usr/share/mypaint/lib/mypaintlib.so", O_RDONLY) = -1 ENOENT (No such file or directory)
>openat(AT_FDCWD, "/usr/share/mypaint/lib/mypaintlibmodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
>openat(AT_FDCWD, "/usr/share/mypaint/lib/mypaintlib.py", O_RDONLY) = 15
>openat(AT_FDCWD, "/usr/share/mypaint/lib/mypaintlib.pyc", O_RDONLY) = 16
>stat("/usr/share/mypaint/lib/_mypaintlib", 0x7fff74a70bd0) = -1 ENOENT (No such file or directory)
>openat(AT_FDCWD, "/usr/share/mypaint/lib/_mypaintlib.so", O_RDONLY) = -1 ENOENT (No such file or directory)
>openat(AT_FDCWD, "/usr/share/mypaint/lib/_mypaintlibmodule.so", O_RDONLY) = -1 ENOENT (No such file or directory)
>openat(AT_FDCWD, "/usr/share/mypaint/lib/_mypaintlib.py", O_RDONLY) = -1 ENOENT (No such file or directory)
>openat(AT_FDCWD, "/usr/share/mypaint/lib/_mypaintlib.pyc", O_RDONLY) = -1 ENOENT (No such file or directory)
>write(2, "import mypaintlib\n", 18import mypaintlib
>write(2, "  File \"/usr/share/mypaint/lib/m"..., 68  File "/usr/share/mypaint/lib/mypaintlib.py", line 13, in <module>
>openat(AT_FDCWD, "/usr/share/mypaint/lib/mypaintlib.py", O_RDONLY) = 4
>write(2, "from . import _mypaintlib\n", 26from . import _mypaintlib
>write(2, "cannot import name _mypaintlib", 30cannot import name _mypaintlib) = 30
>lekto@blaszak ~ $ equery f libmypaint | grep "\.so"
>/usr/lib64/libmypaint-1.4.so.0
>/usr/lib64/libmypaint-1.4.so.0.0.0
>/usr/lib64/libmypaint.so