(base) marco@pc:~/Resemblyzer$ pip3 install sndfile
Collecting sndfile
Using cached https://files.pythonhosted.org/packages/db/ce
/797cacd78490aa9de2e0e119491079d380e2fbbd7a1c5057c9fb2120a643/sndfile-0.2.0.tar.gz
Requirement already satisfied: cffi>=1.0.0 in /home/marco/anaconda3/lib/python3.7/site-packages
(from sndfile) (1.12.3)
Requirement already satisfied: pycparser in /home/marco/anaconda3/lib/python3.7/site-packages
(from cffi>=1.0.0->sndfile) (2.19)
Building wheels for collected packages: sndfile
Building wheel for sndfile (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/marco/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize;
sys.argv[0] = '"'"'/tmp/pip-install-7w_p8_7r/sndfile/setup.py'"'"'; __file__='"'"'/tmp/pip-install-
7w_p8_7r/sndfile/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/pip-wheel-n2k5xwj9 --python-tag cp37
cwd: /tmp/pip-install-7w_p8_7r/sndfile/
Complete output (23 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/sndfile
copying sndfile/__init__.py -> build/lib.linux-x86_64-3.7/sndfile
copying sndfile/vio.py -> build/lib.linux-x86_64-3.7/sndfile
copying sndfile/build.py -> build/lib.linux-x86_64-3.7/sndfile
copying sndfile/formats.py -> build/lib.linux-x86_64-3.7/sndfile
copying sndfile/io.py -> build/lib.linux-x86_64-3.7/sndfile
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.7/sndfile._sndfile.c'
creating build/temp.linux-x86_64-3.7
building 'sndfile._sndfile' extension
creating build/temp.linux-x86_64-3.7/build
creating build/temp.linux-x86_64-3.7/build/temp.linux-x86_64-3.7
gcc -pthread -B /home/marco/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/marco/anaconda3/include
/python3.7m -c build/temp.linux-x86_64-3.7/sndfile._sndfile.c -o build/temp.linux-x86_64-3.7/build
/temp.linux-x86_64-3.7/sndfile._sndfile.o
build/temp.linux-x86_64-3.7/sndfile._sndfile.c:494:10: fatal error: sndfile.h: No such file or
directory
#include <sndfile.h>
^~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for sndfile
Running setup.py clean for sndfile
Failed to build sndfile
Installing collected packages: sndfile
Running setup.py install for sndfile ... error
ERROR: Command errored out with exit status 1:
command: /home/marco/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize;
sys.argv[0] = '"'"'/tmp/pip-install-7w_p8_7r/sndfile/setup.py'"'"'; __file__='"'"'/tmp/pip-install-
7w_p8_7r/sndfile/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-record-67675cxl/install-record.txt --single-version-externally-
managed --compile
cwd: /tmp/pip-install-7w_p8_7r/sndfile/
Complete output (23 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/sndfile
copying sndfile/__init__.py -> build/lib.linux-x86_64-3.7/sndfile
copying sndfile/vio.py -> build/lib.linux-x86_64-3.7/sndfile
copying sndfile/build.py -> build/lib.linux-x86_64-3.7/sndfile
copying sndfile/formats.py -> build/lib.linux-x86_64-3.7/sndfile
copying sndfile/io.py -> build/lib.linux-x86_64-3.7/sndfile
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.7/sndfile._sndfile.c'
creating build/temp.linux-x86_64-3.7
building 'sndfile._sndfile' extension
creating build/temp.linux-x86_64-3.7/build
creating build/temp.linux-x86_64-3.7/build/temp.linux-x86_64-3.7
gcc -pthread -B /home/marco/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/marco/anaconda3/include
/python3.7m -c build/temp.linux-x86_64-3.7/sndfile._sndfile.c -o build/temp.linux-x86_64-3.7/build
/temp.linux-x86_64-3.7/sndfile._sndfile.o
build/temp.linux-x86_64-3.7/sndfile._sndfile.c:494:10: fatal error: sndfile.h: No such file or
directory
#include <sndfile.h>
^~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/marco/anaconda3/bin/python -u -c
'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7w_p8_7r/sndfile/setup.py'"'"';
__file__='"'"'/tmp/pip-install-7w_p8_7r/sndfile/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-record-67675cxl/install-record.txt --single-version-externally-
managed --compile Check the logs for full command output.
Looking forward to your kind help.
Marco