Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash without cython installed ! #46

Open
QuentinN42 opened this issue Dec 11, 2020 · 1 comment
Open

Crash without cython installed ! #46

QuentinN42 opened this issue Dec 11, 2020 · 1 comment

Comments

@QuentinN42
Copy link

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.

@Huanghongru
Copy link

Huanghongru commented Mar 26, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants