Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932566 - dev-python/quantities-0.15.0 fails tests: FAILED test_arithmetic.py::TestDTypes::test_mul - KeyError: 1
Summary: dev-python/quantities-0.15.0 fails tests: FAILED test_arithmetic.py::TestDTyp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: David Denoncin
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-05-23 14:59 UTC by Agostino Sarubbo
Modified: 2024-06-26 12:40 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,377.83 KB, text/plain)
2024-05-23 14:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-05-23 14:59:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/quantities-0.15.0 fails tests.
Discovered on: amd64 (internal ref: gcc14_tinderbox)
System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-05-23 14:59:21 UTC
Created attachment 894059 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-05-23 14:59:22 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


        except AttributeError:
E           AssertionError: Dimensionalities are not equal (dimensionless vs m*J)
E           AttributeError: 'int' object has no attribute 'relative_uncertainty'
E           ValueError: Unable to avoid copy while creating an array as requested.
E       AssertionError: False is not true
E       AttributeError: `ptp` was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead.
E       KeyError: 1
E       ValueError: Unable to avoid copy while creating an array as requested.
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
FAILED quantities/tests/test_arithmetic.py::TestDTypes::test_mul - KeyError: 1
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_max - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_mean - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_min - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_nanmax - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_nanmean - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_nanmin - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_nanstd - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_nansum - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_prod - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_ptp - AttributeError: `ptp` was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_std - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_sum - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_trace - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_methods.py::TestQuantityMethods::test_var - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_umath.py::TestUmath::test_nansum - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_umath.py::TestUmath::test_prod - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_umath.py::TestUmath::test_sum - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_umath.py::TestUmath::test_trapz - AssertionError: Dimensionalities are not equal (dimensionless vs m*J)
FAILED quantities/tests/test_uncertainty.py::TestUncertainty::test_rescale - AssertionError: False is not true
FAILED quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainquantity_divide - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainquantity_multiply - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainquantity_negative - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertaintity_mean - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertaintity_nanmean - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainty_minmax_nan_arg - ValueError: Unable to avoid copy while creating an array as requested.
FAILED quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainty_nansum - ValueError: Unable to avoid copy while creating an array as requested.
quantities/tests/test_arithmetic.py::TestDTypes::test_mul FAILED      [ 10/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_max FAILED [ 73/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_mean FAILED [ 74/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_min FAILED [ 75/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_nanmax FAILED [ 78/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_nanmean FAILED [ 79/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_nanmin FAILED [ 80/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_nanstd FAILED [ 81/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_nansum FAILED [ 82/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_prod FAILED [ 84/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_ptp FAILED [ 85/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_std FAILED [ 97/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_sum FAILED [ 98/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_trace FAILED [101/173]
quantities/tests/test_methods.py::TestQuantityMethods::test_var FAILED [103/173]
quantities/tests/test_umath.py::TestUmath::test_nansum FAILED         [147/173]
quantities/tests/test_umath.py::TestUmath::test_prod FAILED           [149/173]
quantities/tests/test_umath.py::TestUmath::test_sum FAILED            [155/173]
quantities/tests/test_umath.py::TestUmath::test_trapz FAILED          [158/173]
quantities/tests/test_uncertainty.py::TestUncertainty::test_rescale FAILED [161/173]
quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainquantity_divide FAILED [163/173]
quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainquantity_multiply FAILED [164/173]
quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainquantity_negative FAILED [165/173]
quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertaintity_mean FAILED [166/173]
quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertaintity_nanmean FAILED [167/173]
quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainty_minmax_nan_arg FAILED [168/173]
quantities/tests/test_uncertainty.py::TestUncertainty::test_uncertainty_nansum FAILED [169/173]
Comment 3 Larry the Git Cow gentoo-dev 2024-06-26 12:40:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88d24c35fd92e8ffed50b2a942c9bc3173f5f484

commit 88d24c35fd92e8ffed50b2a942c9bc3173f5f484
Author:     Petr Vaněk <arkamar@gentoo.org>
AuthorDate: 2024-06-26 12:37:06 +0000
Commit:     Petr Vaněk <arkamar@gentoo.org>
CommitDate: 2024-06-26 12:40:03 +0000

    dev-python/quantities: restrict rdeps to <dev-python/numpy-2
    
    The Numpy 2.0.0 is not yet supported.
    
    Closes: https://bugs.gentoo.org/932566
    Signed-off-by: Petr Vaněk <arkamar@gentoo.org>

 .../{quantities-0.15.0.ebuild => quantities-0.15.0-r1.ebuild}        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)