Getting circular import error in sage.symbolic module when running a Jupyter notebook from sage.manifolds project

asked 2026-02-01 09:42:12 +0100

anonymous user

Anonymous

updated 2026-02-06 03:23:49 +0100

when I run a Jupyter notebook "Simulation of a Kerr-Black-Hole.ipynb" in SageMath 10.8 on Arch Linux (latest update) it keeps failing with below error. would this be a bug to log? thanks

.... File "sage/symbolic/function.pyx", line 155, in init sage.symbolic.function from sage.symbolic.expression import ( File "sage/symbolic/expression.pyx", line 14212, in init sage.symbolic.expression sage.symbolic.function.call_registered_function = call_registered_function AttributeError: cannot access submodule 'function' of module 'sage.symbolic' (most likely due to a circular import) ...

edit retag flag offensive close merge delete

Comments

I've just checked this notebook in SageMath 10.8 under Ubuntu 24.04 and I get an error in cell [54]. The error is different from yours however. Mine is fatal error: numpy/arrayobject.h: Aucun fichier ou dossier de ce nom. This is a cython + numpy issue that has been reported in this thread.

eric_g gravatar imageeric_g ( 2026-02-04 15:36:42 +0100 )edit

Thanks for the repro in Ubuntu and providing update, Eric.

grmanifold1915 gravatar imagegrmanifold1915 ( 2026-02-04 21:48:06 +0100 )edit

one more comment: I did not get this error when Arch Linux included Python 3.13 + SageMath 10.8.0 As soon as I upgraded Arch to include Python 3.14 + SageMath 10.8.3, the error started showing up.

grmanifold1915 gravatar imagegrmanifold1915 ( 2026-02-06 03:22:37 +0100 )edit