-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot install essentia on MacOS M1 #32
Comments
Can you provide the output running brew install with |
cat /Users/ufr/Library/Logs/Homebrew/essentia/01.python3
|
Maybe it matters
And this
|
As you point out, the |
I guess there is some confusion with python versions ...
So (for easy debugging) I run
The This error is gone. But another comes. |
|
So now I need to preinstall libessentia? How to do this?
|
Brew should have also installed numpy dependency for you. Btw, if you just want to run Essentia in Python, we have wheels for Intel MacOS on PyPI. We also have experimental wheels for Silicon, but it is work in progress: works for some users, but others reported |
Solved for me. I decided to check what was wrong with numpy and do some tests.
There were a lot of errors and one of them That didn't solve the problem, but the test now ran successfully. Then I reinstalled numpy
So now it works. |
I purged brew and try clean installation. So. There are two things we have to do before this
works.
So @dbogdanov thanks for your work! Спасибо |
Thanks! These 2 lines fixed it for me. Worked on both M1/Intel macbooks.
|
I'm also unable to install on a new macbook pro with M2 chip. It looks like the problem is that the script can't find numpy, but I've done all the steps from the two posts above and I can't seem to get it to see numpy. Here's the output from my install: ================================ CONFIGURATION SUMMARY ================================
[313/434] Compiling src/examples/standard_beatsmarker.cpp [325/434] Compiling src/examples/standard_sinemodel.cpp [326/434] Compiling src/examples/standard_sinesubtraction.cpp [327/434] Linking build/src/examples/essentia_standard_onsetrate [328/434] Linking build/src/examples/essentia_standard_beatsmarker [329/434] Linking build/src/examples/essentia_standard_fadedetection [330/434] Linking build/src/examples/essentia_standard_pitchdemo [331/434] Linking build/src/examples/essentia_standard_mfcc [332/434] Linking build/src/examples/essentia_standard_vibrato [333/434] Linking build/src/examples/essentia_standard_spectralcontrast [334/434] Linking build/src/examples/essentia_standard_predominantmask [335/434] Compiling src/examples/standard_sprmodel.cpp [336/434] Linking build/src/examples/essentia_standard_rhythmtransform [337/434] Compiling src/examples/standard_spsmodel.cpp [338/434] Compiling src/examples/standard_stft.cpp [339/434] Compiling src/examples/standard_stochasticmodel.cpp [340/434] Linking build/src/examples/essentia_standard_hprmodel [341/434] Compiling src/examples/standard_chromaprinter.cpp [342/434] Linking build/src/examples/essentia_standard_hpsmodel [343/434] Compiling src/examples/standard_pca.cpp [344/434] Compiling src/examples/standard_discontinuitydetector.cpp [345/434] Compiling src/examples/standard_extractor_la-cupula.cpp [346/434] Compiling src/examples/standard_gapsdetector.cpp [347/434] Compiling src/examples/standard_humdetector.cpp [348/434] Linking build/src/examples/essentia_standard_harmonicmodel [349/434] Linking build/src/examples/essentia_standard_sinemodel [350/434] Compiling src/examples/standard_loudnessebur128.cpp [351/434] Linking build/src/examples/essentia_standard_sinesubtraction [352/434] Linking build/src/examples/essentia_standard_chromaprinter [353/434] Compiling src/examples/standard_loudnessebur128_double_input.cpp [354/434] Compiling src/examples/standard_saturationdetector.cpp [355/434] Linking build/src/examples/essentia_standard_stft [356/434] Compiling src/examples/standard_snr.cpp [357/434] Compiling src/examples/standard_welch.cpp [358/434] Linking build/src/examples/essentia_standard_discontinuitydetector [359/434] Linking build/src/examples/essentia_standard_pca [360/434] Linking build/src/examples/essentia_standard_gapsdetector [361/434] Linking build/src/examples/essentia_standard_humdetector [362/434] Linking build/src/examples/essentia_standard_sprmodel [363/434] Linking build/src/examples/essentia_standard_stochasticmodel [364/434] Compiling src/examples/streaming_humdetector.cpp [365/434] Compiling src/examples/standard_crosssimilaritymatrix.cpp [366/434] Compiling src/examples/standard_chromacrosssimilarity.cpp [367/434] Linking build/src/examples/essentia_standard_spsmodel [368/434] Compiling src/examples/standard_coversongsimilarity.cpp [369/434] Compiling src/examples/streaming_beatsmarker.cpp [370/434] Compiling src/examples/streaming_beattracker_multifeature_mirex2013.cpp [371/434] Compiling src/examples/streaming_key.cpp [372/434] Linking build/src/examples/essentia_standard_extractor_la-cupula [373/434] Linking build/src/examples/essentia_standard_loudnessebur128_double_input [374/434] Compiling src/examples/streaming_gfcc.cpp [375/434] Linking build/src/examples/essentia_standard_loudnessebur128 [376/434] Linking build/src/examples/essentia_standard_welch [377/434] Compiling src/examples/streaming_md5.cpp [378/434] Linking build/src/examples/essentia_standard_snr [379/434] Linking build/src/examples/essentia_standard_saturationdetector [380/434] Linking build/src/examples/essentia_streaming_humdetector [381/434] Compiling src/examples/streaming_mfcc.cpp [382/434] Compiling src/examples/music_extractor/extractor_utils.cpp [383/434] Compiling src/examples/streaming_spectrogram.cpp [384/434] Compiling src/examples/streaming_rhythmextractor_multifeature.cpp [385/434] Compiling src/examples/streaming_onsetrate.cpp [386/434] Linking build/src/examples/essentia_streaming_beatsmarker [387/434] Linking build/src/examples/essentia_standard_crosssimilaritymatrix [388/434] Linking build/src/examples/essentia_streaming_beattracker_multifeature_mirex2013 [389/434] Compiling src/examples/streaming_panning.cpp [390/434] Linking build/src/examples/essentia_standard_chromacrosssimilarity [391/434] Compiling src/examples/streaming_pitchyinfft.cpp [392/434] Compiling src/examples/streaming_predominantpitchmelodia.cpp [393/434] Compiling src/examples/streaming_chromacrosssimilarity.cpp [394/434] Linking build/src/examples/essentia_standard_coversongsimilarity [395/434] Linking build/src/examples/essentia_streaming_key [396/434] Compiling src/examples/streaming_coversongsimilarity.cpp [397/434] Compiling src/examples/streaming_stft.cpp [398/434] Linking build/src/examples/essentia_streaming_md5 [399/434] Linking build/src/examples/essentia_streaming_onsetrate [400/434] Compiling src/examples/streaming_tuningfrequency.cpp [401/434] Linking build/src/examples/essentia_streaming_gfcc [402/434] Linking build/src/examples/essentia_streaming_rhythmextractor_multifeature [403/434] Compiling src/examples/streaming_vibrato.cpp [404/434] Compiling src/examples/streaming_yinprobabilistic.cpp [405/434] Linking build/src/examples/essentia_streaming_mfcc [406/434] Compiling src/examples/streaming_extractor_music.cpp [407/434] Compiling src/examples/music_extractor/extractor_utils.cpp [408/434] Linking build/src/examples/essentia_streaming_predominantpitchmelodia [409/434] Compiling src/examples/streaming_extractor_freesound.cpp [410/434] Linking build/src/examples/essentia_streaming_spectrogram [411/434] Compiling src/examples/music_extractor/extractor_utils.cpp [412/434] Linking build/src/examples/essentia_streaming_pitchyinfft [413/434] Compiling src/examples/streaming_tensorflowpredict.cpp [414/434] Linking build/src/examples/essentia_streaming_panning [415/434] Compiling src/examples/streaming_musicnn_predict.cpp [416/434] Linking build/src/examples/essentia_streaming_chromacrosssimilarity [417/434] Compiling src/examples/streaming_vggish_predict.cpp [418/434] Compiling src/examples/vampwrapper.cpp [419/434] Linking build/src/examples/essentia_streaming_coversongsimilarity [420/434] Linking build/src/examples/essentia_streaming_stft [421/434] Compiling src/examples/vampplugins.cpp [422/434] Compiling src/3rdparty/vamp-plugin-sdk-2.4/src/vamp-sdk/PluginAdapter.cpp [423/434] Linking build/src/examples/essentia_streaming_tuningfrequency [424/434] Linking build/src/examples/essentia_streaming_yinprobabilistic [425/434] Compiling src/3rdparty/vamp-plugin-sdk-2.4/src/vamp-sdk/FFT.cpp [426/434] Linking build/src/examples/essentia_streaming_vibrato [427/434] Linking build/src/examples/essentia_streaming_extractor_music [428/434] Compiling src/3rdparty/vamp-plugin-sdk-2.4/src/vamp-sdk/RealTime.cpp [429/434] Compiling src/examples/vamppluginsextra.cpp ld: warning: dylib (/opt/homebrew/Cellar/libtensorflow/2.12.0/lib/libtensorflow.so) was built for newer macOS version (13.1) than being linked (13.0) In file included from ../src/examples/music_extractor/extractor_utils.cpp:1: [430/434] Linking build/src/examples/essentia_streaming_extractor_freesound In file included from ../src/examples/streaming_musicnn_predict.cpp:21: [431/434] Linking build/src/examples/essentia_streaming_musicnn_predict [432/434] Linking build/src/examples/essentia_streaming_tensorflowpredict ld: warning: dylib (/opt/homebrew/Cellar/libtensorflow/2.12.0/lib/libtensorflow.so) was built for newer macOS version (13.1) than being linked (13.0) In file included from ../src/examples/streaming_vggish_predict.cpp:21: [433/434] Linking build/src/examples/essentia_streaming_vggish_predict In file included from ../src/examples/vampwrapper.cpp:20: In file included from ../src/examples/vamppluginsextra.cpp:24: In file included from ../src/examples/vampplugins.cpp:22: [434/434] Linking build/src/examples/libvamp_essentia.dylib Waf: Leaving directory
==> Formula Error: mtg/essentia/essentia HEAD-417bf6a did not build These open issues may also help: |
Did you ever figure it out? I am using Mac M2 and have done the same steps, unfortunately not the same results. |
@floydback you are a wizard! |
I am still trying to install essentia on my macbook pro m2. I have tried using brew install essentia --HEAD --with-tensorflow and brew install essentia --HEAD. Neither works in both cases I get this output: Checking for program 'pkg-config' : /opt/homebrew/Library/Homebrew/shims/mac/super/pkg-config |
+1, installing Essentia on M1 Mac via
Any suggestions? |
+1, on macOS 13.4.1 with M1. Made a clean install of brew and followed these steps of @floydback. The installation of
The Config.log tells me basically the same:
Numpy couldn't be found, even though it's in the pip3 list or installed via brew. Numpy version is 1.25.2.
|
I think I found the point of confusion. On newer macOS-versions, python is shipped in version 3.9, this leads to confusion when using
This worked for me so far. I am now able to import essentia and starting to work with it! |
In addition, there's another way to install the exact numpy that essentia wants, just cd to the brew folder |
I have installed Python 3.9.6 and ffmpeg package and just run
I got something I can't understand.
What the problem?
The text was updated successfully, but these errors were encountered: