Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #33302: fpylll might not find system-wide fplll's strategies json
This in particular is observed on Debian 11, see fplll/fpylll#221 {{{ sage: from sage.modules.free_module_integer import IntegerLattice sage: L = IntegerLattice(sage.crypto.gen_lattice(type='modular', m=10, seed=1337, dual=True)) sage: L.shortest_vector() terminate called after throwing an instance of 'std::runtime_error' what(): Cannot open strategies file. ------------------------------------------------------------------------ --- KeyError Traceback (most recent call last) ~/work/sage/local/var/lib/sage/venv-python3.9/lib/python3.9/site- packages/sage/misc/cachefunc.pyx in sage.misc.cachefunc.CachedMethodCaller.__call__ (build/cythonized/sage/misc/cachefunc.c:10347)() 1942 try: -> 1943 return cache[k] 1944 except TypeError: # k is not hashable KeyError: ((True, 'fplll'), ()) ... }}} The latter is an extract from a failing doctest. While it's fixed in fplll's master, we need a fix for the current fpylll. URL: https://trac.sagemath.org/33302 Reported by: dimpase Ticket author(s): Dima Pasechnik Reviewer(s): Martin Albrecht
- Loading branch information