Getting circular import error in sage.symbolic module when running a Jupyter notebook from sage.manifolds project
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) ...
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.Thanks for the repro in Ubuntu and providing update, Eric.
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.