Open
Conversation
- Formula works properly with `brew install -HEAD` - Issue with six package, install it later via pip - /opt/homebrew/Cellar/python@3.9/3.9.25/bin/python3.9 -m pip install six - Essentia is properly installed: - >>> /opt/homebrew/Cellar/python@3.9/3.9.25/bin/python3.9 - >>> import essentia - >>> from essentia.standard import AudioLoader, MonoLoader, EasyLoader, EqloudLoader, MonoWriter, AudioWriter
- Update to ffmpeg@6 - Install in a virtual environment - Fix six package issue - Prevents `will not overwrite` error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the homebrew formula to FFmpeg-v6
PROBLEM
The current Essentia Homebrew formula fails to build Python bindings when six is not installed, and older FFmpeg versions prevent installing the latest Essentia version.
Users encounter
ModuleNotFoundError: No module named 'essentia'when attempting to import the Python bindings.SOLUTION
numpyandsixare installed before building Essentia Python bindings using a virtual environment.PREREQUISITES
No need to pre-install
numpyorsixmanually — handled in the formulaCLOSES
Closes issues related to:
Closes
* brew install: Error: Failed to download resource "essentia" #37
* Compatibility with other Python versions #34
* cannot install essentia on MacOS M1 #32
* cannot install essentia on MacOs #30
HOW TO REPRODUCE
Attempt to install Essentia with the previous formula:
Observe errors:
Python ModuleNotFoundError for essentiaHOW TO TEST
After updating the formula in the homebrew-essentia repository:
Option 1: From the local formula
Navigate to the directory containing the updated formula
Test Python bindings
python3.11 -c "import essentia.standard as estd; import essentia.streaming as estr; estd.MusicExtractor()('/System/Library/Sounds/Glass.aiff')"Option 2: From the GitHub tap
Add the tap
Install Essentia from the tap
Test Python bindings
python3.11 -c "import essentia.standard as estd; import essentia.streaming as estr; estd.MusicExtractor()('/System/Library/Sounds/Glass.aiff')"Both methods ensure Essentia is compiled with
FFmpeg-v6, and Python dependencies (numpyandsix) are installed in a virtual environment so that the Python bindings work out of the box.