Open drscotthawley opened 7 months ago
README.md fails to mention that users need to install git-lfs first.
After doing that, re-running.... I'm not sure if it worked.?? Message at the end seems to suggest the need to open an issue?
$ brew install essentia --HEAD
==> Fetching mtg/essentia/essentia
==> Downloading https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.ta
Already downloaded: /Users/shawley/Library/Caches/Homebrew/downloads/22c9c7a937f5bb39678fed6ea3266190990eedb811f541ddc6b35ae42dc0e2e9--six-1.14.0.tar.gz
==> Cloning https://github.com/MTG/essentia.git
Updating /Users/shawley/Library/Caches/Homebrew/essentia--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at b584c9b1 Docs: improve formatting
Entering 'test/audio'
Entering 'test/models'
/Users/shawley/Library/Caches/Homebrew/essentia--git/test/audio
/Users/shawley/Library/Caches/Homebrew/essentia--git/test/models
==> Installing essentia from mtg/essentia
==> /opt/homebrew/opt/python@3.9/bin/python3 waf configure --mode=release --with-examples --with-vamp
Last 15 lines from /Users/shawley/Library/Logs/Homebrew/essentia/01.python3:
2024-01-18 01:36:31 +0000
/opt/homebrew/opt/python@3.9/bin/python3
waf
configure
--mode=release
--with-examples
--with-vamp
--prefix=/opt/homebrew/Cellar/essentia/HEAD-b584c9b
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/mtg/homebrew-essentia/issues
These open issues may also help:
brew install: Error: Failed to download resource "essentia" https://github.com/MTG/homebrew-essentia/issues/37
cannot install essentia on MacOS M1 https://github.com/MTG/homebrew-essentia/issues/32
cannot install essentia on MacOs https://github.com/MTG/homebrew-essentia/issues/30
Essentia install fails on MacOS with 'Broken revdeps detected' https://github.com/MTG/homebrew-essentia/issues/33
essentia installs fine, but gaia fails https://github.com/MTG/homebrew-essentia/issues/22
essentia's formula was built from an unstable upstream --HEAD.
This build failure is expected behaviour.
Do not create issues about this on Homebrew's GitHub repositories.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
So... what was the error this time?
I thought I might try uninstalling and reinstalling, but apparently installation did indeed fail:
$ brew uninstall essentia
Error: No such keg: /opt/homebrew/Cellar/essentia
Tried deleting the cache in Library/, but got the same message. And actually it again says that gif-lfs
is not found again, even though it's installed and in my current PATH
.
$ rm -rf /Users/shawley/Library/Caches/Homebrew/essentia--git
$ brew install essentia --HEAD
==> Downloading https://formulae.brew.sh/api/formula.jws.json
################################################################################################################################# 100.0%
==> Fetching mtg/essentia/essentia
==> Downloading https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.ta
Already downloaded: /Users/shawley/Library/Caches/Homebrew/downloads/22c9c7a937f5bb39678fed6ea3266190990eedb811f541ddc6b35ae42dc0e2e9--six-1.14.0.tar.gz
==> Cloning https://github.com/MTG/essentia.git
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
Submodule 'test/audio' (https://github.com/MTG/essentia-audio) registered for path 'test/audio'
Submodule 'test/models' (https://github.com/MTG/essentia-models) registered for path 'test/models'
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git/test/audio'...
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git/test/models'...
Submodule path 'test/audio': checked out '89df8e4d6fb306db6d2e14b6de6357aacda43b10'
git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
fatal: Unable to checkout '3ca4130bcb398a1361867e5d8462d3a7a0c02ccd' in submodule path 'test/models'
Error: essentia: Failed to download resource "essentia"
Failure while executing; `/usr/bin/env git submodule update --init --recursive` exited with 128. Here's the output:
Submodule 'test/audio' (https://github.com/MTG/essentia-audio) registered for path 'test/audio'
Submodule 'test/models' (https://github.com/MTG/essentia-models) registered for path 'test/models'
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git/test/audio'...
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git/test/models'...
Submodule path 'test/audio': checked out '89df8e4d6fb306db6d2e14b6de6357aacda43b10'
git-lfs filter-process: git-lfs: command not found
fatal: the remote end hung up unexpectedly
fatal: Unable to checkout '3ca4130bcb398a1361867e5d8462d3a7a0c02ccd' in submodule path 'test/models'
$ which git-lfs
/opt/homebrew/bin/git-lfs
One more little trick to make sure git-lfs
gets recognized:
ln -s "$(which git-lfs)" "$(git --exec-path)/git-lfs"
With that, installation proceeds but it says that your repo is over its data quota!
womp womp
$ rm -rf /Users/shawley/Library/Caches/Homebrew/essentia--git
$ brew install essentia --HEAD
==> Fetching mtg/essentia/essentia
==> Downloading https://files.pythonhosted.org/packages/21/9f/b251f7f8a76dec1d6651be194dfba8fb8d7781d10ab3987190de8391d08e/six-1.14.0.ta
Already downloaded: /Users/shawley/Library/Caches/Homebrew/downloads/22c9c7a937f5bb39678fed6ea3266190990eedb811f541ddc6b35ae42dc0e2e9--six-1.14.0.tar.gz
==> Cloning https://github.com/MTG/essentia.git
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
Submodule 'test/audio' (https://github.com/MTG/essentia-audio) registered for path 'test/audio'
Submodule 'test/models' (https://github.com/MTG/essentia-models) registered for path 'test/models'
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git/test/audio'...
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git/test/models'...
Submodule path 'test/audio': checked out '89df8e4d6fb306db6d2e14b6de6357aacda43b10'
Downloading maest/discogs-maest-10s-pw-1.pb (347 MB)
Error downloading object: maest/discogs-maest-10s-pw-1.pb (d45bbbe):
Smudge error: Error downloading maest/discogs-maest-10s-pw-1.pb (d45bbbedd67ca8fb113ef1a55159fb6bb5a006e7d503843a3dd9629098562f0f):
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
Errors logged to '/Users/shawley/Library/Caches/Homebrew/essentia--git/.git/modules/test/models/lfs/logs/20240117T194546.535835.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: maest/discogs-maest-10s-pw-1.pb: smudge filter lfs failed
fatal: Unable to checkout '3ca4130bcb398a1361867e5d8462d3a7a0c02ccd' in submodule path 'test/models'
Error: essentia: Failed to download resource "essentia"
Failure while executing; `/usr/bin/env git submodule update --init --recursive` exited with 128. Here's the output:
Submodule 'test/audio' (https://github.com/MTG/essentia-audio) registered for path 'test/audio'
Submodule 'test/models' (https://github.com/MTG/essentia-models) registered for path 'test/models'
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git/test/audio'...
Cloning into '/Users/shawley/Library/Caches/Homebrew/essentia--git/test/models'...
Submodule path 'test/audio': checked out '89df8e4d6fb306db6d2e14b6de6357aacda43b10'
Downloading maest/discogs-maest-10s-pw-1.pb (347 MB)
Error downloading object: maest/discogs-maest-10s-pw-1.pb (d45bbbe): Smudge error: Error downloading maest/discogs-maest-10s-pw-1.pb (d45bbbedd67ca8fb113ef1a55159fb6bb5a006e7d503843a3dd9629098562f0f): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
Errors logged to '/Users/shawley/Library/Caches/Homebrew/essentia--git/.git/modules/test/models/lfs/logs/20240117T194546.535835.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: maest/discogs-maest-10s-pw-1.pb: smudge filter lfs failed
fatal: Unable to checkout '3ca4130bcb398a1361867e5d8462d3a7a0c02ccd' in submodule path 'test/models'
:-(
@drscotthawley , Any luck with this ?
I had to update the python version in /opt/homebrew/opt/python@3.9
- the homebrew installation expects it to be executable at python3
but the executable in the folder is python3.9
. I might create a PR to try and fix this.
I fixed the build issue by adding a new symlink to the python3-binary:
cd /opt/homebrew/opt/python@3.9/bin
ln -s ../Frameworks/Python.framework/Versions/3.9/bin/python3.9 python3
After that I was able to install the formula.
Usage: /opt/homebrew/bin/essentia_streaming_extractor_music input_audiofile output_textfile [profile]
Music extractor version 'music 2.0'
built with Essentia version v2.1_beta5-1174-gcdc77005-dirty
This software uses code of Libav (https://libav.org) licensed under the
LGPLv2.1 (see: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)
The issue is also fixed in #36.
This seems to be that Issue https://github.com/MTG/homebrew-essentia/issues/12 which was closed in 2018, needs to be reopened.
After installing the tap: