fastBPE icon indicating copy to clipboard operation
fastBPE copied to clipboard

Crash without cython installed !

Open QuentinN42 opened this issue 5 years ago • 1 comments

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.

QuentinN42 avatar Dec 11 '20 00:12 QuentinN42

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.

Huanghongru avatar Mar 26 '21 08:03 Huanghongru