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

failed to install pyfasttext on python3.6 #41

Open
anyuhang01 opened this issue Apr 12, 2018 · 4 comments
Open

failed to install pyfasttext on python3.6 #41

anyuhang01 opened this issue Apr 12, 2018 · 4 comments

Comments

@anyuhang01
Copy link

I tried multiple times to install pyfasttext but failed though cysignals has been installed. Any insights/suggestions are highly appreciated.
Here is the error message.
python3.6/site-packages/cysignals/signals.pxd: cannot find cimported module 'cysignals.init'
Compiling src/pyfasttext.pyx because it changed.

Here is partial display of /Users/anyuhang/mypy3/lib/python3.6/site-packages/cysignals/signals.pxd

cython: preliminary_late_includes_cy28=True

Auto-generated file setting the correct include directories

cimport cysignals.init
from libc.signal cimport sig_atomic_t

cdef extern from "struct_signals.h":
ctypedef struct cysigs_t:
sig_atomic_t sig_on_count
const char* s
........

@ghost
Copy link

ghost commented Apr 13, 2018

Same here. Installing cysignals version 1.6.9 fixed this for me

@anyuhang01
Copy link
Author

thanks so much for the tip! it works for me. really appreciate it.

@ghost
Copy link

ghost commented Apr 16, 2018

Cysignals 1.7.0 requires cython >= 0.28, so installing the latest versions of cython and cysignals before installing pyfasttext would work too.

pip install --upgrade cython
pip install --upgrade cysignals
pip install pyfasttext

@anyuhang01
Copy link
Author

really appreciate insights you shared, I believe it will benefit a lot of people who may encounter the problem.

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

1 participant