[From nobody Tue Jul 28 07:21:09 2026
Received: (at submit) by bugs.debian.org; 15 Jul 2026 09:28:30 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-107.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
 FROMDEVELOPER,SPF_HELO_NONE,SPF_PASS,USER_IN_DKIM_WELCOMELIST
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 37; hammy, 150; neutral, 50; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;ginggs@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:48366)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;ginggs@debian.org&gt;) id 1wjvuo-00BRT0-2M
 for submit@bugs.debian.org; Wed, 15 Jul 2026 09:28:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Type:To:Subject:Message-ID:
 Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=1n2uUyfTm1Qimrp0Zi34g0lzWhRnU9VyciEN6t6iv2M=; b=nloz4H0s0BkFQjuXMFcD/P5vRU
 kcw8Dy6Z4bFlzo3alrWRhI2QGVTCXd5o7qrjNbx2WzfHiiuJ4Gvdzqus1/5NtGgumxM2RXneRGd7I
 Xe4gQWTNxJhWYDcn5hNJTDbhuccqtpQGlj4V8quAJgYKM9qZz9TyNcgw61DwRyTJTkrKXRVcAcjgD
 U3sDIm4iD+8lFp+pdj4AMPM6HqVDTeH4eJ1RNmsDEXeTkTY1TanrEgV+fD+P7doPKsfJ+9LPbq3Im
 Hv7V8fwBCWCQdMO+urF/2fbTMP6cRAqPAKDebaKdgZs/QVFxEoGicIO/L8aXiiAEM5O4yFy6lEqw5
 hlL5gOlQ==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
 (Exim 4.96) (envelope-from &lt;ginggs@debian.org&gt;) id 1wjvum-002wyC-2h
 for submit@bugs.debian.org; Wed, 15 Jul 2026 09:28:29 +0000
Received: by mail-ua1-f53.google.com with SMTP id
 a1e0cc1a2514c-96922b15ae3so136764241.2
 for &lt;submit@bugs.debian.org&gt;; Wed, 15 Jul 2026 02:28:28 -0700 (PDT)
X-Gm-Message-State: AOJu0Yzfk1PBqlS8ILWtNiPYIyn8iP0wTXM0yD9XDq7lNuSTUyybE81d
 wRawoRxBKfjbbBrgwBv5TOkZvfATJaUQe7jHyiffBwSAj4D/Ai9LTvxXtQ9/BQsulnJCxUmI9OQ
 ycu/ZWP1M/SgK79a3vKELWnkBCJMy71Y=
X-Received: by 2002:ac5:c00d:0:10b0:5bf:73a5:3e05 with SMTP id
 71dfb90a1353d-5bfbf383825mr2744602e0c.3.1784107707432; Wed, 15 Jul 2026
 02:28:27 -0700 (PDT)
MIME-Version: 1.0
From: Graham Inggs &lt;ginggs@debian.org&gt;
Date: Wed, 15 Jul 2026 09:28:16 +0000
X-Gmail-Original-Message-ID: &lt;CAM8zJQuduM0RmX5UG+G_Nwx65f_76_hpCJhPGgu++VVGFfjUTQ@mail.gmail.com&gt;
X-Gm-Features: AUfX_mxlL3zpQsS19lNbXy7CLIUhGTcOan5XyUdyjEiJSbFXGgl0xTG_hLeJxGw
Message-ID: &lt;CAM8zJQuduM0RmX5UG+G_Nwx65f_76_hpCJhPGgu++VVGFfjUTQ@mail.gmail.com&gt;
Subject: flox: autopkgtest regression with NumPy 2.4
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Content-Type: text/plain; charset=&quot;UTF-8&quot;
X-Debian-User: ginggs
Delivered-To: submit@bugs.debian.org

Source: flox
Version: 0.11.2-1
Severity: serious
User: debian-python@lists.debian.org
Usertags: numpy2.4

Hi Maintainer

The autopkgtests of flox fail when tested with NumPy 2.4 [1].  I've
copied what I hope is the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/f/flox/testing/amd64/


