ModuleNotFoundError when importing Sirocco

asked 2024-02-21 23:28:22 +0200

xytsa gravatar image

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.

edit retag flag offensive close merge delete

Comments

You may need to rebuild a part of the Sage library. In a regular installation, this would be accomplished by running make build (or just make, which might take a little longer). sage -b should also work. I don't know about clusters, though, and if that affects anything.

John Palmieri gravatar imageJohn Palmieri ( 2024-02-21 23:38:50 +0200 )edit