fastBPE
fastBPE copied to clipboard
Crash without cython installed !
TL;DR : fastBPE/fastBPE.cpp missing <=> (cython not installed => install crash)
According to setup.py :
try:
from Cython.Build import cythonize
except ImportError:
use_cython = False
else:
use_cython = True
if use_cython:
extension = 'pyx'
else:
extension = 'cpp'
So if from Cython.Build import cythonize fail, extension = 'cpp'.
Then at line 22 we see "fastBPE/fastBPE." + extension so there is fastBPE/fastBPE.cpp.
According to your GH, this file does not exist.
Hi, I encountered the same issue. It happened because I haven't installed the Cython package. After I install that package by pip install Cython the problem fixed.