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

Error when installing #28

Closed
gustelle opened this issue Dec 6, 2017 · 1 comment
Closed

Error when installing #28

gustelle opened this issue Dec 6, 2017 · 1 comment

Comments

@gustelle
Copy link

gustelle commented Dec 6, 2017

Hello !

I'm getting this error when installing with pip :

cc -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -iquote . -include src/custom_exit.h -arch x86_64 -arch i386 -pipe -Isrc -I/Users/xxx/venv/lib/python2.7/site-packages/cysignals -I. -Isrc/variant/include -I/xxx/venv/lib/python2.7/site-packages/numpy/core/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/fasttext_access.cpp -o build/temp.macosx-10.12-intel-2.7/src/fasttext_access.o -Wno-sign-compare -std=c++0x
src/fasttext_access.cpp:43:1: error: non-type template argument is not a pointer to member constant
ALLOW_METHOD_ACCESS(FastText, bool, checkModel, std::istream&);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/private_access.h:55:38: note: expanded from macro 'ALLOW_METHOD_ACCESS'
template struct rob<Only_##MEMBER, (RET_TYPE(CLASS::)(VA_ARGS))(&CLASS::MEMBER)>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasttext_access.cpp:54:1: error: non-type template argument is not a pointer to member constant
ALLOW_CONST_METHOD_ACCESS(Dictionary, int32_t, find, const std::string&);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/private_access.h:59:38: note: expanded from macro 'ALLOW_CONST_METHOD_ACCESS'
template struct rob<Only_##MEMBER, (RET_TYPE(CLASS::
)(VA_ARGS) const)(&CLASS::MEMBER)>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasttext_access.cpp:55:1: error: non-type template argument is not a pointer to member constant
ALLOW_CONST_METHOD_ACCESS(Dictionary, void, pushHash, std::vector<int32_t>&, int32_t);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/private_access.h:59:38: note: expanded from macro 'ALLOW_CONST_METHOD_ACCESS'
template struct rob<Only_##MEMBER, (RET_TYPE(CLASS::)(VA_ARGS) const)(&CLASS::MEMBER)>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasttext_access.cpp:56:1: error: non-type template argument is not a pointer to member constant
ALLOW_METHOD_ACCESS(Dictionary, void, initTableDiscard, );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/private_access.h:55:38: note: expanded from macro 'ALLOW_METHOD_ACCESS'
template struct rob<Only_##MEMBER, (RET_TYPE(CLASS::
)(VA_ARGS))(&CLASS::MEMBER)>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/fasttext_access.cpp:57:1: error: non-type template argument is not a pointer to member constant
ALLOW_METHOD_ACCESS(Dictionary, void, initNgrams, );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/private_access.h:55:38: note: expanded from macro 'ALLOW_METHOD_ACCESS'
template struct rob<Only_##MEMBER, (RET_TYPE(CLASS::*)(VA_ARGS))(&CLASS::MEMBER)>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 errors generated.
error: command 'cc' failed with exit status 1

I tried to install also with python setup.py install but I'm getting the same error. Could you help ?

@gustelle
Copy link
Author

gustelle commented Dec 7, 2017

I finally managed to install following the instructions here : #24

@gustelle gustelle closed this as completed Dec 7, 2017
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