VOOZH about

URL: https://aur.archlinux.org/packages/audio-offset-finder-git

⇱ AUR (en) - audio-offset-finder-git


Arch Linux User Repository

Search Criteria

Package Details: audio-offset-finder-git 0.5.5.r195.20240626.a99f981-2

Git Clone URL: https://aur.archlinux.org/audio-offset-finder-git.git (read-only, click to copy)
Package Base: audio-offset-finder-git
Description: A simple tool for finding the offset of an audio file within another file.
Upstream URL: https://github.com/bbc/audio-offset-finder
Licenses: Apache-2.0
Conflicts: audio-offset-finder
Provides: audio-offset-finder
Submitter: dreieck
Maintainer: dreieck
Last Packager: dreieck
Votes: 1
Popularity: 0.000000
First Submitted: 2023-02-06 16:09 (UTC)
Last Updated: 2025-01-11 12:25 (UTC)

Required by (0)

Sources (1)

Pinned Comments

Latest Comments

1 2 Next › Last »

dreieck commented on 2023-05-05 18:58 (UTC)

I am disowning since this makes too many headaches I can not really fix.

dreieck commented on 2023-05-05 18:57 (UTC)

Now, the packe is differently broken:

When I start, it complains with

Traceback (most recent call last):
 File "/usr/bin/audio-offset-finder", line 5, in <module>
 from audio_offset_finder.audio_offset_finder import main
ImportError: cannot import name 'main' from 'audio_offset_finder.audio_offset_finder' (/usr/lib/python3.11/site-packages/audio_offset_finder/audio_offset_finder.py)

→ it wants to import something from itself that does not exist.

Also, check() currently fails with ModuleNotFoundError: No module named 'soxr', so I have commented it out:

 --> running 'nosetests' ...
E...EE
======================================================================
ERROR: tests.audio_offset_finder_test.test_find_offset_between_files
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest
 self.test(*self.arg)
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/tests/audio_offset_finder_test.py", line 32, in test_find_offset_between_files
 results = find_offset_between_files(path("timbl_1.mp3"), path("timbl_2.mp3"), hop_length=160, trim=35)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 85, in find_offset_between_files
 offset_dict = find_offset_between_buffers(a1, a2, fs, hop_length, win_length, nfft)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 129, in find_offset_between_buffers
 mfcc1 = mfcc(buffer1, win_length=win_length, nfft=nfft, fs=fs, hop_length=hop_length, numcep=26)[0]
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 36, in mfcc
 librosa.feature.mfcc(y=audio, sr=fs, n_fft=nfft, win_length=win_length, hop_length=hop_length, n_mfcc=numcep)
 ^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/site-packages/lazy_loader/__init__.py", line 76, in __getattr__
 submod = importlib.import_module(submod_path)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
 return _bootstrap._gcd_import(name[level:], package, level)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
 File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
 File "<frozen importlib._bootstrap_external>", line 940, in exec_module
 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
 File "/usr/lib/python3.11/site-packages/librosa/feature/spectral.py", line 15, in <module>
 from ..core.audio import zero_crossings
 File "/usr/lib/python3.11/site-packages/librosa/core/audio.py", line 14, in <module>
 import soxr
ModuleNotFoundError: No module named 'soxr'

======================================================================
ERROR: tests.tool_test.test_tool
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest
 self.test(*self.arg)
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/tests/tool_test.py", line 65, in test_tool
 tool.main(args1.split())
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/bin/audio-offset-finder", line 56, in main
 results = find_offset_between_files(
 ^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 85, in find_offset_between_files
 offset_dict = find_offset_between_buffers(a1, a2, fs, hop_length, win_length, nfft)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 129, in find_offset_between_buffers
 mfcc1 = mfcc(buffer1, win_length=win_length, nfft=nfft, fs=fs, hop_length=hop_length, numcep=26)[0]
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 36, in mfcc
 librosa.feature.mfcc(y=audio, sr=fs, n_fft=nfft, win_length=win_length, hop_length=hop_length, n_mfcc=numcep)
 ^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/site-packages/lazy_loader/__init__.py", line 76, in __getattr__
 submod = importlib.import_module(submod_path)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
 return _bootstrap._gcd_import(name[level:], package, level)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
 File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
 File "<frozen importlib._bootstrap_external>", line 940, in exec_module
 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
 File "/usr/lib/python3.11/site-packages/librosa/feature/spectral.py", line 15, in <module>
 from ..core.audio import zero_crossings
 File "/usr/lib/python3.11/site-packages/librosa/core/audio.py", line 14, in <module>
 import soxr
ModuleNotFoundError: No module named 'soxr'

======================================================================
ERROR: tests.tool_test.test_json
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/usr/lib/python3.11/site-packages/nose/case.py", line 197, in runTest
 self.test(*self.arg)
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/tests/tool_test.py", line 91, in test_json
 tool.main(args.split())
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/bin/audio-offset-finder", line 56, in main
 results = find_offset_between_files(
 ^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 85, in find_offset_between_files
 offset_dict = find_offset_between_buffers(a1, a2, fs, hop_length, win_length, nfft)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 129, in find_offset_between_buffers
 mfcc1 = mfcc(buffer1, win_length=win_length, nfft=nfft, fs=fs, hop_length=hop_length, numcep=26)[0]
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/tmp/makepkg/build/audio-offset-finder-git/src/audio-offset-finder/audio_offset_finder/audio_offset_finder.py", line 36, in mfcc
 librosa.feature.mfcc(y=audio, sr=fs, n_fft=nfft, win_length=win_length, hop_length=hop_length, n_mfcc=numcep)
 ^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/site-packages/lazy_loader/__init__.py", line 76, in __getattr__
 submod = importlib.import_module(submod_path)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
 return _bootstrap._gcd_import(name[level:], package, level)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
 File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
 File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
 File "<frozen importlib._bootstrap_external>", line 940, in exec_module
 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
 File "/usr/lib/python3.11/site-packages/librosa/feature/spectral.py", line 15, in <module>
 from ..core.audio import zero_crossings
 File "/usr/lib/python3.11/site-packages/librosa/core/audio.py", line 14, in <module>
 import soxr
ModuleNotFoundError: No module named 'soxr'

----------------------------------------------------------------------
Ran 6 tests in 4.989s

FAILED (errors=3)

dreieck commented on 2023-02-06 16:12 (UTC) (edited on 2023-02-06 16:28 (UTC) by dreieck)

When running audio-offset-finder, an error occurs when stuff is imported from python-numba:

[...]
 File "/usr/lib/python3.10/site-packages/numba/np/ufunc/decorators.py", line 3, in <module>
 from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception

It seems to be because up to date python-numba is not compatible with up to date python-numpy, see ↗ this upstram issue report.

Workaround is to explicitly install python-numba-git instead of python-numba, until upstream/ package maintanance fixes the issue.

1 2 Next › Last »

aurweb v6.3.4

Report issues here.

Copyright © 2004-2026 aurweb Development Team.

AUR packages are user produced content. Any use of the provided files is at your own risk.