Package Details: python-rtmixer 0.1.7-2

Git Clone URL: https://aur.archlinux.org/python-rtmixer.git (read-only, click to copy)
Package Base: python-rtmixer
Description: Reliable low-latency audio playback and recording with Python
Upstream URL: https://github.com/spatialaudio/python-rtmixer
Licenses: MIT
Submitter: robertfoster
Maintainer: robertfoster
Last Packager: robertfoster
Votes: 5
Popularity: 0.000010
First Submitted: 2019-12-10 19:54 (UTC)
Last Updated: 2024-10-04 12:18 (UTC)

Latest Comments

1 2 Next › Last »

MaximGun commented on 2026-01-31 17:12 (UTC) (edited on 2026-01-31 17:16 (UTC) by MaximGun)

This package has a number of issues.

It pulls git HEAD but sets pkgver=0.1.7. Either pin to the release tag, e.g, #tag=${pkgver}, or rename to python-rtmixer-git and do proper VCS versioning.

arch=(any) is wrong (build produces arch-specific artifacts via CFFI). Use real arches.

git and python-sounddevice dependencies are missing, and runtime deps are in the wrong place. Suggested:

depends=(python portaudio python-cffi python-pa-ringbuffer python-sounddevice)
makedepends=(git python-build python-installer python-setuptools python-wheel)

es20490446e commented on 2026-01-12 12:57 (UTC)

PatchMissingInclude () {    
    if grep --quiet "stdbool.h" "src/rtmixer.c"; then
        echo "No longer needed: ${FUNCNAME[0]}" >&2
        false
    else
        sed "6a#include <stdbool.h>" --in-place "src/rtmixer.c"
    fi
}

es20490446e commented on 2026-01-12 12:49 (UTC)

Fails to build: Missing include: stdbool.h https://github.com/spatialaudio/python-rtmixer/issues/69

Lafe commented on 2026-01-11 04:35 (UTC)

On 2026-01-10 Rosslaew's recommendation worked for me as well.

simona commented on 2025-12-25 20:26 (UTC)

same error

Marek72 commented on 2025-12-25 20:12 (UTC)

i got this error:

ERROR Backend subprocess exited when trying to invoke build_wheel
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...
Fehler: ‚python-rtmixer-0.1.7-2‘ konnte nicht erstellt werden: 
Fehler: Pakete konnten nicht erstellt werden: python-rtmixer-0.1.7-2

Rosslaew commented on 2025-05-16 08:48 (UTC) (edited on 2025-05-16 08:49 (UTC) by Rosslaew)

For a manual intervention I managed to install the package by adding this fix at the end of the prepare() step: sed -i "6a#include <stdbool.h>" src/rtmixer.c

simona commented on 2025-03-20 19:02 (UTC)


running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-313
copying src/rtmixer.py -> build/lib.linux-x86_64-cpython-313
running build_ext
generating cffi module 'build/temp.linux-x86_64-cpython-313/_rtmixer.c'
creating build/temp.linux-x86_64-cpython-313
building '_rtmixer' extension
creating build/temp.linux-x86_64-cpython-313/build/temp.linux-x86_64-cpython-313
creating build/temp.linux-x86_64-cpython-313/portaudio/src/common
gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -Isrc -Iportaudio/include -I/usr/include/python3.13 -c build/temp.linux-x86_64-cpython-313/_rtmixer.c -o build/temp.linux-x86_64-cpython-313/build/temp.linux-x86_64-cpython-313/_rtmixer.o --std=c99
build/temp.linux-x86_64-cpython-313/_rtmixer.c: In function ‘get_relevant_time’:
build/temp.linux-x86_64-cpython-313/_rtmixer.c:615:13: error: ‘false’ undeclared (first use in this function)
615 |   }} while (false)
|             ^~~~~
build/temp.linux-x86_64-cpython-313/_rtmixer.c:702:5: note: in expansion of macro ‘CALLBACK_ASSERT’
702 |     CALLBACK_ASSERT(action->action);
|     ^~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-313/_rtmixer.c:604:1: note: ‘false’ is defined in header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
603 | #include "rtmixer.h"
+++ |+#include <stdbool.h>
604 |
build/temp.linux-x86_64-cpython-313/_rtmixer.c:615:13: note: each undeclared identifier is reported only once for each functionit appears in
615 |   }} while (false)
|             ^~~~~
build/temp.linux-x86_64-cpython-313/_rtmixer.c:702:5: note: in expansion of macro ‘CALLBACK_ASSERT’
702 |     CALLBACK_ASSERT(action->action);
|     ^~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-313/_rtmixer.c: In function ‘callback’:
build/temp.linux-x86_64-cpython-313/_rtmixer.c:615:13: error: ‘false’ undeclared (first use in this function)
615 |   }} while (false)
|             ^~~~~
build/temp.linux-x86_64-cpython-313/_rtmixer.c:724:3: note: in expansion of macro ‘CALLBACK_ASSERT’
724 |   CALLBACK_ASSERT(state);
|   ^~~~~~~~~~~~~~~
build/temp.linux-x86_64-cpython-313/_rtmixer.c:615:13: note: ‘false’ is defined in header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
615 |   }} while (false)
|             ^~~~~
build/temp.linux-x86_64-cpython-313/_rtmixer.c:724:3: note: in expansion of macro ‘CALLBACK_ASSERT’
724 |   CALLBACK_ASSERT(state);
|   ^~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1

ERROR Backend subprocess exited when trying to invoke build_wheel

drws commented on 2024-10-04 15:12 (UTC)

@Stroopwafel: thank you for the explanation and the python-rtmixer-git package.

@T-vK: You could try to extract the portaudio source to the path where it is expected instead of modifying flags.

Stroopwafel commented on 2024-08-10 18:01 (UTC) (edited on 2024-08-10 18:02 (UTC) by Stroopwafel)

The reason it cannot find pa_ringbuffer.c is because portaudio is a submodule of the project. Submodules don't get included in the source code archive in Github.

The way I got around it is by changing the PKGBUILD to be essentially a -git package. Following the AUR guidelines, I've attached a pastebin https://pastebin.com/GPiWCzQT

I don't know how to compute the checksum, so (while it is generally a very bad idea) I installed using --skipchecksums