On Fri, 2021-01-15 at 14:36 -0500, Boyuan Yang wrote: > Control: tags -1 +help > > 在 2021-01-15星期五的 18:58 +0100,Andreas Beckmann写道: > > Followup-For: Bug #975582 > > Control: reopen -1 > > Control: retitle -1 mypaint: insufficient python dependency > > > > mypaint ships /usr/lib/mypaint/lib/_mypaintlib.cpython-39-x86_64- > > linux-gnu.so > > but has only a dependency on python3:any - this may be a bug in > > dh_python3 or > > mypaint's usage of dh_python3, but I don't have enough experience > > with > > python packages to spot the error. > > > > For example, ycmd ships /usr/lib/ycmd/ycm_core.cpython-39-x86_64- > > linux-gnu.so > > and has these python dependencies: > > libpython3.9 (>= 3.9.0~b4), python3 (<< 3.10), python3 (>= 3.9~), > > python3:any > > I don't have a solution to it either. Any help would be appreciated. > > Thanks, > Boyuan Yang
Dear maintainer, it seems this bug affects the version of mypaint currently in testing. When I try to start mypaint I get: INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix '/usr' Traceback (most recent call last): File "/usr/bin/mypaint", line 293, in <module> = get_paths() File "/usr/bin/mypaint", line 241, in get_paths from lib import fileutils File "/usr/lib/mypaint/lib/fileutils.py", line 25, in <module> import lib.helpers File "/usr/lib/mypaint/lib/helpers.py", line 25, in <module> from . import mypaintlib File "/usr/lib/mypaint/lib/mypaintlib.py", line 13, in <module> from . import _mypaintlib ImportError: cannot import name '_mypaintlib' from 'lib' (/usr/lib/mypaint/lib/__init__.py) This seems to happen because the package ships /usr/lib/mypaint/lib/_mypaintlib.cpython-39-x86_64-linux-gnu.so but the current system libpython is at version 3.10. I can confirm that rebuilding the package installs /usr/lib/mypaint/lib/_mypaintlib.cpython-310-x86_64-linux-gnu.so and that the program starts properly in this case. I think this package should depend on whatever python version is currently the system default for unstable as mentioned above. Best regards, P.