Package: mypaint
Version: 2.0.1-11+b1
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: frank.dietr...@gmx.li

Dear Maintainer,

starting mypaint from the console reveals the following error message

---- start ----
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

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 10, in <module>
    from . import _mypaintlib
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/numpy/core/_multiarray_umath.py", line
44, in __getattr__
    raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.3 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.


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 10, in <module>
    from . import _mypaintlib
ImportError: numpy.core.multiarray failed to import

----- end -----

Rebuild the package from source, without any further changes, produces a
runnable application.

steps executed to rebuild
# as non-root user
$ mkdir $temp_build
$ cd $temp_build
$ apt source mypaint
$ dpkg-buildpackage -b

# as root
$ cd $temp_dir/..
$ dpkg -i mypaint_2.0.1-11_amd64.deb

# as non-root user
$ mypaint
INFO: mypaint: Installation layout: conventional POSIX-like structure with
prefix '/usr'
INFO: gui.main: No locale setting found, using system locale
INFO: lib.i18n: POSIX: LANG='en_GB.UTF-8'
INFO: lib.i18n: POSIX: LANGUAGE='en_US:en'
INFO: lib.i18n: Value of LANGUAGE after cleanup: 'en_US:C:en'
INFO: gui.compatibility: Setting mode to 2.x (standard)
INFO: gui.compatibility: Setting default layer type to Pigment
...

Based on the initial error message it might be, that numpy was updated, and
mypaint was not rebuild.

kind regards
Frank


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.17-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mypaint depends on:
ii  gir1.2-gtk-3.0       3.24.48-4
ii  libc6                2.41-4
ii  libgcc-s1            14.2.0-17
ii  libgdk-pixbuf-2.0-0  2.42.12+dfsg-2
ii  libgomp1             14.2.0-17
ii  liblcms2-2           2.16-2
ii  libmypaint-1.5-1     1.6.0-3
ii  libpng16-16t64       1.6.47-1
ii  librsvg2-bin         2.59.90+dfsg-2
ii  libstdc++6           14.2.0-17
ii  mypaint-brushes      2.0.2+ds1-2
ii  mypaint-data         2.0.1-11
ii  python3              3.13.2-2
ii  python3-gi           3.50.0-4+b1
ii  python3-gi-cairo     3.50.0-4+b1
ii  python3-numpy        1:2.2.3+ds-2+b1

Versions of packages mypaint recommends:
ii  mypaint-data-extras  2.0.1-11
ii  shared-mime-info     2.4-5+b2

mypaint suggests no packages.

-- no debconf information

Reply via email to