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


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

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

Started byAndreas Tille <andreas@an3as.eu>
First post2021-11-22 13:40 +0100
Last post2021-11-22 13:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

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

FromAndreas Tille <andreas@an3as.eu>
Date2021-11-22 13:40 +0100
SubjectBug#999525: [help] New error in test cases of bmtk
Message-ID<DmgCl-7xK-1@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#13717 — Re: [help] New error in test cases of bmtk

FromAndrey Rahmatullin <wrar@debian.org>
Date2021-11-22 13:40 +0100
SubjectRe: [help] New error in test cases of bmtk
Message-ID<DmgM2-7AU-19@gated-at.bofh.it>
In reply to#13716

[Multipart message — attachments visible in raw view] — view raw

On Mon, Nov 22, 2021 at 01:27:23PM +0100, Andreas Tille wrote:
> 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'
You need to wait until it's built for 3.10.

-- 
WBR, wRAR

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web