Comments (10)
You might need to install numpy via homebrew. Please, tell if that works for you.
from essentia.
Hmm, I can't remember how I fixed it exactly this was a while ago, but it might be with the homebrew version indeed. FYI I also ended up using it with the Anaconda distribution and it works well.
Thank you for your answer.
from essentia.
Hey Dima,
Just wanted to let you know I had the same problem (fatal error: 'numpy/ndarrayobject.h' file not found) and it was indeed solved by installing numpy via homebrew. It might be worth adding a comment on this in the installation instructions, since 10.9 is the first version (I think) of OSX that comes with python, numpy & scipy preinstalled, meaning there's a good chance people running 10.9 will run into the same problem in the future.
from essentia.
Hi, Salamon,
did you first try
pip install numpy
as suggested in the installation instructions and it didn't work on your 10.9?
from essentia.
the point is I skipped that step of the instructions because 10.9 already comes with python, numpy, scipy, etc. installed. I don't remember if I tried pip install (if I did then it didn't work), sorry! But to summarize - it only worked after installing numpy again using homebrew explicitly.
It's not su much a bug as a matter of adding a clarification in the instructions - I think most people with 10.9 will skip the numpy installation step because they will already have it installed, and then run into the same problem...
from essentia.
Not to bash on them, but you should not use the python executable or anything that comes by default on mac, as they are usually outdated (not yet for mavericks, of course) and will cause compilation problems, as every version of python is compiled with different flags/settings. You should get everything from the same source usually, so either:
- homebrew (recommended, as this also gives you a huge selection of other packages)
- macports, fink, ... (not recommended, use homebrew)
- special scientific python environments (anaconda, EPD, etc.) not tested but they should work fine if you limit yourself to the packages they provide
from essentia.
sound advice 👍
To avoid issues like this being opened in the future, since mavericks is the first version of OSX that comes with python stuff out of the box, it might make sense to include a line in the instructions recommending to install everything from scratch using homebrew to avoid compilation errors, and noting that for some packages (e.g. numpy) it's not just a recommendation, it's necessary.
Anyway, I leave it to your discretion :) Issue can be closed...
from essentia.
i did that a couple of hours ago ;)
from essentia.
As I pointed in a previous issue, pip cannot install correctly libraries in OSX 10.8 and up. To be exact, matplotlib fails on OSX 10.8 and numpy in 10.9. It is a better practice to use only pip for python packages when possible (e.g. to manage virtual envs smoothly) but, in this case, I'd rather advice OSX users with version 10.8 and up (or even OSX version...) to install numpy, scipy and matplotlib with homebrew. By the way, it might be interesting to point out in the instructions that 'brew tap samueljohn/python' is necessary.
from essentia.
I just successfully did the following on OSX 10.9.1:
mkvirtualenv --no-site-packages testnumpy
pip install numpy
pip install matplotlib
In any case, if you want to install numpy/matplotlib with homebrew, and you did install python with homebrew, I don't see any problems with this way of doing it. The nice thing you get with pip is you can install stuff inside a virtualenv (very recommended, get virtualenvwrapper also, once you get used to it it'll feel impossible to get back! ;-) )
from essentia.
Related Issues (20)
- How to programmatically get values out of a Pool in C++...?
- [Wishlist] - MonoLoader and AudioLoader accept Path as filename HOT 2
- EasyLoader replayGain confusion
- StartStopCut not working HOT 8
- Compile with Eigen without using pkg-config HOT 1
- Windows compilation fails with RogueVector HOT 1
- Compiling for raspberry PI 3 B
- Can't support ffmpeg 6.0 ?
- python essentia can't support M2 Max ? HOT 3
- PitchYin is 1-2 semitones off on iPhone XR (but not on other iOS devices) HOT 1
- Wrong implementation of the 'DerivativeSFX' algorithm
- Wrong implementation of the 'AutoCorrelation' algorithm HOT 2
- PredominantPitchMelodia requires reinstantiation for sequential audio processing HOT 2
- Installation issues HOT 1
- documentation website is down HOT 3
- Essentia and Unity
- Is there a model to determine the time-stamps to beat mapping? HOT 1
- RhythmExtractor2013 ticks doesn't accurately provide the information of when the first beat occurs HOT 2
- TempoCNN minimum expected audio length
- Problem: cannot import name [TensorflowPredict...] from essentia.streaming HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from essentia.