• Bug#1095332: casacore-data-sources: FTBFS: RuntimeError: PycArray: fail

    From Santiago Vila@21:1/5 to All on Fri Feb 7 13:20:05 2025
    Package: src:casacore-data-sources
    Version: 2-6
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean
    dh_clean
    debian/rules binary
    dh binary
    dh_update_autotools_config
    dh_autoreconf
    debian/rules override_dh_auto_build
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    python3 debian/create_casacore_table.py

    A module that was compiled using NumPy 1.x cannot be run in
    NumPy 2.2.2 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 "/<<PKGBUILDDIR>>/debian/create_casacore_table.py", line 31, in <module>
    with tables.table('Sources', tables.tablecreatedesc(columns), len(lines)) as tbl:
    File "/usr/lib/python3/dist-packages/casacore/tables/table.py", line 352, in __init__
    Table.__init__(self, tabname, lockopt, endian,
    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.2 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 "/<<PKGBUILDDIR>>/debian/create_casacore_table.py", line 31, in <module>
    with tables.table('Sources', tables.tablecreatedesc(columns), len(lines)) as tbl:
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/casacore/tables/table.py", line 352, in __init__
    Table.__init__(self, tabname, lockopt, endian,
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    memtype, nrow, tabledesc, dminfo)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    RuntimeError: PycArray: failed to load the numpy API
    make[1]: *** [debian/rules:7: override_dh_auto_build] Error 1
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    make: *** [debian/rules:4: binary] Error 2
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202502/

    About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

    If you could not reproduce the bug please contact me privately, as I
    am willing to provide ssh access to a virtual machine where the bug is
    fully reproducible.

    If this is really a bug in one of the build-depends, please use
    reassign and add an affects on src:casacore-data-sources, so that this is still visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Feb 9 11:50:01 2025
    This is a multi-part message in MIME format...

    Your message dated Sun, 9 Feb 2025 11:41:09 +0100
    with message-id <a929e2d2-4b3f-4d76-869a-1f633aaa1eb3@debian.org>
    and subject line Close bug that is no longer actual
    has caused the Debian Bug report #1095332,
    regarding casacore-data-sources: FTBFS: RuntimeError: PycArray: failed to load the numpy API
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1095332: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1095332
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 7 Feb 2025 12:11:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-121.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,
    USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 5; hammy, 150; neutral, 142; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--pkgbuilddir,
    0.000-+--PKGBUILDDIR, 0.000-+--trixie, 0.000-+--H*F:U*sanvila Return-path: <sanvila@debian.org>
    Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:46358)
    from C=NA,ST=NA,L=Ankh Morpor