Essentia just won't install/import or work on Python/Jupyter Notebooks

Viewed 36

Y'all I'm losing my mind. To preface-- I am a total noob. I've used python on jupyter notebooks and numpy etc. but never have used git or installed a package that wasn't already avail on jupyter. So please, give me your answers in the most simplest way! Explain it like I'm 5!

Here's the situation: I'm doing this on OSX (Big Sur). I've tried installing Essentia the way the documentation outlines using both homebrew and then whatever is outlined under "installing dependencies on macOS" and the sections under it. I have no clue what homebrew did. The second method seemed to do SOMETHING and compiling was successful. But both give me the same results. I can't for the life of me find where the package was installed. When I use brew --prefix essentia, it returns

/usr/local/opt/essentia

When I locate that file, it simply doesn't exist. There is no essentia. If I try pip show essentia, it returns:

WARNING: Package(s) not found: essentia

????

So then I try to move on because maybe I'm not supposed to know where it's gone... and try

pip3 install essentia

The thing gets stuck on

*Building wheels for collected packages: essentia
  Building wheel for essentia (setup.py) ... |*

and it either says *ERROR: Command errored out with exit status* or gives an error about it being unable to build wheels (I don't have the exact message right now) I attempted to upgrading using pip wheel. Now I get more of the command error than the build issue but it still shows up occasionally.

I tried pip install essentia as well. nothing. I tried import essentia. Nothing.

btw, I ran the tests that is on the documentation page and they all failed. Attempted this suggestion as well: https://gist.github.com/jarmitage/40e3b7962b0a77a233b2d590d69378d6

And it doesn't work. If I import essentia on jupyter it says ModuleNotFoundError: No module named 'essentia' even after using

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

I tried replacing python 3.7 with 3.10 and 3.9 as that's what I think is on my system. python on homebrew is on 3.10 and my mac has 3.9 installed as its python3 version.

--fyi, I tried navigating to this folder myself and while site-packages for 3.9 and 3.10 exist in that path, neither had a folder for essentia. Not sure if I should be expecting that, but seems to make sense that I should.

Anyways. This is very long. I am sorry. PLEASE HELP ME. I am desperately trying to find a solution but I don't know what else to do. Apologies if there's some real basic stuff here I'm missing and doing wrong. Appreciate any help I can get :)

0 Answers
Related