#1150709 sagetex: FTBFS: FileNotFoundError: [Errno 2] No such file or directory: 'E2.sobj'

#1150709#5
Date:
2026-10-12 16:35:42 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.
Full build log is available here:

https://people.debian.org/~sanvila/build-logs/202610/

I know this is strange because the package built ok two days ago, but it is what it is.
There is a segfault, so it might be a bug somewhere else.

As always, I can offer a VM to reproduce.

Thanks.
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sage/structure/category_object.pyx", line 856, in sage.structure.category_object.CategoryObject.getattr_from_category
    return self._cached_methods[name]
KeyError: '_pari_mincurve'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 654, in pari_mincurve
    return self._pari_mincurve
           ^^^^^^^^^^^^^^^^^^^
  File "sage/structure/category_object.pyx", line 850, in sage.structure.category_object.CategoryObject.__getattr__
    return self.getattr_from_category(name)
  File "sage/structure/category_object.pyx", line 865, in sage.structure.category_object.CategoryObject.getattr_from_category
    attr = getattr_from_other_class(self, cls, name)
  File "sage/cpython/getattr.pyx", line 357, in sage.cpython.getattr.getattr_from_other_class
    raise AttributeError(dummy_error_message)
AttributeError: 'EllipticCurve_rational_field_with_category' object has no attribute '_pari_curve'. Did you mean: 'pari_mincurve'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "sage/structure/category_object.pyx", line 856, in sage.structure.category_object.CategoryObject.getattr_from_category
    return self._cached_methods[name]
KeyError: '_pari_curve'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 632, in pari_curve
    return self._pari_curve
           ^^^^^^^^^^^^^^^^
  File "sage/structure/category_object.pyx", line 850, in sage.structure.category_object.CategoryObject.__getattr__
    return self.getattr_from_category(name)
  File "sage/structure/category_object.pyx", line 865, in sage.structure.category_object.CategoryObject.getattr_from_category
    attr = getattr_from_other_class(self, cls, name)
  File "sage/cpython/getattr.pyx", line 357, in sage.cpython.getattr.getattr_from_other_class
    raise AttributeError(dummy_error_message)
AttributeError: 'EllipticCurve_rational_field_with_category' object has no attribute '_pari_curve'. Did you mean: 'pari_curve'?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/sage_6u1t1tn2/example.sagetex4wp46mvs.sage.py", line 77, in <module>
    E.anlist(_sage_const_100000 )
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 927, in anlist
    e = self.pari_mincurve()
  File "/usr/lib/python3/dist-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 656, in pari_mincurve
    mc, change = self.pari_curve().ellminimalmodel()
                 ~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/sage/schemes/elliptic_curves/ell_rational_field.py", line 634, in pari_curve
    self._pari_curve = pari(self.a_invariants()).ellinit()
                       ~~~~^^^^^^^^^^^^^^^^^^^^^
  File "sage/misc/lazy_import.pyx", line 413, in sage.misc.lazy_import.LazyImport.__call__
    return self.get_object()(*args, **kwds)
  File "cypari2/pari_instance.pyx", line 837, in cypari2.pari_instance.Pari.__call__
  File "cypari2/gen.pyx", line 4801, in cypari2.gen.objtogen
  File "cypari2/gen.pyx", line 4786, in cypari2.gen.objtogen
  File "sage/rings/rational.pyx", line 3805, in sage.rings.rational.Rational.__pari__
    return new_gen_from_rational(self)
  File "sage/libs/pari/convert_sage.pyx", line 433, in sage.libs.pari.convert_sage.new_gen_from_rational
    cpdef Gen new_gen_from_rational(Rational self):
  File "sage/libs/pari/convert_sage.pyx", line 442, in sage.libs.pari.convert_sage.new_gen_from_rational
    return new_gen_from_mpq_t(self.value)
  File "sage/libs/pari/convert_gmp.pyx", line 104, in sage.libs.pari.convert_gmp.new_gen_from_mpq_t
    sig_on()
cysignals.signals.SignalError: Segmentation fault

**** Error in Sage code on line 75 of example.tex! Traceback follows.

**** Running Sage on example.sage failed! Fix example.tex and try again.
make[2]: *** [Makefile:23: example.pdf] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:68: execute_after_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:33: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1150709#10
Date:
2026-10-12 17:52:25 UTC
From:
To:
Hi Santiago, thanks for this new report.

This is indeed a new issue which seems related to the recent minor upgrade of the package
pari to version 2.19.0-1 . It looks like that sagemath needs some tweaks.

Cheers,
Jerome

#1150709#15
Date:
2026-10-12 19:45:22 UTC
From:
To:
¡Hola Jerome!

El 2026-10-12 a las 19:52 +0200, Jerome BENOIT escribió:

I've been working on this, I've updated cypari2 to adapt it to support
pari2 2.19, and I'm preparing sagemath 10.10, currently I'm checking a
problem with the karatsuba tests (the pure-python degree 3 reach the
timeout with no solution).

Among other changes I had to adapt some doctests to handle the new
default precision (128 bits instead of 53 bits)

Happy hacking,

#1150709#20
Date:
2026-10-15 05:13:55 UTC
From:
To:
The reaching of sagemath 10.10 to Debian/Sid fixed the issue,
so I am closing the bug report.
Thanks,
Jerome