Control: reassign -1 libboost-python1.74-dev 1.74.0-18
Control: tags -1 patch

On Tue, 6 Dec 2022 16:24:25 +0000 Alastair McKinstry <alastair.mckins...@sceal.ie> wrote:

> On 06/12/2022 13:47, picca wrote:
> > Hello, I am trying to fix this bug
> >
> I'm debugging something similar,
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024911
>
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024859
> >
> > I find the error message not very informative...
> >
> > :~/$ python3.11
> > Python 3.11.0+ (main, Nov  4 2022, 09:23:33) [GCC 12.2.0] on linux
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> import scitbx_linalg_ext
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > SystemError: initialization of scitbx_linalg_ext raised unreported
> > exception
> >>>>
> >
> The problem is that python is catching a C/C++  exception.
>
> You can debug with:
>
> gdb /usr/bin/python3.11
>
> ...
>
> (gdb) catch throw
>
> (gdb) run
>
> >> import scitbx_linalg_ext
>
> ...
>
> > I would like your opinion and some help in order to fix this or at
> > least understand what is going on.
> >
> > ther extension was build with boost_python, maybe something is wrong
> > also with boost_python and Python3.11.
> >

boost-python 1.81.0 has a fix for this, though it was not mentioned in their release notes

https://github.com/boostorg/python/commit/a218babc8daee904a83f550fb66e5cb3f1cb3013

Conda backported this to boost-python 1.78, so hopefully backporting to Debian's 1.74 is equally simple

https://github.com/conda-forge/boost-feedstock/pull/156/files

--
Michael R. Crusoe

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to