ModuleNotFoundError when importing Sirocco
Hi,
I am using SageMath 10.2 on a cluster running on Rocky Linux. I am trying to use the Sirocco package, but I run into a ModuleNotFoundError
when importing:
sage: from sage.libs.sirocco import contpath
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In [2], line 1
----> 1 from sage.libs.sirocco import contpath
ModuleNotFoundError: No module named 'sage.libs.sirocco'
However the module is correctly listed among the installed packages:
sage: from sage.misc.package import installed_packages
sage: sage: print(installed_packages()['sirocco'])
2.1.0
Any idea on what is causing this? I think it might be linked to the fact it is a Cython library. Any help is appreciated.
You may need to rebuild a part of the Sage library. In a regular installation, this would be accomplished by running
make build
(or justmake
, which might take a little longer).sage -b
should also work. I don't know about clusters, though, and if that affects anything.