u meant to do this, you must specify 'dtype=object' when creating the ndarray. distance_matrix = np.array([[0.0, 0.5, 3.0], -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 35 passed, 2 warnings in 1.11s ======================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-pyemd-0.5.1-15.fc37.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.DrPDGb + umask 022 + cd /builddir/build/BUILD + cd pyemd-0.5.1 + DOCDIR=/builddir/build/BUILDROOT/python-pyemd-0.5.1-15.fc37.riscv64/usr/share/doc/python3-pyemd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-pyemd-0.5.1-15.fc37.riscv64/usr/share/doc/python3-pyemd + cp -pr README.rst /builddir/build/BUILDROOT/python-pyemd-0.5.1-15.fc37.riscv64/usr/share/doc/python3-pyemd + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.3YFYQH + umask 022 + cd /builddir/build/BUILD + cd pyemd-0.5.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-pyemd-0.5.1-15.fc37.riscv64/usr/share/licenses/python3-pyemd + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-pyemd-0.5.1-15.fc37.riscv64/usr/share/licenses/python3-pyemd + cp -pr LICENSE /builddir/build/BUILDROOT/python-pyemd-0.5.1-15.fc37.riscv64/usr/share/licenses/python3-pyemd + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-pyemd = 0.5.1-15.fc37 python3-pyemd = 0.5.1-15.fc37 python3-pyemd(riscv-64) = 0.5.1-15.fc37 python3.11-pyemd = 0.5.1-15.fc37 python3.11dist(pyemd) = 0.5.1 python3dist(pyemd) = 0.5.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: (python3.11dist(numpy) < 2~~ with python3.11dist(numpy) >= 1.9) ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.27)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.29)(64bit) libstdc++.so.6(GLIBCXX_3.4.30)(64bit) python(abi) = 3.11 rtld(GNU_HASH) Obsoletes: python-pyemd < 0.5.1-15.fc37 Processing files: python-pyemd-debugsource-0.5.1-15.fc37.riscv64 Provides: python-pyemd-debugsource = 0.5.1-15.fc37 python-pyemd-debugsource(riscv-64) = 0.5.1-15.fc37 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: python3-pyemd-debuginfo-0.5.1-15.fc37.riscv64 Provides: debuginfo(build-id) = 9fc4c538270930f0d5c8c163b2988e52d3fbf739 python-pyemd-debuginfo = 0.5.1-15.fc37 python3-pyemd-debuginfo = 0.5.1-15.fc37 python3-pyemd-debuginfo(riscv-64) = 0.5.1-15.fc37 python3.11-pyemd-debuginfo = 0.5.1-15.fc37 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: python-pyemd-debugsource(riscv-64) = 0.5.1-15.fc37 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-pyemd-0.5.1-15.fc37.riscv64 Wrote: /builddir/build/RPMS/python3-pyemd-0.5.1-15.fc37.riscv64.rpm Wrote: /builddir/build/RPMS/python-pyemd-debugsource-0.5.1-15.fc37.riscv64.rpm Wrote: /builddir/build/RPMS/python3-pyemd-debuginfo-0.5.1-15.fc37.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.8160LI + umask 022 + cd /builddir/build/BUILD + cd pyemd-0.5.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-pyemd-0.5.1-15.fc37.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.sfS9VN + umask 022 + cd /builddir/build/BUILD + rm -rf pyemd-0.5.1 pyemd-0.5.1.gemspec + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0