493s =================================== FAILURES
===================================
493s _________________ test_cohorts_nd_by[flox-blockwise-None-mode]
_________________
493s TypeError: only 0-dimensional arrays can be converted to Python scalars
493s
493s The above exception was the direct cause of the following exception:
493s ../../build.55d/src/tests/test_core.py:1211: in test_cohorts_nd_by
493s     expected, sorted_groups = groupby_reduce(array.compute(), by, **kwargs)
493s                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
493s ../../build.55d/src/flox/core.py:1076: in groupby_reduce
493s     results = _reduce_blockwise(
493s ../../build.55d/src/flox/core.py:502: in _reduce_blockwise
493s     results = chunk_reduce(
493s ../../build.55d/src/flox/core.py:368: in chunk_reduce
493s     result = generic_aggregate(
493s ../../build.55d/src/flox/aggregations.py:124: in generic_aggregate
493s     result = method(
493s ../../build.55d/src/flox/aggregate_npg.py:195: in mode
493s     return npg.aggregate_numpy.aggregate(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:381:
in aggregate
493s     return _aggregate_base(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:331:
in _aggregate_base
493s     ret = _impl_dict.get(&quot;generic&quot;, _generic_callable)(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:240:
in _generic_callable
493s     ret[i] = func(grp)
493s     ^^^^^^
493s E   ValueError: setting an array element with a sequence.
493s _______________ test_cohorts_nd_by[flox-blockwise-None-nanmode]
________________
493s TypeError: only 0-dimensional arrays can be converted to Python scalars
493s
493s The above exception was the direct cause of the following exception:
493s ../../build.55d/src/tests/test_core.py:1211: in test_cohorts_nd_by
493s     expected, sorted_groups = groupby_reduce(array.compute(), by, **kwargs)
493s                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
493s ../../build.55d/src/flox/core.py:1076: in groupby_reduce
493s     results = _reduce_blockwise(
493s ../../build.55d/src/flox/core.py:502: in _reduce_blockwise
493s     results = chunk_reduce(
493s ../../build.55d/src/flox/core.py:368: in chunk_reduce
493s     result = generic_aggregate(
493s ../../build.55d/src/flox/aggregations.py:124: in generic_aggregate
493s     result = method(
493s ../../build.55d/src/flox/aggregate_npg.py:207: in nanmode
493s     return npg.aggregate_numpy.aggregate(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:381:
in aggregate
493s     return _aggregate_base(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:331:
in _aggregate_base
493s     ret = _impl_dict.get(&quot;generic&quot;, _generic_callable)(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:240:
in _generic_callable
493s     ret[i] = func(grp)
493s     ^^^^^^
493s E   ValueError: setting an array element with a sequence.
493s ________________________ test_dtype[flox-float32-mode]
_________________________
493s TypeError: only 0-dimensional arrays can be converted to Python scalars
493s
493s The above exception was the direct cause of the following exception:
493s ../../build.55d/src/tests/test_core.py:1564: in test_dtype
493s     actual, _ = groupby_reduce(
493s ../../build.55d/src/flox/core.py:1076: in groupby_reduce
493s     results = _reduce_blockwise(
493s ../../build.55d/src/flox/core.py:502: in _reduce_blockwise
493s     results = chunk_reduce(
493s ../../build.55d/src/flox/core.py:368: in chunk_reduce
493s     result = generic_aggregate(
493s ../../build.55d/src/flox/aggregations.py:124: in generic_aggregate
493s     result = method(
493s ../../build.55d/src/flox/aggregate_npg.py:195: in mode
493s     return npg.aggregate_numpy.aggregate(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:381:
in aggregate
493s     return _aggregate_base(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:331:
in _aggregate_base
493s     ret = _impl_dict.get(&quot;generic&quot;, _generic_callable)(
493s /usr/lib/python3/dist-packages/numpy_groupies/aggregate_numpy.py:240:
in _generic_callable
493s     ret[i] = func(grp)
493s     ^^^^^^
493s E   ValueError: setting an array element with a sequence.
]