MTG / essentia

C++ library for audio and music analysis, description and synthesis, including Python bindings
http://essentia.upf.edu
GNU Affero General Public License v3.0
2.78k stars 525 forks source link

cannot import the essentia.standard nor essentia.streaming #690

Closed ahmed-jbeli closed 2 years ago

ahmed-jbeli commented 6 years ago

when i import essentia it's fine i have no problem but when i try to import the essentia.standard or essentia.streaming i get no module named '..........' i don't know what's the problem

dbogdanov commented 6 years ago

Check if standard.py is present in essentia module folder. To know your folder run in python:

import essentia
print(essentia.__file__)

This will show you path the the main __init__.py file in the same folder.

ahmed-jbeli commented 6 years ago

this is what i get when i run print (essentia.file)

import essentia print(essentia.file) Traceback (most recent call last): File "", line 1, in AttributeError: module 'essentia' has no attribute 'file'

dbogdanov commented 6 years ago

You should search for ___file___, not file

ahmed-jbeli commented 6 years ago

same thing happens print(essentia.file) Traceback (most recent call last): File "", line 1, in AttributeError: module 'essentia' has no attribute 'file'

ahmed-jbeli commented 6 years ago

the '_' it deosn't print here but i tried it the same way you wrote it

ahmed-jbeli commented 6 years ago

i've checked in this directory /usr/local/lib/python3/dist-packages/essentia/ and i found standard.py and streaming.py bt when i import them it says no module found

alastair commented 6 years ago

