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

about install #5

Open
l-guo opened this issue Mar 19, 2018 · 1 comment
Open

about install #5

l-guo opened this issue Mar 19, 2018 · 1 comment

Comments

@l-guo
Copy link

l-guo commented Mar 19, 2018

I got an error when I do pip install "pyannote.audio==0.2.1"

Running setup.py bdist_wheel for pysndfile ... error
Complete output from command /home/user1/anaconda3/envs/py36/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-fjxlgynr/pysndfile/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/tmpv8qoj5jqpip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/pysndfile
copying pysndfile/init.py -> build/lib.linux-x86_64-3.6/pysndfile
copying pysndfile/Faiff.py -> build/lib.linux-x86_64-3.6/pysndfile
copying pysndfile/sndio.py -> build/lib.linux-x86_64-3.6/pysndfile
running build_ext
check for clang compiler ... no
building '_pysndfile' extension
creating build/temp.linux-x86_64-3.6
gcc -pthread -B /home/user1/anaconda3/envs/py36/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/user1/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/include -I/home/user1/anaconda3/envs/py36/include/python3.6m -c _pysndfile.cpp -o build/temp.linux-x86_64-3.6/_pysndfile.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /home/user1/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
from /home/user1/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/user1/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from _pysndfile.cpp:469:
/home/user1/anaconda3/envs/py36/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
g++ -pthread -shared -B /home/user1/anaconda3/envs/py36/compiler_compat -L/home/user1/anaconda3/envs/py36/lib -Wl,-rpath=/home/user1/anaconda3/envs/py36/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/_pysndfile.o -lsndfile -o build/lib.linux-x86_64-3.6/pysndfile/_pysndfile.cpython-36m-x86_64-linux-gnu.so
/home/user1/anaconda3/envs/py36/compiler_compat/ld: cannot find -lm
/home/user1/anaconda3/envs/py36/compiler_compat/ld: cannot find -lpthread
/home/user1/anaconda3/envs/py36/compiler_compat/ld: cannot find -lc
collect2: error: ld returned 1 exit status
error: command 'g++' failed with exit status 1


Failed building wheel for pysndfile

@bml1g12
Copy link

bml1g12 commented Jun 12, 2018

Don't know if its useful, but I think I also had this issue and resolved it after reading this forum post : ContinuumIO/anaconda-issues#7363

Which lead me to https://www.anaconda.com/blog/developer-blog/utilizing-the-new-compilers-in-anaconda-distribution-5/

which suggests you install the following packages:

gcc_linux-64
gxx_linux-64
gfortran_linux-64

After that I was libhdf5-dev and needed to download https://packages.ubuntu.com/xenial/amd64/libhdf5-10, and run a command like sudo cp /usr/lib/x86_64-linux-gnu/libhdf5_serial_hl.so.10 /usr/lib/x86_64-linux-gnu/libhdf5_hl.so.10

then I was good to go.

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