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

fairseq/data/token_block_utils_fast.c:612:10: fatal error #2

Open
lucylow opened this issue Aug 25, 2019 · 2 comments
Open

fairseq/data/token_block_utils_fast.c:612:10: fatal error #2

lucylow opened this issue Aug 25, 2019 · 2 comments

Comments

@lucylow
Copy link
Owner

lucylow commented Aug 25, 2019

fairseq/data/token_block_utils_fast.c:612:10: fatal error:
'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"

@lucylow
Copy link
Owner Author

lucylow commented Aug 25, 2019

STEP 1: find the numpy include LOCATION file for "numpy/arrayobject.h" :
python -c 'import sys; print("\n".join(sys.path))'

output:
/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python36.zip
/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload
/usr/local/lib/python3.6/site-packages
/usr/local/lib/python3.6/site-packages/pytorch_translate-0.1-py3.6.egg

@lucylow
Copy link
Owner Author

lucylow commented Aug 25, 2019

STEP2 update the the makerfile.config to match python file
to change the PYTHON_INCLUDE in Makefile.config into

PYTHON_INCLUDE :=/usr/local/lib/python3.6/site-packages/pytorch_translate-0.1-py3.6.egg

cd fairseq root folder
Use vi Makefile.config command

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