Are you using python 3 on ubuntu or debian? There is an issue that we have found where the location that essentia installs to is not present on sys.path. You can set the PYTHONPATH environment variable (like we do in our Docker files: https://github.com/MTG/essentia-docker/blob/65b0ed1611a6c4e72d03c3865477fa5f7fb11fae/Dockerfile.stretch-python3#L26) or manually append the path to sys.path

import sys
sys.path.append('/usr/local/lib/python3/dist-packages/')

We'll look into a more permanent solution - at the moment we're not sure if it's a debian, waf, or essentia issue

ahmed-jbeli commented 6 years ago

i tried it like you said i opened python3 in the terminal and i did like you said still with no result no module named essentia.standard

dbogdanov commented 6 years ago

How did you install Essentia and which version? If you build it from source, can you provide the output of waf install command used for installation?

ahmed-jbeli commented 6 years ago

i have folowd the instructions in this site http://essentia.upf.edu/documentation/installing.html i ve cloned the latest version from gethub and installed the dependecies metioned in the web site above the waf command i used is this sudo python3 ./waf configure --build-static --with-python --with-cpptests --with-examples --with-vamp sudo python3 ./waf sudo python3 ./waf install

ahmed-jbeli commented 6 years ago

this is the output of the configuration ~/essentia$ sudo python3 ./waf configure --build-static --with-python --with-cpptests --with-examples --with-vamp sudo: unable to resolve host ahmed [sudo] password for ahmed: Setting top to : /home/ahmed/essentia Setting out to : /home/ahmed/essentia/build → configuring the project in /home/ahmed/essentia → Building in release mode Checking for 'g++' (C++ compiler) : /usr/bin/g++ Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking for program 'pkg-config' : /usr/bin/pkg-config Checking for 'libavcodec' >= 55.34.1 : yes Checking for 'libavformat' : yes Checking for 'libavutil' : yes Checking for 'libavresample' : yes Checking for 'samplerate' : yes Checking for 'taglib' >= 1.9 : yes Checking for 'yaml-0.1' : yes Checking for 'fftw3f' : yes Checking for 'libchromaprint' : yes Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking for program 'python' : /usr/bin/python3 Checking for python version >= 2.7.0 : 3.5.2 → Configuring for python3 python-config : /usr/bin/python3-config Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes Testing pyembed configuration : yes Asking python-config for pyext '--cflags --libs --ldflags' flags : yes Testing pyext configuration : yes Checking for python module 'numpy' : 1.11.0

================================ CONFIGURATION SUMMARY ================================


ahmed-jbeli commented 6 years ago

sudo python3 ./waf sudo: unable to resolve host ahmed Waf: Entering directory `/home/ahmed/essentia/build' → building from /home/ahmed/essentia → building from /home/ahmed/essentia/src Building all the algorithms Ignoring the following algorithms: GaiaTransform, FFTA, IFFTK, MusicExtractorSVM, FFTK, IFFTA Created algorithms registration file → building from /home/ahmed/essentia/src/examples → building from /home/ahmed/essentia/src/python [ 1/260] Compiling src/essentia/algorithm.cpp [ 2/260] Compiling src/essentia/configurable.cpp [ 3/260] Compiling src/essentia/connector.cpp [ 4/260] Compiling src/essentia/debugging.cpp [ 5/260] Compiling src/essentia/essentia.cpp [ 6/260] Compiling src/essentia/essentiautil.cpp [ 7/260] Compiling src/essentia/parameter.cpp [ 8/260] Compiling src/essentia/pool.cpp [ 9/260] Compiling src/essentia/range.cpp [ 10/260] Compiling src/essentia/scheduler/network.cpp [ 11/260] Compiling src/essentia/scheduler/networkparser.cpp [ 12/260] Compiling src/essentia/streaming/accumulatoralgorithm.cpp [ 13/260] Compiling src/essentia/streaming/algorithms/devnull.cpp [ 14/260] Compiling src/essentia/streaming/algorithms/poolstorage.cpp [ 15/260] Compiling src/essentia/streaming/algorithms/ringbufferinput.cpp [ 16/260] Compiling src/essentia/streaming/algorithms/ringbufferoutput.cpp [ 17/260] Compiling src/essentia/streaming/algorithms/ringbuffervectoroutput.cpp [ 18/260] Compiling src/essentia/streaming/sinkbase.cpp [ 19/260] Compiling src/essentia/streaming/sourcebase.cpp [ 20/260] Compiling src/essentia/streaming/streamingalgorithm.cpp [ 21/260] Compiling src/essentia/streaming/streamingalgorithmcomposite.cpp [ 22/260] Compiling src/essentia/streaming/streamingalgorithmwrapper.cpp [ 23/260] Compiling src/essentia/stringutil.cpp [ 24/260] Compiling src/essentia/utils/asciidag.cpp [ 25/260] Compiling src/essentia/utils/asciidagparser.cpp [ 26/260] Compiling src/essentia/utils/audiocontext.cpp [ 27/260] Compiling src/essentia/utils/extractor_freesound/FreesoundLowlevelDescriptors.cpp ../src/essentia/utils/audiocontext.cpp: In member function ‘int essentia::AudioContext::create(const string&, const string&, int, int, int)’: ../src/essentia/utils/audiocontext.cpp:67:42: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] _codecCtx = _avStream->codec; ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp:67:42: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] _codecCtx = _avStream->codec; ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp:67:42: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] _codecCtx = _avStream->codec; ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp: In member function ‘void essentia::AudioContext::close()’: ../src/essentia/utils/audiocontext.cpp:194:28: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] avcodec_close(_avStream->codec); ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp:194:28: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] avcodec_close(_avStream->codec); ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp:194:28: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] avcodec_close(_avStream->codec); ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp:198:24: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] av_freep(&_avStream->codec); ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp:198:24: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] av_freep(&_avStream->codec); ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp:198:24: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] av_freep(&_avStream->codec); ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/essentia/utils/audiocontext.cpp: In member function ‘void essentia::AudioContext::encodePacket(int)’: ../src/essentia/utils/audiocontext.cpp:333:7: warning: ‘int avcodec_encode_audio2(AVCodecContext, AVPacket, const AVFrame, int)’ is deprecated [-Wdeprecated-declarations] if (avcodec_encode_audio2(_codecCtx, &packet, frame, &got_output) < 0) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:4527:5: note: declared here int avcodec_encode_audio2(AVCodecContext avctx, AVPacket avpkt, ^ ../src/essentia/utils/audiocontext.cpp:333:7: warning: ‘int avcodec_encode_audio2(AVCodecContext, AVPacket, const AVFrame, int)’ is deprecated [-Wdeprecated-declarations] if (avcodec_encode_audio2(_codecCtx, &packet, frame, &got_output) < 0) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:4527:5: note: declared here int avcodec_encode_audio2(AVCodecContext avctx, AVPacket avpkt, ^ ../src/essentia/utils/audiocontext.cpp:333:67: warning: ‘int avcodec_encode_audio2(AVCodecContext, AVPacket, const AVFrame, int)’ is deprecated [-Wdeprecated-declarations] if (avcodec_encode_audio2(_codecCtx, &packet, frame, &got_output) < 0) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:4527:5: note: declared here int avcodec_encode_audio2(AVCodecContext avctx, AVPacket avpkt, ^ ../src/essentia/utils/audiocontext.cpp:341:5: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/essentia/utils/audiocontext.cpp:341:5: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/essentia/utils/audiocontext.cpp:341:27: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/essentia/utils/audiocontext.cpp: In member function ‘void essentia::AudioContext::writeEOF()’: ../src/essentia/utils/audiocontext.cpp:357:9: warning: ‘int avcodec_encode_audio2(AVCodecContext, AVPacket, const AVFrame, int)’ is deprecated [-Wdeprecated-declarations] if (avcodec_encode_audio2(_codecCtx, &packet, NULL, &got_output) < 0) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:4527:5: note: declared here int avcodec_encode_audio2(AVCodecContext avctx, AVPacket avpkt, ^ ../src/essentia/utils/audiocontext.cpp:357:9: warning: ‘int avcodec_encode_audio2(AVCodecContext, AVPacket, const AVFrame, int)’ is deprecated [-Wdeprecated-declarations] if (avcodec_encode_audio2(_codecCtx, &packet, NULL, &got_output) < 0) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:4527:5: note: declared here int avcodec_encode_audio2(AVCodecContext avctx, AVPacket avpkt, ^ ../src/essentia/utils/audiocontext.cpp:357:68: warning: ‘int avcodec_encode_audio2(AVCodecContext, AVPacket, const AVFrame, int)’ is deprecated [-Wdeprecated-declarations] if (avcodec_encode_audio2(_codecCtx, &packet, NULL, &got_output) < 0) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:4527:5: note: declared here int avcodec_encode_audio2(AVCodecContext avctx, AVPacket avpkt, ^ ../src/essentia/utils/audiocontext.cpp:364:7: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/essentia/utils/audiocontext.cpp:364:7: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/essentia/utils/audiocontext.cpp:364:29: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/essentia/utils/audiocontext.h:26, from ../src/essentia/utils/audiocontext.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket *pkt); ^

[ 28/260] Compiling src/essentia/utils/extractor_freesound/FreesoundRhythmDescriptors.cpp [ 29/260] Compiling src/essentia/utils/extractor_freesound/FreesoundSfxDescriptors.cpp [ 30/260] Compiling src/essentia/utils/extractor_freesound/FreesoundTonalDescriptors.cpp [ 31/260] Compiling src/essentia/utils/extractor_music/MusicLowlevelDescriptors.cpp [ 32/260] Compiling src/essentia/utils/extractor_music/MusicRhythmDescriptors.cpp [ 33/260] Compiling src/essentia/utils/extractor_music/MusicTonalDescriptors.cpp [ 34/260] Compiling src/essentia/utils/jsonconvert.cpp [ 35/260] Compiling src/essentia/utils/synth_utils.cpp [ 36/260] Compiling src/essentia/utils/yamlast.cpp [ 37/260] Compiling src/algorithms/essentia_algorithms_reg.cpp [ 38/260] Compiling src/algorithms/standard/constantq.cpp [ 39/260] Compiling src/algorithms/complex/cartesiantopolar.cpp [ 40/260] Compiling src/algorithms/standard/slicer.cpp [ 41/260] Compiling src/algorithms/sfx/tctototal.cpp ../src/algorithms/standard/constantq.cpp: In member function ‘virtual void essentia::standard::ConstantQ::configure()’: ../src/algorithms/standard/constantq.cpp:131:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (unsigned int i=0; i <_FFTLength/2; ++i) { ^ ../src/algorithms/standard/constantq.cpp:149:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (unsigned int i=0; i <_FFTLength/2; ++i) { ^ ../src/algorithms/standard/constantq.cpp:153:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (unsigned int j=0; j<_FFTLength; j++) { ^

[ 42/260] Compiling src/algorithms/stats/rawmoments.cpp [ 43/260] Compiling src/algorithms/spectral/erbbands.cpp [ 44/260] Compiling src/algorithms/stats/powermean.cpp [ 45/260] Compiling src/algorithms/rhythm/percivalbpmestimator.cpp [ 46/260] Compiling src/algorithms/standard/spline.cpp [ 47/260] Compiling src/algorithms/synthesis/sprmodelanal.cpp [ 48/260] Compiling src/algorithms/spectral/hpcp.cpp [ 49/260] Compiling src/algorithms/tonal/dissonance.cpp [ 50/260] Compiling src/algorithms/stats/energy.cpp [ 51/260] Compiling src/algorithms/extractor/tonalextractor.cpp [ 52/260] Compiling src/algorithms/rhythm/superfluxnovelty.cpp [ 53/260] Compiling src/algorithms/extractor/keyextractor.cpp [ 54/260] Compiling src/algorithms/tonal/pitchsaliencefunctionpeaks.cpp [ 55/260] Compiling src/algorithms/tonal/pitchcontoursmultimelody.cpp [ 56/260] Compiling src/algorithms/io/audioonsetsmarker.cpp [ 57/260] Compiling src/algorithms/synthesis/sinemodelanal.cpp [ 58/260] Compiling src/algorithms/io/audioloader.cpp [ 59/260] Compiling src/algorithms/standard/multiplexer.cpp [ 60/260] Compiling src/algorithms/extractor/tuningfrequencyextractor.cpp [ 61/260] Compiling src/algorithms/rhythm/tempotapmaxagreement.cpp [ 62/260] Compiling src/algorithms/complex/magnitude.cpp ../src/algorithms/io/audioloader.cpp: In member function ‘void essentia::streaming::AudioLoader::openAudioFile(const string&)’: ../src/algorithms/io/audioloader.cpp:81:36: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] if (_demuxCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/algorithms/io/audioloader.cpp:81:36: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] if (_demuxCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/algorithms/io/audioloader.cpp:81:36: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] if (_demuxCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) { ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/algorithms/io/audioloader.cpp:102:49: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] _audioCtx = _demuxCtx->streams[_streamIdx]->codec; ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/algorithms/io/audioloader.cpp:102:49: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] _audioCtx = _demuxCtx->streams[_streamIdx]->codec; ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/algorithms/io/audioloader.cpp:102:49: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations] _audioCtx = _demuxCtx->streams[_streamIdx]->codec; ^ In file included from ../src/essentia/utils/ffmpegapi.h:25:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavformat/avformat.h:699:21: note: declared here AVCodecContext codec; ^ ../src/algorithms/io/audioloader.cpp: In member function ‘void essentia::streaming::AudioLoader::closeAudioFile()’: ../src/algorithms/io/audioloader.cpp:164:5: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&_packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/algorithms/io/audioloader.cpp:164:5: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&_packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/algorithms/io/audioloader.cpp:164:28: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&_packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/algorithms/io/audioloader.cpp: In member function ‘virtual essentia::streaming::AlgorithmStatus essentia::streaming::AudioLoader::process()’: ../src/algorithms/io/audioloader.cpp:247:5: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&_packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/algorithms/io/audioloader.cpp:247:5: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&_packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/algorithms/io/audioloader.cpp:247:28: warning: ‘void av_free_packet(AVPacket)’ is deprecated [-Wdeprecated-declarations] av_free_packet(&_packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3684:6: note: declared here void av_free_packet(AVPacket pkt); ^ ../src/algorithms/io/audioloader.cpp: In member function ‘int essentia::streaming::AudioLoader::decode_audio_frame(AVCodecContext, float, int, AVPacket)’: ../src/algorithms/io/audioloader.cpp:264:15: warning: ‘int avcodec_decode_audio4(AVCodecContext, AVFrame, int, AVPacket)’ is deprecated [-Wdeprecated-declarations] int len = avcodec_decode_audio4(audioCtx, _decodedFrame, &gotFrame, packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3912:5: note: declared here int avcodec_decode_audio4(AVCodecContext avctx, AVFrame frame, ^ ../src/algorithms/io/audioloader.cpp:264:15: warning: ‘int avcodec_decode_audio4(AVCodecContext, AVFrame, int, AVPacket)’ is deprecated [-Wdeprecated-declarations] int len = avcodec_decode_audio4(audioCtx, _decodedFrame, &gotFrame, packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3912:5: note: declared here int avcodec_decode_audio4(AVCodecContext avctx, AVFrame frame, ^ ../src/algorithms/io/audioloader.cpp:264:79: warning: ‘int avcodec_decode_audio4(AVCodecContext, AVFrame, int, AVPacket)’ is deprecated [-Wdeprecated-declarations] int len = avcodec_decode_audio4(audioCtx, _decodedFrame, &gotFrame, packet); ^ In file included from ../src/essentia/utils/ffmpegapi.h:24:0, from ../src/algorithms/io/audioloader.h:25, from ../src/algorithms/io/audioloader.cpp:20: /usr/local/include/libavcodec/avcodec.h:3912:5: note: declared here int avcodec_decode_audio4(AVCodecContext avctx, AVFrame frame, ^

[ 63/260] Compiling src/algorithms/rhythm/tempotapticks.cpp [ 64/260] Compiling src/algorithms/tonal/pitchcontoursmelody.cpp [ 65/260] Compiling src/algorithms/rhythm/noveltycurvefixedbpmestimator.cpp [ 66/260] Compiling src/algorithms/standard/binaryoperator.cpp [ 67/260] Compiling src/algorithms/rhythm/beatsloudness.cpp [ 68/260] Compiling src/algorithms/highlevel/sbic.cpp [ 69/260] Compiling src/algorithms/rhythm/beattrackermultifeature.cpp [ 70/260] Compiling src/algorithms/extractor/extractor.cpp [ 71/260] Compiling src/algorithms/standard/windowing.cpp [ 72/260] Compiling src/algorithms/standard/warpedautocorrelation.cpp [ 73/260] Compiling src/algorithms/stats/mean.cpp [ 74/260] Compiling src/algorithms/tonal/pitchyinfft.cpp [ 75/260] Compiling src/algorithms/stats/distributionshape.cpp [ 76/260] Compiling src/algorithms/highlevel/dynamiccomplexity.cpp [ 77/260] Compiling src/algorithms/tonal/pitchcontours.cpp [ 78/260] Compiling src/algorithms/highlevel/fadedetection.cpp [ 79/260] Compiling src/algorithms/spectral/energybandratio.cpp [ 80/260] Compiling src/algorithms/synthesis/hprmodelanal.cpp [ 81/260] Compiling src/algorithms/extractor/freesoundextractor.cpp [ 82/260] Compiling src/algorithms/spectral/triangularbands.cpp [ 83/260] Compiling src/algorithms/tonal/oddtoevenharmonicenergyratio.cpp [ 84/260] Compiling src/algorithms/synthesis/sprmodelsynth.cpp [ 85/260] Compiling src/algorithms/sfx/flatnesssfx.cpp [ 86/260] Compiling src/algorithms/spectral/spectralcentroidtime.cpp [ 87/260] Compiling src/algorithms/standard/crosscorrelation.cpp [ 88/260] Compiling src/algorithms/standard/unaryoperator.cpp [ 89/260] Compiling src/algorithms/tonal/highresolutionfeatures.cpp [ 90/260] Compiling src/algorithms/rhythm/noveltycurve.cpp [ 91/260] Compiling src/algorithms/rhythm/superfluxpeaks.cpp [ 92/260] Compiling src/algorithms/stats/poolaggregator.cpp [ 93/260] Compiling src/algorithms/io/fileoutputproxy.cpp [ 94/260] Compiling src/algorithms/spectral/triangularbarkbands.cpp [ 95/260] Compiling src/algorithms/spectral/spectralwhitening.cpp [ 96/260] Compiling src/algorithms/synthesis/resamplefft.cpp [ 97/260] Compiling src/algorithms/rhythm/superfluxextractor.cpp [ 98/260] Compiling src/algorithms/tonal/pitchmelodia.cpp [ 99/260] Compiling src/algorithms/temporal/effectiveduration.cpp [100/260] Compiling src/algorithms/tonal/key.cpp [101/260] Compiling src/algorithms/spectral/rolloff.cpp [102/260] Compiling src/algorithms/synthesis/harmonicmask.cpp [103/260] Compiling src/algorithms/io/monoloader.cpp [104/260] Compiling src/algorithms/standard/derivative.cpp [105/260] Compiling src/algorithms/tonal/pitchcontoursmonomelody.cpp [106/260] Compiling src/algorithms/standard/monomixer.cpp [107/260] Compiling src/algorithms/sfx/mintototal.cpp [108/260] Compiling src/algorithms/spectral/panning.cpp [109/260] Compiling src/algorithms/tonal/chordsdetectionbeats.cpp [110/260] Compiling src/algorithms/rhythm/percivalevaluatepulsetrains.cpp [111/260] Compiling src/algorithms/stats/singlegaussian.cpp [112/260] Compiling src/algorithms/standard/scale.cpp [113/260] Compiling src/algorithms/standard/trimmer.cpp [114/260] Compiling src/algorithms/stats/entropy.cpp [115/260] Compiling src/algorithms/rhythm/bpmhistogram.cpp [116/260] Compiling src/algorithms/rhythm/rhythmextractor.cpp [117/260] Compiling src/algorithms/synthesis/sinemodelsynth.cpp [118/260] Compiling src/algorithms/synthesis/spsmodelanal.cpp [119/260] Compiling src/algorithms/rhythm/rhythmtransform.cpp [120/260] Compiling src/algorithms/complex/polartocartesian.cpp [121/260] Compiling src/algorithms/tonal/pitchcontoursegmentation.cpp [122/260] Compiling src/algorithms/tonal/tristimulus.cpp [123/260] Compiling src/algorithms/rhythm/beattrackerdegara.cpp [124/260] Compiling src/algorithms/rhythm/onsetrate.cpp [125/260] Compiling src/algorithms/stats/crest.cpp [126/260] Compiling src/algorithms/standard/chromagram.cpp [127/260] Compiling src/algorithms/sfx/maxtototal.cpp [128/260] Compiling src/algorithms/filters/iir.cpp [129/260] Compiling src/algorithms/spectral/maxmagfreq.cpp [130/260] Compiling src/algorithms/synthesis/stochasticmodelanal.cpp [131/260] Compiling src/algorithms/tonal/multipitchklapuri.cpp [132/260] Compiling src/algorithms/spectral/mfcc.cpp [133/260] Compiling src/algorithms/tonal/multipitchmelodia.cpp [134/260] Compiling src/algorithms/stats/variance.cpp [135/260] Compiling src/algorithms/spectral/flux.cpp [136/260] Compiling src/algorithms/standard/spectrum.cpp [137/260] Compiling src/algorithms/experimental/meter.cpp [138/260] Compiling src/algorithms/tonal/inharmonicity.cpp [139/260] Compiling src/algorithms/stats/rms.cpp [140/260] Compiling src/algorithms/temporal/loudnessvickers.cpp [141/260] Compiling src/algorithms/io/eqloudloader.cpp [142/260] Compiling src/algorithms/rhythm/loopbpmestimator.cpp [143/260] Compiling src/algorithms/temporal/zerocrossingrate.cpp [144/260] Compiling src/algorithms/spectral/gfcc.cpp [145/260] Compiling src/algorithms/standard/fftwcomplex.cpp [146/260] Compiling src/algorithms/filters/highpass.cpp [147/260] Compiling src/algorithms/sfx/pitchsalience.cpp [148/260] Compiling src/algorithms/rhythm/temposcalebands.cpp [149/260] Compiling src/algorithms/tonal/tuningfrequency.cpp [150/260] Compiling src/algorithms/spectral/energyband.cpp [151/260] Compiling src/algorithms/standard/binaryoperatorstream.cpp [152/260] Compiling src/algorithms/highlevel/chromaprinter.cpp [153/260] Compiling src/algorithms/filters/movingaverage.cpp [154/260] Compiling src/algorithms/standard/vectorrealaccumulator.cpp [155/260] Compiling src/algorithms/extractor/barkextractor.cpp [156/260] Compiling src/algorithms/io/easyloader.cpp [157/260] Compiling src/algorithms/spectral/bfcc.cpp [158/260] Compiling src/algorithms/standard/startstopsilence.cpp [159/260] Compiling src/algorithms/filters/lowpass.cpp [160/260] Compiling src/algorithms/rhythm/onsets.cpp [161/260] Compiling src/algorithms/standard/cubicspline.cpp [162/260] Compiling src/algorithms/standard/peakdetection.cpp [163/260] Compiling src/algorithms/spectral/spectralcomplexity.cpp [164/260] Compiling src/algorithms/rhythm/tempotap.cpp [165/260] Compiling src/algorithms/stats/geometricmean.cpp [166/260] Compiling src/algorithms/stats/centralmoments.cpp [167/260] Compiling src/algorithms/standard/envelope.cpp [168/260] Compiling src/algorithms/standard/resample.cpp [169/260] Compiling src/algorithms/tonal/predominantpitchmelodia.cpp [170/260] Compiling src/algorithms/tonal/vibrato.cpp [171/260] Compiling src/algorithms/synthesis/hpsmodelanal.cpp [172/260] Compiling src/algorithms/temporal/loudness.cpp [173/260] Compiling src/algorithms/io/metadatareader.cpp [174/260] Compiling src/algorithms/spectral/spectrumtocent.cpp [175/260] Compiling src/algorithms/standard/fftw.cpp [176/260] Compiling src/algorithms/temporal/lpc.cpp [177/260] Compiling src/algorithms/temporal/loudnessebur128filter.cpp [178/260] Compiling src/algorithms/stats/instantpower.cpp [179/260] Compiling src/algorithms/standard/idct.cpp [180/260] Compiling src/algorithms/standard/framecutter.cpp [181/260] Compiling src/algorithms/stats/median.cpp [183/260] Compiling src/algorithms/rhythm/rhythmextractor2013.cpp [184/260] Compiling src/algorithms/standard/powerspectrum.cpp [185/260] Compiling src/algorithms/tonal/tonicindianartmusic.cpp [186/260] Compiling src/algorithms/sfx/derivativesfx.cpp [187/260] Compiling src/algorithms/standard/spectrumCQ.cpp [188/260] Compiling src/algorithms/filters/dcremoval.cpp [189/260] Compiling src/algorithms/tonal/pitchsaliencefunction.cpp [190/260] Compiling src/algorithms/standard/silencerate.cpp [191/260] Compiling src/algorithms/sfx/strongdecay.cpp [192/260] Compiling src/algorithms/spectral/spectralcontrast.cpp [193/260] Compiling src/algorithms/rhythm/bpmhistogramdescriptors.cpp [194/260] Compiling src/algorithms/tonal/chordsdescriptors.cpp [195/260] Compiling src/algorithms/tonal/chordsdetection.cpp [196/260] Compiling src/algorithms/extractor/levelextractor.cpp [197/260] Compiling src/algorithms/spectral/barkbands.cpp [198/260] Compiling src/algorithms/standard/dct.cpp [199/260] Compiling src/algorithms/tonal/pitchyin.cpp [200/260] Compiling src/algorithms/standard/frametoreal.cpp [201/260] Compiling src/algorithms/io/yamlinput.cpp [202/260] Compiling src/algorithms/synthesis/stochasticmodelsynth.cpp [203/260] Compiling src/algorithms/extractor/musicextractor.cpp [204/260] Compiling src/algorithms/spectral/frequencybands.cpp [205/260] Compiling src/algorithms/temporal/leq.cpp [206/260] Compiling src/algorithms/rhythm/bpmrubato.cpp [207/260] Compiling src/algorithms/filters/allpass.cpp [208/260] Compiling src/algorithms/experimental/beatogram.cpp [209/260] Compiling src/algorithms/filters/equalloudness.cpp [210/260] Compiling src/algorithms/tonal/pitchfilter.cpp [211/260] Compiling src/algorithms/highlevel/danceability.cpp [212/260] Compiling src/algorithms/stats/decrease.cpp [213/260] Compiling src/algorithms/standard/ifftw.cpp [214/260] Compiling src/algorithms/standard/unaryoperatorstream.cpp [215/260] Compiling src/algorithms/sfx/logattacktime.cpp [216/260] Compiling src/algorithms/spectral/spectralpeaks.cpp [217/260] Compiling src/algorithms/io/monowriter.cpp [218/260] Compiling src/algorithms/synthesis/spsmodelsynth.cpp [219/260] Compiling src/algorithms/standard/replaygain.cpp [220/260] Compiling src/algorithms/extractor/lowlevelspectraleqloudextractor.cpp [221/260] Compiling src/algorithms/standard/bpf.cpp [222/260] Compiling src/algorithms/tonal/harmonicpeaks.cpp [223/260] Compiling src/algorithms/rhythm/tempotapdegara.cpp [224/260] Compiling src/algorithms/rhythm/harmonicbpm.cpp [225/260] Compiling src/algorithms/standard/realaccumulator.cpp [226/260] Compiling src/algorithms/stats/centroid.cpp [227/260] Compiling src/algorithms/io/audiowriter.cpp [228/260] Compiling src/algorithms/standard/autocorrelation.cpp [229/260] Compiling src/algorithms/stats/flatness.cpp [230/260] Compiling src/algorithms/temporal/duration.cpp [231/260] Compiling src/algorithms/synthesis/sinesubtraction.cpp [232/260] Compiling src/algorithms/rhythm/singlebeatloudness.cpp [233/260] Compiling src/algorithms/rhythm/loopbpmconfidence.cpp [234/260] Compiling src/algorithms/highlevel/intensity.cpp [235/260] Compiling src/algorithms/standard/maxfilter.cpp [236/260] Compiling src/algorithms/filters/bandpass.cpp [237/260] Compiling src/algorithms/spectral/strongpeak.cpp [238/260] Compiling src/algorithms/sfx/aftermaxtobeforemaxenergyratio.cpp [239/260] Compiling src/algorithms/standard/stereotrimmer.cpp [240/260] Compiling src/algorithms/extractor/lowlevelspectralextractor.cpp [241/260] Compiling src/algorithms/standard/noiseadder.cpp [242/260] Compiling src/algorithms/extractor/rhythmdescriptors.cpp [243/260] Compiling src/algorithms/synthesis/harmonicmodelanal.cpp [244/260] Compiling src/algorithms/spectral/melbands.cpp [245/260] Compiling src/algorithms/io/yamloutput.cpp [246/260] Compiling src/algorithms/rhythm/percivalenhanceharmonics.cpp [247/260] Compiling src/algorithms/highlevel/pca.cpp [248/260] Compiling src/algorithms/standard/stereomuxer.cpp [249/260] Compiling src/algorithms/rhythm/onsetdetectionglobal.cpp [250/260] Compiling src/algorithms/standard/overlapadd.cpp [251/260] Compiling src/algorithms/rhythm/onsetdetection.cpp [252/260] Compiling src/algorithms/spectral/hfc.cpp [253/260] Compiling src/algorithms/temporal/loudnessebur128.cpp [254/260] Compiling src/algorithms/standard/stereodemuxer.cpp [255/260] Compiling src/algorithms/standard/clipper.cpp [256/260] Compiling src/algorithms/filters/bandreject.cpp [257/260] Compiling src/algorithms/spectral/flatnessdb.cpp [258/260] Compiling src/algorithms/temporal/larm.cpp [259/260] Compiling src/3rdparty/spline/splineutil.cpp [260/260] Linking build/src/libessentia.a [262/376] Linking build/src/examples/essentia_standard_beatsmarker [264/376] Linking build/src/examples/essentia_standard_fadedetection [266/376] Linking build/src/examples/essentia_standard_mfcc [268/376] Linking build/src/examples/essentia_standard_onsetrate [344/376] Linking build/src/examples/essentia_standard_pitchdemo [345/376] Linking build/src/examples/essentia_standard_rhythmtransform [346/376] Linking build/src/examples/essentia_standard_spectralcontrast [347/376] Linking build/src/examples/essentia_standard_vibrato [348/376] Linking build/src/examples/essentia_standard_harmonicmodel [349/376] Linking build/src/examples/essentia_standard_hpsmodel [350/376] Linking build/src/examples/essentia_standard_hprmodel [351/376] Linking build/src/examples/essentia_standard_predominantmask [352/376] Linking build/src/examples/essentia_standard_sinemodel [353/376] Linking build/src/examples/essentia_standard_sinesubtraction [354/376] Linking build/src/examples/essentia_standard_sprmodel [355/376] Linking build/src/examples/essentia_standard_spsmodel [356/376] Linking build/src/examples/essentia_standard_stft [357/376] Linking build/src/examples/essentia_standard_stochasticmodel [358/376] Linking build/src/examples/essentia_streaming_beatsmarker [359/376] Linking build/src/examples/essentia_streaming_beattracker_multifeature_mirex2013 [360/376] Linking build/src/examples/essentia_streaming_key [361/376] Linking build/src/examples/essentia_streaming_gfcc [362/376] Linking build/src/examples/essentia_streaming_md5 [363/376] Linking build/src/examples/essentia_streaming_mfcc [364/376] Linking build/src/examples/essentia_streaming_rhythmextractor_multifeature [365/376] Linking build/src/examples/essentia_streaming_onsetrate [366/376] Linking build/src/examples/essentia_streaming_panning [367/376] Linking build/src/examples/essentia_streaming_pitchyinfft [368/376] Linking build/src/examples/essentia_streaming_predominantpitchmelodia [369/376] Linking build/src/examples/essentia_streaming_stft [370/376] Linking build/src/examples/essentia_streaming_tuningfrequency [371/376] Linking build/src/examples/essentia_streaming_vibrato [372/376] Linking build/src/examples/essentia_streaming_extractor_music [373/376] Linking build/src/examples/essentia_streaming_extractor_freesound [374/376] Linking build/src/examples/libvamp_essentia.so [375/376] Linking build/src/python/_essentia.cpython-35m-x86_64-linux-gnu.so [376/376] Linking build/basetest Waf: Leaving directory `/home/ahmed/essentia/build' 'build' finished successfully (3m38.769s) ahmed@ahmed:~/essentia$

ahmed-jbeli commented 6 years ago

sudo python3 ./waf install sudo: unable to resolve host ahmed Waf: Entering directory `/home/ahmed/essentia/build' → building from /home/ahmed/essentia → building from /home/ahmed/essentia/src Building all the algorithms Ignoring the following algorithms: FFTA, GaiaTransform, IFFTK, IFFTA, MusicExtractorSVM, FFTK Created algorithms registration file → building from /home/ahmed/essentia/src/examples → building from /home/ahmed/essentia/src/python [ 37/261] Compiling src/algorithms/essentia_algorithms_reg.cpp [260/261] Linking build/src/libessentia.a

ahmed-jbeli commented 6 years ago

can anyone please help me out my project is on hold because i couldn't get it to work and i couldn't figure out the problem

dbogdanov commented 2 years ago

Please, reopen if there is a similar issue.

Liujingxiu23 commented 1 year ago

@ahmed-jbeli Have you solve the problem? I have the same problem no matter I use waf to install or use pip install command, the problem both exist.

Liujingxiu23 commented 1 year ago

I solve the problem using : from essentia import standard essentia_tracker = standard.RhythmExtractor2013(method="multifeature")

instead of essentia.standard.RhythmExtractor2013 directly