Package Details: python-soxr 0.3.7-4

Git Clone URL: https://aur.archlinux.org/python-soxr.git (read-only, click to copy)
Package Base: python-soxr
Description: High quality, one-dimensional sample-rate conversion library for Python
Upstream URL: https://github.com/dofuuz/python-soxr
Licenses: LGPL-2.1-or-later
Submitter: Auerhuhn
Maintainer: Auerhuhn
Last Packager: Auerhuhn
Votes: 2
Popularity: 0.38
First Submitted: 2023-06-02 20:23 (UTC)
Last Updated: 2024-07-16 07:51 (UTC)

Latest Comments

Auerhuhn commented on 2024-07-16 07:59 (UTC)

Hi @dreieck,

thanks for the report. The upstream v0.3.7 doesn’t support Numpy v2.x, so rebuilding doesn’t help.

Installing python-numpy1 should fix the issue.

I just bumped the PKGBUILD to prevent this package to be installed alongside NumPy 2.

Once a stable upstream v0.4.x comes out, I’ll bump the PKGBUILD and reset the depends entry. (The current 0.4.0b1 is an upstream pre-release and thus can’t be on the AUR according to the guidelines.)

dreieck commented on 2024-07-16 06:18 (UTC)

Please increment $pkgrel to trigger a rebuild on user's machines who run AUR package update detection.

Rebuild is needed, otherwise the following kind of failures arise with python-numpy 2.x:

 --> running 'nosetests' ...

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/usr/bin/nosetests", line 8, in <module>
    sys.exit(run_exit())
  File "/usr/lib/python3.12/site-packages/nose/core.py", line 118, in __init__
    unittest.TestProgram.__init__(
  File "/usr/lib/python3.12/unittest/main.py", line 105, in __init__
    self.runTests()
  File "/usr/lib/python3.12/site-packages/nose/core.py", line 207, in runTests
    result = self.testRunner.run(self.test)
  File "/usr/lib/python3.12/site-packages/nose/core.py", line 62, in run
    test(result)
  File "/usr/lib/python3.12/site-packages/nose/suite.py", line 177, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python3.12/site-packages/nose/suite.py", line 224, in run
    test(orig)
  File "/usr/lib/python3.12/unittest/suite.py", line 84, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.12/site-packages/nose/suite.py", line 75, in run
    test(result)
  File "/usr/lib/python3.12/site-packages/nose/suite.py", line 177, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python3.12/site-packages/nose/suite.py", line 224, in run
    test(orig)
  File "/usr/lib/python3.12/site-packages/nose/suite.py", line 177, in __call__
    return self.run(*arg, **kw)
  File "/usr/lib/python3.12/site-packages/nose/suite.py", line 224, in run
    test(orig)
  File "/usr/lib/python3.12/site-packages/nose/case.py", line 45, in __call__
    return self.run(*arg, **kwarg)
  File "/usr/lib/python3.12/site-packages/nose/case.py", line 133, in run
    self.runTest(result)
  File "/usr/lib/python3.12/site-packages/nose/case.py", line 155, in runTest
    test(result)
  File "/usr/lib/python3.12/unittest/case.py", line 690, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python3.12/unittest/case.py", line 634, in run
    self._callTestMethod(testMethod)
  File "/usr/lib/python3.12/unittest/case.py", line 589, in _callTestMethod
    if method() is not None:
  File "/usr/lib/python3.12/site-packages/nose/case.py", line 201, in runTest
    self.test(*self.arg)
  File "/var/cache/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 "/var/cache/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 "/var/cache/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 "/var/cache/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.12/site-packages/lazy_loader/__init__.py", line 82, in __getattr__
    submod = importlib.import_module(submod_path)
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.12/site-packages/librosa/feature/spectral.py", line 15, in <module>
    from ..core.audio import zero_crossings
  File "/usr/lib/python3.12/site-packages/librosa/core/audio.py", line 15, in <module>
    import soxr
  File "/usr/lib/python3.12/site-packages/soxr/__init__.py", line 10, in <module>
    from . import cysoxr
E...

Regards!

ISSOtm commented on 2024-06-28 11:26 (UTC)

Fair enough! Thank you very much :)

Auerhuhn commented on 2024-06-28 11:24 (UTC)

@ISSOtm Thanks for the suggestion but the upstream project declares oldest-supported-numpy as a build-time dependency as of the latest stable release.

If I left that out or replaced it with numpy, the build step would fail due to the missing dependency.

The upstream project has since removed that dependency. So I guess it makes sense to leave the dependency in until the upcoming 0.4.0 release, which is currently in beta.

ISSOtm commented on 2024-06-28 11:13 (UTC)

python-oldest-supported-numpy is now essentially an alias for python-numpy (the AUR package depends on python-numpy, not a specific version of it).

It would be nice to remove that dependency, to have one less package on the system.

Auerhuhn commented on 2024-04-28 20:56 (UTC)

@SpotlightKid You’re right, thanks for the pointer! Updated.

SpotlightKid commented on 2024-04-28 20:50 (UTC) (edited on 2024-04-28 20:53 (UTC) by SpotlightKid)

According to the project's readme, the license should be 'LGPL-2.1-or-later':

https://github.com/dofuuz/python-soxr?tab=readme-ov-file#credit-and-license

Auerhuhn commented on 2023-07-20 08:31 (UTC)

@MarsSeed Good catch, thank you! Updated.

MarsSeed commented on 2023-07-20 00:10 (UTC) (edited on 2023-07-20 00:41 (UTC) by MarsSeed)

Repo's cython is now at version 3.0.0. Please make this package depend on that one instead of AUR's cython3, which was made redundant by the current repo release and is pending deletion.