Tested using Docker. This version of Dockerfile works:
FROM python:3.10
RUN pip install -U pip && pip install kenlm
And this fails:
FROM python:3.11
RUN pip install -U pip && pip install kenlm
There are several warnings, but the errors are basically this:
python/kenlm.cpp:452:62: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
python/kenlm.cpp:10248:14: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
python/kenlm.cpp:10285:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
python/kenlm.cpp:10285:19: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
The errors are the same for both the pypi and the github versions.
Tested using Docker. This version of Dockerfile works:
And this fails:
There are several warnings, but the errors are basically this:
The errors are the same for both the pypi and the github versions.