fplll / g6k

The General Sieve Kernel
GNU General Public License v2.0
99 stars 30 forks source link

G6k + SageMath seems broken (in Conda) #110

Open malb opened 1 year ago

malb commented 1 year ago

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
>>> 
malb commented 1 year ago

This seems related to some vectorisation: https://github.com/scipy/scipy/issues/15414

ndrahmani commented 12 months ago

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