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


Groups > linux.debian.bugs.rc > #412133

Bug#1129609: python-memray: another autopkgtest failure causing ImportError unknown location

From Helmut Grohne <helmut@subdivi.de>
Newsgroups linux.debian.bugs.rc
Subject Bug#1129609: python-memray: another autopkgtest failure causing ImportError unknown location
Date 2026-03-03 22:40 +0100
Message-ID <MuFDc-4ObY-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Source: python-memray
Version: 1.17.0+dfsg-1
Severity: serious

On top of the reported autopkgtest failure #1126944, there is another
one shadowing the former one. Some ecosystem change (pytest?) results in
tests failing to import memray:

|  57s ________________ ERROR collecting tests/integration/test_api.py ________________
|  57s ImportError while importing test module '/tmp/autopkgtest.ONqy8a/autopkgtest_tmp/tests/integration/test_api.py'.
|  57s Hint: make sure your test modules/packages have valid Python names.
|  57s Traceback:
|  57s /usr/lib/python3.14/importlib/__init__.py:88: in import_module
|  57s     return _bootstrap._gcd_import(name[level:], package, level)
|  57s            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|  57s tests/integration/test_api.py:5: in <module>
|  57s     from memray import FileDestination
|  57s /usr/lib/python3/dist-packages/memray/__init__.py:2: in <module>
|  57s     from ._memray import AllocationRecord
|  57s E   ImportError: cannot import name 'AllocationRecord' from 'memray._memray' (unknown location)

It is not clear why this happens now and didn't happen earlier. I tried
understanding it, but did not. What I did figure though was that if you
append "tests/" to the pytest invocation, this one gets fixed and we can
see #1126944 again.

On that other one, I spent some effort recorded in the upstream bug
tracker. At this time I suggest uploading libunwind with the
incompatible C++ exception support disabled. Before we can do that, this
failure needs to be fixed.

Helmut

Back to linux.debian.bugs.rc | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1129609: python-memray: another autopkgtest failure causing ImportError unknown location Helmut Grohne <helmut@subdivi.de> - 2026-03-03 22:40 +0100
  Bug#1129609: marked as done (python-memray: another autopkgtest  failure causing ImportError unknown location) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2026-03-23 22:40 +0100

csiph-web