Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13716

Bug#999525: [help] New error in test cases of bmtk

Path csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#999525: [help] New error in test cases of bmtk
Date Mon, 22 Nov 2021 13:40:01 +0100
Message-ID <DmgCl-7xK-1@gated-at.bofh.it> (permalink)
References <DmgM1-7AU-5@gated-at.bofh.it>
X-Original-To 999525@bugs.debian.org, Debian Python <debian-python@lists.debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Nov 22 12:30:11 2021
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.951
Reply-To Andreas Tille <andreas@an3as.eu>, 999525@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
X-Debian-Pr-Message followup 999525
X-Debian-Pr-Package src:bmtk
X-Debian-Pr-Keywords bookworm ftbfs sid
X-Debian-Pr-Source bmtk
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1692214
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 76
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Shayan Doust <hello@shayandoust.me>
X-Original-Date Mon, 22 Nov 2021 13:27:23 +0100
X-Original-Message-ID <YZuMq7VzltScXiYB@an3as.eu>
X-Original-References <YY4WuSmIbI3NmxT9@xanadu.blop.info>
Xref csiph.com linux.debian.bugs.dist:1082690 linux.debian.maint.python:13716

Cross-posted to 2 groups.

Show key headers only | View raw


Hi,

I think I've found a patch[1] to solve the original issue which just
seems to be a floating point precision issue.  However, meanwhile there
is another less simple issue:

==================================== ERRORS ====================================
_ ERROR collecting .pybuild/cpython3_3.10/build/bmtk/tests/builder/test_connection_map.py _
ImportError while importing test module '/build/bmtk-0.0.9+ds/.pybuild/cpython3_3.10/build/bmtk/tests/builder/test_connection_map.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3/dist-packages/pandas/__init__.py:30: in <module>
    from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
/usr/lib/python3/dist-packages/pandas/_libs/__init__.py:13: in <module>
    from pandas._libs.interval import Interval
E   ModuleNotFoundError: No module named 'pandas._libs.interval'

The above exception was the direct cause of the following exception:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
bmtk/tests/builder/test_connection_map.py:4: in <module>
    from bmtk.builder.connection_map import ConnectionMap
bmtk/builder/__init__.py:23: in <module>
    from .networks import DenseNetwork, NetworkBuilder
bmtk/builder/networks/__init__.py:23: in <module>
    from .dm_network import DenseNetwork
bmtk/builder/networks/dm_network.py:32: in <module>
    from bmtk.utils import sonata
bmtk/utils/sonata/__init__.py:24: in <module>
    from .file import File
bmtk/utils/sonata/file.py:23: in <module>
    from . import utils
bmtk/utils/sonata/utils.py:27: in <module>
    import pandas as pd
/usr/lib/python3/dist-packages/pandas/__init__.py:34: in <module>
    raise ImportError(
E   ImportError: C extension: No module named 'pandas._libs.interval' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --
_ ERROR collecting .pybuild/cpython3_3.10/build/bmtk/tests/builder/test_connector.py _
ImportError while importing test module '/build/bmtk-0.0.9+ds/.pybuild/cpython3_3.10/build/bmtk/tests/builder/test_connector.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3/dist-packages/pandas/__init__.py:30: in <module>
    from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
/usr/lib/python3/dist-packages/pandas/_libs/__init__.py:13: in <module>
    from pandas._libs.interval import Interval
E   ModuleNotFoundError: No module named 'pandas._libs.interval'

The above exception was the direct cause of the following exception:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
bmtk/tests/builder/test_connector.py:1: in <module>
    from bmtk.builder import connector
bmtk/builder/__init__.py:23: in <module>
    from .networks import DenseNetwork, NetworkBuilder
bmtk/builder/networks/__init__.py:23: in <module>
    from .dm_network import DenseNetwork
bmtk/builder/networks/dm_network.py:32: in <module>
    from bmtk.utils import sonata
bmtk/utils/sonata/__init__.py:2============================= test session starts ==============================


I updated the upstream version in Git (but the issue is the same for the version
in unstable) and you can see a full build log in Salsa CI[2].

Any idea how to fix this?

Kind regards

      Andreas.


[1] https://salsa.debian.org/med-team/bmtk/-/blob/master/debian/patches/precision_in_test.patch
[2] https://salsa.debian.org/med-team/bmtk/-/jobs/2206233#L2178

-- 
http://fam-tille.de

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#999525: [help] New error in test cases of bmtk Andreas Tille <andreas@an3as.eu> - 2021-11-22 13:40 +0100
  Re: [help] New error in test cases of bmtk Andrey Rahmatullin <wrar@debian.org> - 2021-11-22 13:40 +0100

csiph-web