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

cannot install snowboy #360

Open
barosz0 opened this issue Feb 1, 2018 · 1 comment
Open

cannot install snowboy #360

barosz0 opened this issue Feb 1, 2018 · 1 comment

Comments

@barosz0
Copy link

barosz0 commented Feb 1, 2018

i try use pip but i get:
Collecting snowboy
Using cached snowboy-1.2.0b1.tar.gz
Collecting PyAudio (from snowboy)
Building wheels for collected packages: snowboy
Running setup.py bdist_wheel for snowboy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-Mnumxx/snowboy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/tmpQIvBnRpip-wheel- --python-tag cp27:
running bdist_wheel
running build
Compiling snowboy...
/bin/sh: 1: swig: not found
expr: syntax error
g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o
../..//lib/rpi/libsnowboy-detect.a -L/usr/lib/python2.7/config-arm-linux-gnueabihf -L/usr/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
snowboy-detect-swig.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:65: recipe for target '_snowboydetect.so' failed
make: *** [_snowboydetect.so] Error 1
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/snowboy
error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file


Failed building wheel for snowboy
Running setup.py clean for snowboy
Failed to build snowboy
Installing collected packages: PyAudio, snowboy
Running setup.py install for snowboy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-Mnumxx/snowboy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-UxpNI8-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
Compiling snowboy...
/bin/sh: 1: swig: not found
expr: syntax error
g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x -shared snowboy-detect-swig.o
../..//lib/rpi/libsnowboy-detect.a -L/usr/lib/python2.7/config-arm-linux-gnueabihf -L/usr/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
snowboy-detect-swig.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:65: recipe for target '_snowboydetect.so' failed
make: *** [_snowboydetect.so] Error 1
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/snowboy
error: can't copy 'swig/Python/_snowboydetect.so': doesn't exist or not a regular file

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-Mnumxx/snowboy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-UxpNI8-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-Mnumxx/snowboy/

@chenguoguo
Copy link
Collaborator

See here: #271

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