Open patrickvonplaten opened 2 years ago
It does work though with Python 3.8
Also gently pinging @xantares in case this looks familiar :sweat_smile:
Any updates here?
it works for me on my side with 3.9 when I rebuild it from sources
Sorry to ask here again. By rebuilding from sources you mean that you don't use pip install https://github.com/kpu/kenlm/archive/master.zip
?
yes; calling cmake directly
The pip
version does a poor man's compilation globbing the cc files instead of cmake. Is this a subtle C++ version mismatch?
Ugh seems like a more fun problem with gcc and python https://github.com/stan-dev/pystan/issues/294
Uff yeah I see thanks a lot for the pointers!
Conda was the problem for me it seems. Even from source the installation didn't work.
The solution as shown here: https://github.com/stan-dev/pystan/issues/294#issuecomment-878292636 was the right fix though for me :-) Now it works! Thanks @kpu for the link!
When installing KenLM on the following environment:
and Python version:
I cannot import kenLM afterwards as it errors out. E.g. the following does not work:
and
gives:
Could it be related to the recent changes in CPython: https://github.com/kpu/kenlm/commit/0760f4c4df76f3286656e7232dc3ad6495248bc2 ?