g6k
g6k copied to clipboard
G6k + SageMath seems broken (in Conda)
Trying to build a conda environment which has G6K in SageMath, I'm getting:
Python 3.9.13 | packaged by conda-forge | (main, May 27 2022, 16:58:50)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import g6k
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/malb/projects/lattices/g6k/g6k/__init__.py", line 23, in <module>
from .siever_params import SieverParams # noqa
ImportError: /home/malb/projects/lattices/g6k/g6k/siever_params.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZGVeN8v_log
>>>
This seems related to some vectorisation: https://github.com/scipy/scipy/issues/15414
I installed sage on Conda then I have installed fpylll and fplll using
sage --python install fpylll,fplll
then used
sage --pip install -r requirements.txt
sage --python setup.py build_ext --inplace
and then add the path to sage environment and it works fine for me