Closed harrygcoppock closed 2 years ago
Could you please provide some information on the system you are using?
Thank you in advance for your time.
So I am working on AWS SageMaker system. System information: `sh-4.2$ uname -r 4.14.248-129.473.amzn1.x86_64 sh-4.2$ uname -v
Python version:
sh-4.2$ which python /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/python
to replicate the issue in the simplest way:
`sh-4.2$ pip install librosa
Collecting librosa
Downloading librosa-0.8.1-py3-none-any.whl (203 kB)
|████████████████████████████████| 203 kB 18.6 MB/s
Collecting resampy>=0.2.2
Downloading resampy-0.2.2.tar.gz (323 kB)
|████████████████████████████████| 323 kB 51.0 MB/s
Preparing metadata (setup.py) ... done
Collecting audioread>=2.0.0
Downloading audioread-2.1.9.tar.gz (377 kB)
|████████████████████████████████| 377 kB 48.1 MB/s
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.15.0 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from librosa) (1.19.5)
Collecting pooch>=1.0
Downloading pooch-1.5.2-py3-none-any.whl (57 kB)
|████████████████████████████████| 57 kB 7.1 MB/s
Requirement already satisfied: packaging>=20.0 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from librosa) (21.0)
Collecting scipy>=1.0.0
Downloading scipy-1.5.4-cp36-cp36m-manylinux1_x86_64.whl (25.9 MB)
|████████████████████████████████| 25.9 MB 58.4 MB/s
Collecting scikit-learn!=0.19.0,>=0.14.0
Downloading scikit_learn-0.24.2-cp36-cp36m-manylinux2010_x86_64.whl (22.2 MB)
|████████████████████████████████| 22.2 MB 52.9 MB/s
Collecting numba>=0.43.0
Downloading numba-0.53.1-cp36-cp36m-manylinux2014_x86_64.whl (3.4 MB)
|████████████████████████████████| 3.4 MB 57.3 MB/s
Requirement already satisfied: decorator>=3.0.0 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from librosa) (5.1.0)
Collecting soundfile>=0.10.2
Downloading SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB)
Collecting joblib>=0.14
Downloading joblib-1.1.0-py2.py3-none-any.whl (306 kB)
|████████████████████████████████| 306 kB 66.7 MB/s
Collecting llvmlite<0.37,>=0.36.0rc1
Downloading llvmlite-0.36.0-cp36-cp36m-manylinux2010_x86_64.whl (25.3 MB)
|████████████████████████████████| 25.3 MB 46.1 MB/s
Requirement already satisfied: setuptools in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from numba>=0.43.0->librosa) (58.3.0)
Requirement already satisfied: pyparsing>=2.0.2 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from packaging>=20.0->librosa) (3.0.1)
Requirement already satisfied: requests in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from pooch>=1.0->librosa) (2.26.0)
Collecting appdirs
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Requirement already satisfied: six>=1.3 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from resampy>=0.2.2->librosa) (1.16.0)
Collecting threadpoolctl>=2.0.0
Downloading threadpoolctl-3.0.0-py3-none-any.whl (14 kB)
Requirement already satisfied: cffi>=1.0 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from soundfile>=0.10.2->librosa) (1.15.0)
Requirement already satisfied: pycparser in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from cffi>=1.0->soundfile>=0.10.2->librosa) (2.20)
Requirement already satisfied: certifi>=2017.4.17 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from requests->pooch>=1.0->librosa) (2021.10.8)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from requests->pooch>=1.0->librosa) (1.26.7)
Requirement already satisfied: charset-normalizer~=2.0.0 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from requests->pooch>=1.0->librosa) (2.0.7)
Requirement already satisfied: idna<4,>=2.5 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from requests->pooch>=1.0->librosa) (3.3)
Building wheels for collected packages: audioread, resampy
Building wheel for audioread (setup.py) ... done
Created wheel for audioread: filename=audioread-2.1.9-py3-none-any.whl size=23154 sha256=3dfd75161fa8160a547195db781ca0578c08b8d3a56905590e57aee089fc6afa
Stored in directory: /home/ec2-user/.cache/pip/wheels/de/14/0a/863e4ed680b3204444cf486733e609d7ff7abe8fceafab67dc
Building wheel for resampy (setup.py) ... done
Created wheel for resampy: filename=resampy-0.2.2-py3-none-any.whl size=320731 sha256=13382125a91f83756977f3d4f0b74d4b893398002b1eaa4202d4c35415fc9bdb
Stored in directory: /home/ec2-user/.cache/pip/wheels/cf/d4/04/49d8824a42bd9f9b11d502727965b9997f0d41d2b22ae4f645
Successfully built audioread resampy
Installing collected packages: llvmlite, threadpoolctl, scipy, numba, joblib, appdirs, soundfile, scikit-learn, resampy, pooch, audioread, librosa
Successfully installed appdirs-1.4.4 audioread-2.1.9 joblib-1.1.0 librosa-0.8.1 llvmlite-0.36.0 numba-0.53.1 pooch-1.5.2 resampy-0.2.2 scikit-learn-0.24.2 scipy-1.5.4 soundfile-0.10.3.post1 threadpoolctl-3.0.0
sh-4.2$ pip install opensmile
Collecting opensmile
Downloading opensmile-2.2.0-py3-none-any.whl (4.9 MB)
|████████████████████████████████| 4.9 MB 14.9 MB/s
Collecting audobject<0.6.0,>=0.4.6
Downloading audobject-0.5.1-py3-none-any.whl (19 kB)
Collecting audinterface<0.9.0,>=0.7.0
Downloading audinterface-0.7.0-py3-none-any.whl (21 kB)
Collecting audformat<2.0.0,>=0.10.1
Downloading audformat-0.11.6-py3-none-any.whl (43 kB)
|████████████████████████████████| 43 kB 217 kB/s
Collecting audresample<0.3.0,>=0.1.6
Downloading audresample-0.1.6-py3-none-any.whl (635 kB)
|████████████████████████████████| 635 kB 27.4 MB/s
Collecting oyaml
Downloading oyaml-1.0-py2.py3-none-any.whl (3.0 kB)
Collecting audeer>=1.7.0
Downloading audeer-1.16.0-py3-none-any.whl (14 kB)
Collecting tqdm
Downloading tqdm-4.62.3-py2.py3-none-any.whl (76 kB)
|████████████████████████████████| 76 kB 7.5 MB/s
Collecting iso-639
Downloading iso-639-0.4.5.tar.gz (167 kB)
|████████████████████████████████| 167 kB 64.3 MB/s
Preparing metadata (setup.py) ... done
Collecting audiofile>=0.4.0
Downloading audiofile-1.0.1-py3-none-any.whl (9.9 kB)
Requirement already satisfied: pandas<1.3,>=1.1.5 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from audformat<2.0.0,>=0.10.1->audinterface<0.9.0,>=0.7.0->opensmile) (1.1.5)
Requirement already satisfied: numpy in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from audresample<0.3.0,>=0.1.6->audinterface<0.9.0,>=0.7.0->opensmile) (1.19.5)
Requirement already satisfied: pyyaml in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from oyaml->audobject<0.6.0,>=0.4.6->opensmile) (5.4.1)
Collecting sox
Downloading sox-1.4.1-py2.py3-none-any.whl (39 kB)
Requirement already satisfied: soundfile in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from audiofile>=0.4.0->audformat<2.0.0,>=0.10.1->audinterface<0.9.0,>=0.7.0->opensmile) (0.10.3.post1)
Requirement already satisfied: pytz>=2017.2 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from pandas<1.3,>=1.1.5->audformat<2.0.0,>=0.10.1->audinterface<0.9.0,>=0.7.0->opensmile) (2021.3)
Requirement already satisfied: python-dateutil>=2.7.3 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from pandas<1.3,>=1.1.5->audformat<2.0.0,>=0.10.1->audinterface<0.9.0,>=0.7.0->opensmile) (2.8.2)
Requirement already satisfied: six>=1.5 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from python-dateutil>=2.7.3->pandas<1.3,>=1.1.5->audformat<2.0.0,>=0.10.1->audinterface<0.9.0,>=0.7.0->opensmile) (1.16.0)
Requirement already satisfied: cffi>=1.0 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from soundfile->audiofile>=0.4.0->audformat<2.0.0,>=0.10.1->audinterface<0.9.0,>=0.7.0->opensmile) (1.15.0)
Requirement already satisfied: pycparser in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from cffi>=1.0->soundfile->audiofile>=0.4.0->audformat<2.0.0,>=0.10.1->audinterface<0.9.0,>=0.7.0->opensmile) (2.20)
Building wheels for collected packages: iso-639
Building wheel for iso-639 (setup.py) ... done
Created wheel for iso-639: filename=iso_639-0.4.5-py3-none-any.whl size=169061 sha256=f3d7d58fe4c12e447685fb4b62acfde003584694ba11a519d6f6e90634a6ffcf
Stored in directory: /home/ec2-user/.cache/pip/wheels/62/5a/a7/418edbfa582dae7960a58b4b3ed3237507ca96c2b21ac4a03f
Successfully built iso-639
Installing collected packages: tqdm, sox, audeer, oyaml, iso-639, audiofile, audresample, audformat, audobject, audinterface, opensmile
Successfully installed audeer-1.16.0 audformat-0.11.6 audinterface-0.7.0 audiofile-1.0.1 audobject-0.5.1 audresample-0.1.6 iso-639-0.4.5 opensmile-2.2.0 oyaml-1.0 sox-1.4.1 tqdm-4.62.3
sh-4.2$ python
Python 3.6.13 | packaged by conda-forge | (default, Sep 23 2021, 07:56:31)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import opensmile /bin/sh: sox: command not found SoX could not be found!
If you do not have SoX, proceed here:
- - - http://sox.sourceforge.net/ - - -
If you do (or think that you should) have SoX, double-check your
path variables.
Traceback (most recent call last):
File "
If I then install sndfile with
conda install -c conda-forge libsndfile
I get a new error:
`>>> import opensmile /bin/sh: sox: command not found SoX could not be found!
If you do not have SoX, proceed here:
- - - http://sox.sourceforge.net/ - - -
If you do (or think that you should) have SoX, double-check your
path variables.
Traceback (most recent call last):
File "
`
However I am not sure how to move on from this. Any help would be greatly appreciated.
I also note that if I try to install sndfile with pip I get an error that gcc failed
`sh-4.2$ pip install sndfile Collecting sndfile Downloading sndfile-0.2.0.tar.gz (4.3 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: cffi>=1.0.0 in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from sndfile) (1.15.0) Requirement already satisfied: pycparser in ./anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages (from cffi>=1.0.0->sndfile) (2.20) Building wheels for collected packages: sndfile Building wheel for sndfile (setup.py) ... error ERROR: Command errored out with exit status 1: command: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7hcvkcm1/sndfile_fa01207d8a7f40c482630bfb701efe2f/setup.py'"'"'; file='"'"'/tmp/pip-install-7hcvkcm1/sndfile_fa01207d8a7f40c482630bfb701efe2f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3ntatr_h cwd: /tmp/pip-install-7hcvkcm1/sndfile_fa01207d8a7f40c482630bfb701efe2f/ Complete output (25 lines): /home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/setuptools/init.py:151: SetuptoolsDeprecationWarning: setup_requires is deprecated. Supply build dependencies using PEP 517 pyproject.toml build-requires. SetuptoolsDeprecationWarning, 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/sndfile copying sndfile/init.py -> build/lib.linux-x86_64-3.6/sndfile copying sndfile/build.py -> build/lib.linux-x86_64-3.6/sndfile copying sndfile/formats.py -> build/lib.linux-x86_64-3.6/sndfile copying sndfile/vio.py -> build/lib.linux-x86_64-3.6/sndfile copying sndfile/io.py -> build/lib.linux-x86_64-3.6/sndfile running build_ext generating cffi module 'build/temp.linux-x86_64-3.6/sndfile._sndfile.c' creating build/temp.linux-x86_64-3.6 building 'sndfile._sndfile' extension creating build/temp.linux-x86_64-3.6/build creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6 gcc -pthread -B /home/ec2-user/anaconda3/envs/JupyterSystemEnv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/JupyterSystemEnv/include/python3.6m -c build/temp.linux-x86_64-3.6/sndfile._sndfile.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/sndfile._sndfile.o build/temp.linux-x86_64-3.6/sndfile._sndfile.c:571:21: fatal error: sndfile.h: No such file or directory
^
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/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7hcvkcm1/sndfile_fa01207d8a7f40c482630bfb701efe2f/setup.py'"'"'; file='"'"'/tmp/pip-install-7hcvkcm1/sndfile_fa01207d8a7f40c482630bfb701efe2f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-sv5whksx/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/anaconda3/envs/JupyterSystemEnv/include/python3.6m/sndfile cwd: /tmp/pip-install-7hcvkcm1/sndfile_fa01207d8a7f40c482630bfb701efe2f/ Complete output (27 lines): /home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/setuptools/init.py:151: SetuptoolsDeprecationWarning: setup_requires is deprecated. Supply build dependencies using PEP 517 pyproject.toml build-requires. SetuptoolsDeprecationWarning, running install /home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running build running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/sndfile copying sndfile/init.py -> build/lib.linux-x86_64-3.6/sndfile copying sndfile/build.py -> build/lib.linux-x86_64-3.6/sndfile copying sndfile/formats.py -> build/lib.linux-x86_64-3.6/sndfile copying sndfile/vio.py -> build/lib.linux-x86_64-3.6/sndfile copying sndfile/io.py -> build/lib.linux-x86_64-3.6/sndfile running build_ext generating cffi module 'build/temp.linux-x86_64-3.6/sndfile._sndfile.c' creating build/temp.linux-x86_64-3.6 building 'sndfile._sndfile' extension creating build/temp.linux-x86_64-3.6/build creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6 gcc -pthread -B /home/ec2-user/anaconda3/envs/JupyterSystemEnv/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ec2-user/anaconda3/envs/JupyterSystemEnv/include/python3.6m -c build/temp.linux-x86_64-3.6/sndfile._sndfile.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/sndfile._sndfile.o build/temp.linux-x86_64-3.6/sndfile._sndfile.c:571:21: fatal error: sndfile.h: No such file or directory
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7hcvkcm1/sndfile_fa01207d8a7f40c482630bfb701efe2f/setup.py'"'"'; file='"'"'/tmp/pip-install-7hcvkcm1/sndfile_fa01207d8a7f40c482630bfb701efe2f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-sv5whksx/install-record.txt --single-version-externally-managed --compile --install-headers /home/ec2-user/anaconda3/envs/JupyterSystemEnv/include/python3.6m/sndfile Check the logs for full command output.`
This is the gcc version: `sh-4.2$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)`
As a first step I would recommend you to try building openSMILE binaries as described here:
This I have done but still get the same issues re libmvec:
sh-4.2$ opensmile-3.0-linux-x64/bin/SMILExtract -h opensmile-3.0-linux-x64/bin/SMILExtract: error while loading shared libraries: libmvec.so.1: cannot open shared object file: No such file or directory
I will now myself rather than using pre build binaries
`>>> import opensmile /bin/sh: sox: command not found SoX could not be found!
Did you try to install sox
?
I get an error when running
bash build.sh
sh-4.2$ bash build.sh -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.18.5") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/build [ 0%] Building CXX object src/newmat/CMakeFiles/newmat.dir/cholesky.cpp.o [ 1%] Building CXX object src/newmat/CMakeFiles/newmat.dir/bandmat.cpp.o [ 2%] Building CXX object src/newmat/CMakeFiles/newmat.dir/fft.cpp.o [ 3%] Building CXX object src/newmat/CMakeFiles/newmat.dir/evalue.cpp.o [ 3%] Building CXX object src/newmat/CMakeFiles/newmat.dir/hholder.cpp.o [ 4%] Building CXX object src/newmat/CMakeFiles/newmat.dir/myexcept.cpp.o [ 4%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newfft.cpp.o [ 5%] Building CXX object src/newmat/CMakeFiles/newmat.dir/jacobi.cpp.o [ 6%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat1.cpp.o [ 6%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat2.cpp.o [ 7%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat3.cpp.o [ 8%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat4.cpp.o [ 8%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat5.cpp.o [ 9%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat6.cpp.o [ 10%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat7.cpp.o [ 10%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat8.cpp.o [ 11%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat9.cpp.o [ 12%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmatex.cpp.o [ 12%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmatnl.cpp.o [ 13%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmatrm.cpp.o [ 13%] Building CXX object src/newmat/CMakeFiles/newmat.dir/solution.cpp.o [ 14%] Building CXX object src/newmat/CMakeFiles/newmat.dir/sort.cpp.o [ 15%] Building CXX object src/newmat/CMakeFiles/newmat.dir/submat.cpp.o [ 15%] Building CXX object src/newmat/CMakeFiles/newmat.dir/svd.cpp.o [ 15%] Built target newmat [ 17%] Building CXX object CMakeFiles/opensmile.dir/src/classifiers/libsvm/svm.cpp.o [ 17%] Building CXX object CMakeFiles/opensmile.dir/src/classifiers/julius/juliusSink.cpp.o [ 17%] Building CXX object CMakeFiles/opensmile.dir/src/classifiers/libsvmliveSink.cpp.o [ 18%] Building CXX object CMakeFiles/opensmile.dir/src/classifiers/svmSink.cpp.o [ 19%] Building CXX object CMakeFiles/opensmile.dir/src/core/commandlineParser.cpp.o [ 19%] Building CXX object CMakeFiles/opensmile.dir/src/core/componentManager.cpp.o [ 20%] Building CXX object CMakeFiles/opensmile.dir/src/core/configManager.cpp.o [ 20%] Building CXX object CMakeFiles/opensmile.dir/src/core/dataMemory.cpp.o [ 21%] Building CXX object CMakeFiles/opensmile.dir/src/core/dataProcessor.cpp.o /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp: In member function ‘void cConfigFileBuffer::loadFile(const char*, FILE*)’: /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:1722:6: error: use of deleted function ‘std::basic_ifstream<char>& std::basic_ifstream<char>::operator=(const std::basic_ifstream<char>&)’ is = std::ifstream(filename, std::ifstream::in); ^ In file included from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:27:0, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/fstream:427:11: note: ‘std::basic_ifstream<char>& std::basic_ifstream<char>::operator=(const std::basic_ifstream<char>&)’ is implicitly deleted because the default definition would be ill-formed: class basic_ifstream : public basic_istream<_CharT, _Traits> ^ /usr/include/c++/4.8.5/fstream:427:11: error: use of deleted function ‘std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)’ In file included from /usr/include/c++/4.8.5/iterator:65:0, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/istream:58:11: note: ‘std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)’ is implicitly deleted because the default definition would be ill-formed: class basic_istream : virtual public basic_ios<_CharT, _Traits> ^ /usr/include/c++/4.8.5/istream:58:11: error: use of deleted function ‘std::basic_ios<char>& std::basic_ios<char>::operator=(const std::basic_ios<char>&)’ In file included from /usr/include/c++/4.8.5/ios:44:0, from /usr/include/c++/4.8.5/ostream:38, from /usr/include/c++/4.8.5/iterator:64, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/bits/basic_ios.h:66:11: note: ‘std::basic_ios<char>& std::basic_ios<char>::operator=(const std::basic_ios<char>&)’ is implicitly deleted because the default definition would be ill-formed: class basic_ios : public ios_base ^ In file included from /usr/include/c++/4.8.5/ios:42:0, from /usr/include/c++/4.8.5/ostream:38, from /usr/include/c++/4.8.5/iterator:64, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/bits/ios_base.h:789:5: error: ‘std::ios_base& std::ios_base::operator=(const std::ios_base&)’ is private operator=(const ios_base&); ^ In file included from /usr/include/c++/4.8.5/ios:44:0, from /usr/include/c++/4.8.5/ostream:38, from /usr/include/c++/4.8.5/iterator:64, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/bits/basic_ios.h:66:11: error: within this context class basic_ios : public ios_base ^ In file included from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:27:0, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/fstream:427:11: error: use of deleted function ‘std::basic_filebuf<char>& std::basic_filebuf<char>::operator=(const std::basic_filebuf<char>&)’ class basic_ifstream : public basic_istream<_CharT, _Traits> ^ /usr/include/c++/4.8.5/fstream:72:11: note: ‘std::basic_filebuf<char>& std::basic_filebuf<char>::operator=(const std::basic_filebuf<char>&)’ is implicitly deleted because the default definition would be ill-formed: class basic_filebuf : public basic_streambuf<_CharT, _Traits> ^ In file included from /usr/include/c++/4.8.5/ios:43:0, from /usr/include/c++/4.8.5/ostream:38, from /usr/include/c++/4.8.5/iterator:64, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/streambuf:810:7: error: ‘std::basic_streambuf<_CharT, _Traits>& std::basic_streambuf<_CharT, _Traits>::operator=(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]’ is private operator=(const basic_streambuf& __sb) ^ In file included from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:27:0, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/fstream:72:11: error: within this context class basic_filebuf : public basic_streambuf<_CharT, _Traits> ^ [ 22%] Building CXX object CMakeFiles/opensmile.dir/src/core/dataReader.cpp.o gmake[2]: *** [CMakeFiles/opensmile.dir/src/core/configManager.cpp.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[1]: *** [CMakeFiles/opensmile.dir/all] Error 2 gmake: *** [all] Error 2
@chausner-audeering any idea what's going on?
here is my build_flags.sh (only change I made was -DWITH_OPENSLES=OFF) `#!/bin/bash
#
build_flags=(
-DBUILD_LIBSVM
# LSTM RNN components
-DBUILD_RNN
# cSvmSink
-DBUILD_SVMSMO
)
cmake_flags=(
-DCMAKE_BUILD_TYPE=Release
# use Clang compiler. Comment out to use system-default C and C++ compilers.
# Leave commented out when building for Android, as the NDK version of Clang is required.
#-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
# controls whether to build and link to libopensmile as static or shared library
# static builds are preferred unless you need openSMILE plugins
-DSTATIC_LINK=ON
# tune compiler optimizations to the processor of this machine.
# This ensures that openSMILE runs with optimal performance on the machine it was
# compiled on but it may not run at all on other machines.
# Disable if the compiled binary needs to be portable.
-DMARCH_NATIVE=OFF
# whether to compile with PortAudio support
-DWITH_PORTAUDIO=OFF
# whether to compile with FFmpeg support
# 1. download ffmpeg source distribution
# 2. run: mkdir build ; cd build
# ../configure --enable-shared --disable-static
# make ; sudo make install
-DWITH_FFMPEG=OFF
# whether to compile with OpenCV support
-DWITH_OPENCV=OFF
# whether to compile with OpenSL ES support (only applies when building for Android)
-DWITH_OPENSLES=OFF
# whether to compile with Julius support
-DWITH_JULIUS=OFF
)
build_flags="${build_flags[@]}"`
`>>> import opensmile /bin/sh: sox: command not found SoX could not be found!
Did you try to install
sox
?
it is installed:
`sh-4.2$ pip list Package Version
aiobotocore 1.4.1 aiohttp 3.7.4.post0 aioitertools 0.8.0 appdirs 1.4.4 async-timeout 3.0.1 attrs 21.2.0 audeer 1.16.0 audformat 0.11.6 audinterface 0.7.0 audiofile 1.0.1 audioread 2.1.9 audobject 0.5.1 audresample 0.1.6 autovizwidget 0.19.1 awscli 1.21.3 backports.functools-lru-cache 1.6.4 bcrypt 3.2.0 bleach 4.1.0 boto3 1.19.3 botocore 1.22.3 brotlipy 0.7.0 cached-property 1.5.2 certifi 2021.10.8 cffi 1.15.0 chardet 4.0.0 charset-normalizer 2.0.7 colorama 0.4.3 cryptography 35.0.0 decorator 5.1.0 defusedxml 0.7.1 dill 0.3.4 distro 1.6.0 docker 5.0.0 docker-compose 1.29.2 dockerpty 0.4.1 docopt 0.6.2 docutils 0.15.2 entrypoints 0.3 environment-kernels 1.1.1 fsspec 2021.10.1 gitdb 4.0.9 GitPython 3.1.18 google-pasta 0.2.0 hdijupyterutils 0.19.1 idna 3.3 idna-ssl 1.1.0 importlib-metadata 4.8.1 ipykernel 5.5.5 ipython 5.8.0 ipython-genutils 0.2.0 ipywidgets 7.6.5 iso-639 0.4.5 Jinja2 3.0.2 jmespath 0.10.0 joblib 1.1.0 json5 0.9.6 jsonschema 4.1.2 jupyter 1.0.0 jupyter-client 6.1.12 jupyter-console 5.2.0 jupyter-core 4.8.1 jupyterlab 1.2.21 jupyterlab-git 0.11.0 jupyterlab-server 1.2.0 jupyterlab-widgets 1.0.2 librosa 0.8.1 llvmlite 0.36.0 MarkupSafe 2.0.1 mistune 0.8.4 mock 4.0.3 multidict 5.2.0 multiprocess 0.70.12.2 nb-conda 2.2.1 nb-conda-kernels 2.3.1 nbconvert 5.6.1 nbdime 1.1.1 nbexamples 0.0.0 nbformat 5.1.3 nbserverproxy 0.3.2 nest-asyncio 1.5.1 nose 1.3.7 notebook 5.7.11 numba 0.53.1 numpy 1.19.5 opensmile 2.2.0 oyaml 1.0 packaging 21.0 pandas 1.1.5 pandocfilters 1.5.0 paramiko 2.8.0 pathos 0.2.8 pexpect 4.8.0 pickleshare 0.7.5 pid 3.0.4 pip 21.3.1 plotly 5.3.1 pooch 1.5.2 pox 0.3.0 ppft 1.6.6.4 prometheus-client 0.11.0 prompt-toolkit 1.0.15 protobuf 3.19.0 protobuf3-to-dict 0.1.5 psutil 5.8.0 psycopg2 2.9.1 ptyprocess 0.7.0 py4j 0.10.7 pyasn1 0.4.8 pycparser 2.20 pygal 2.4.0 Pygments 2.10.0 pykerberos 1.2.1 PyNaCl 1.4.0 pyOpenSSL 21.0.0 pyparsing 3.0.1 PyQt5 5.12.3 PyQt5_sip 4.19.18 PyQtChart 5.12 PyQtWebEngine 5.12.1 pyrsistent 0.18.0 PySocks 1.7.1 pyspark 2.4.0 python-dateutil 2.8.2 python-dotenv 0.19.1 pytz 2021.3 PyYAML 5.4.1 pyzmq 22.3.0 qtconsole 5.1.1 QtPy 1.11.2 requests 2.26.0 requests-kerberos 0.12.0 resampy 0.2.2 rsa 4.7.2 s3fs 2021.10.1 s3transfer 0.5.0 sagemaker 2.66.0 sagemaker-experiments 0.1.35 sagemaker-nbi-agent 1.0 sagemaker-pyspark 1.4.2 scikit-learn 0.24.2 scipy 1.5.4 Send2Trash 1.8.0 setuptools 58.3.0 simplegeneric 0.8.1 six 1.16.0 smdebug-rulesconfig 1.0.1 smmap 5.0.0 SoundFile 0.10.3.post1 sox 1.4.1 sparkmagic 0.19.1 tenacity 8.0.1 terminado 0.12.1 testpath 0.5.0 texttable 1.6.4 threadpoolctl 3.0.0 tornado 6.1 tqdm 4.62.3 traitlets 4.3.3 typing-extensions 3.10.0.2 urllib3 1.26.7 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 0.59.0 wheel 0.37.0 widgetsnbextension 3.5.1 wrapt 1.12.1 yarl 1.6.3 zipp 3.6.0`
This I have done but still get the same issues re libmvec:
sh-4.2$ opensmile-3.0-linux-x64/bin/SMILExtract -h opensmile-3.0-linux-x64/bin/SMILExtract: error while loading shared libraries: libmvec.so.1: cannot open shared object file: No such file or directory
I note that this is similar to the error I get when I use the python wrapper:
`sh-4.2$ python Python 3.6.13 | packaged by conda-forge | (default, Sep 23 2021, 07:56:31) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import opensmile Traceback (most recent call last): File "
", line 1, in File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/opensmile/init.py", line 6, in from opensmile.core.smile import ( File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/opensmile/core/smile.py", line 13, in from opensmile.core.SMILEapi import ( File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/opensmile/core/SMILEapi.py", line 23, in smileapi = cdll.LoadLibrary(smileapi_path) File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/ctypes/init.py", line 426, in LoadLibrary return self._dlltype(name) File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/ctypes/init.py", line 348, in init self._handle = _dlopen(self._name, mode) OSError: libmvec.so.1: cannot open shared object file: No such file or directory`
I think it may have something to do with this issue: https://github.com/homebridge/ffmpeg-for-homebridge/issues/2#issue-584588889 but I am not sure
I get an error when running
bash build.sh
`sh-4.2$ bash build.sh -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5
The problem is that the gcc compiler you are using is too old. openSMILE requires a compiler that is C++11-compatible. gcc 5 or higher should be fine.
Ahh thanks I will look into this after lunch. Do you think this will solve the issues with the Python wrapper version?
Ahh thanks I will look into this after lunch. Do you think this will solve the issues with the Python wrapper version?
Not sure, we'll have to see.
So I have upgraded gcc:
sh-4.2$ gcc --version gcc (GCC) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
However on bash build.sh:
I think this maybe because while the C compiler has been updated the CXX has not. Any ideas how to fix?
sh-4.2$ bash build.sh -- The C compiler identification is GNU 11.2.0 -- The CXX compiler identification is GNU 4.8.5 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.18.5") -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Configuring done -- Generating done -- Build files have been written to: /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/build [ 0%] Building CXX object src/newmat/CMakeFiles/newmat.dir/cholesky.cpp.o [ 1%] Building CXX object src/newmat/CMakeFiles/newmat.dir/bandmat.cpp.o [ 2%] Building CXX object src/newmat/CMakeFiles/newmat.dir/evalue.cpp.o [ 3%] Building CXX object src/newmat/CMakeFiles/newmat.dir/fft.cpp.o [ 3%] Building CXX object src/newmat/CMakeFiles/newmat.dir/hholder.cpp.o [ 4%] Building CXX object src/newmat/CMakeFiles/newmat.dir/jacobi.cpp.o [ 5%] Building CXX object src/newmat/CMakeFiles/newmat.dir/myexcept.cpp.o [ 5%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newfft.cpp.o [ 6%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat1.cpp.o [ 6%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat2.cpp.o [ 7%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat3.cpp.o [ 8%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat4.cpp.o [ 8%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat5.cpp.o [ 9%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat6.cpp.o [ 10%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat7.cpp.o [ 10%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat8.cpp.o [ 11%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmat9.cpp.o [ 12%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmatex.cpp.o [ 12%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmatnl.cpp.o [ 13%] Building CXX object src/newmat/CMakeFiles/newmat.dir/newmatrm.cpp.o [ 13%] Building CXX object src/newmat/CMakeFiles/newmat.dir/solution.cpp.o [ 14%] Building CXX object src/newmat/CMakeFiles/newmat.dir/sort.cpp.o [ 15%] Building CXX object src/newmat/CMakeFiles/newmat.dir/submat.cpp.o [ 15%] Building CXX object src/newmat/CMakeFiles/newmat.dir/svd.cpp.o [ 15%] Built target newmat [ 17%] Building CXX object CMakeFiles/opensmile.dir/src/classifiers/libsvm/svm.cpp.o [ 17%] Building CXX object CMakeFiles/opensmile.dir/src/classifiers/julius/juliusSink.cpp.o [ 17%] Building CXX object CMakeFiles/opensmile.dir/src/classifiers/libsvmliveSink.cpp.o [ 18%] Building CXX object CMakeFiles/opensmile.dir/src/classifiers/svmSink.cpp.o [ 18%] Building CXX object CMakeFiles/opensmile.dir/src/core/componentManager.cpp.o [ 19%] Building CXX object CMakeFiles/opensmile.dir/src/core/commandlineParser.cpp.o [ 20%] Building CXX object CMakeFiles/opensmile.dir/src/core/configManager.cpp.o [ 20%] Building CXX object CMakeFiles/opensmile.dir/src/core/dataMemory.cpp.o [ 21%] Building CXX object CMakeFiles/opensmile.dir/src/core/dataProcessor.cpp.o /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp: In member function ‘void cConfigFileBuffer::loadFile(const char*, FILE*)’: /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:1722:6: error: use of deleted function ‘std::basic_ifstream<char>& std::basic_ifstream<char>::operator=(const std::basic_ifstream<char>&)’ is = std::ifstream(filename, std::ifstream::in); ^ In file included from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:27:0, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/fstream:427:11: note: ‘std::basic_ifstream<char>& std::basic_ifstream<char>::operator=(const std::basic_ifstream<char>&)’ is implicitly deleted because the default definition would be ill-formed: class basic_ifstream : public basic_istream<_CharT, _Traits> ^ /usr/include/c++/4.8.5/fstream:427:11: error: use of deleted function ‘std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)’ In file included from /usr/include/c++/4.8.5/iterator:65:0, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/istream:58:11: note: ‘std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)’ is implicitly deleted because the default definition would be ill-formed: class basic_istream : virtual public basic_ios<_CharT, _Traits> ^ /usr/include/c++/4.8.5/istream:58:11: error: use of deleted function ‘std::basic_ios<char>& std::basic_ios<char>::operator=(const std::basic_ios<char>&)’ In file included from /usr/include/c++/4.8.5/ios:44:0, from /usr/include/c++/4.8.5/ostream:38, from /usr/include/c++/4.8.5/iterator:64, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/bits/basic_ios.h:66:11: note: ‘std::basic_ios<char>& std::basic_ios<char>::operator=(const std::basic_ios<char>&)’ is implicitly deleted because the default definition would be ill-formed: class basic_ios : public ios_base ^ In file included from /usr/include/c++/4.8.5/ios:42:0, from /usr/include/c++/4.8.5/ostream:38, from /usr/include/c++/4.8.5/iterator:64, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/bits/ios_base.h:789:5: error: ‘std::ios_base& std::ios_base::operator=(const std::ios_base&)’ is private operator=(const ios_base&); ^ In file included from /usr/include/c++/4.8.5/ios:44:0, from /usr/include/c++/4.8.5/ostream:38, from /usr/include/c++/4.8.5/iterator:64, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/bits/basic_ios.h:66:11: error: within this context class basic_ios : public ios_base ^ In file included from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:27:0, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/fstream:427:11: error: use of deleted function ‘std::basic_filebuf<char>& std::basic_filebuf<char>::operator=(const std::basic_filebuf<char>&)’ class basic_ifstream : public basic_istream<_CharT, _Traits> ^ /usr/include/c++/4.8.5/fstream:72:11: note: ‘std::basic_filebuf<char>& std::basic_filebuf<char>::operator=(const std::basic_filebuf<char>&)’ is implicitly deleted because the default definition would be ill-formed: class basic_filebuf : public basic_streambuf<_CharT, _Traits> ^ In file included from /usr/include/c++/4.8.5/ios:43:0, from /usr/include/c++/4.8.5/ostream:38, from /usr/include/c++/4.8.5/iterator:64, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/rapidjson/document.h:56, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:22, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/streambuf:810:7: error: ‘std::basic_streambuf<_CharT, _Traits>& std::basic_streambuf<_CharT, _Traits>::operator=(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]’ is private operator=(const basic_streambuf& __sb) ^ In file included from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/include/core/configManager.hpp:27:0, from /home/ec2-user/SageMaker/jbc-cough-in-a-box/SvmBaseline/opensmile/src/core/configManager.cpp:30: /usr/include/c++/4.8.5/fstream:72:11: error: within this context class basic_filebuf : public basic_streambuf<_CharT, _Traits> ^ [ 22%] Building CXX object CMakeFiles/opensmile.dir/src/core/dataReader.cpp.o gmake[2]: *** [CMakeFiles/opensmile.dir/src/core/configManager.cpp.o] Error 1 gmake[2]: *** Waiting for unfinished jobs.... gmake[1]: *** [CMakeFiles/opensmile.dir/all] Error 2 gmake: *** [all] Error 2
Yes, you'll need to update both gcc and g++.
amazing! this worked. thank you so much for your help. I have other commitments this afternoon so can't implement the feature extraction yet but I assume using the SMILExtract API should be fairly non problematic.
Just for completeness this was the command which sorted everything out regarding building opensmile:
conda install gcc_linux-64 gxx_linux-64 compilers c-compiler cxx-compiler
Hi, I am also facing this issue. Installing via
pip install opensmile
andgit clone https://github.com/audeering/opensmile-python.git cd opensmile-python python setup.py install
did not work leading to the above error on
import opensmile.py
Any help would be greatly appreciated.
Originally posted by @harrygcoppock in https://github.com/audeering/opensmile-python/issues/26#issuecomment-956448899