Skip to content

Install failed on MacOS 26 #4

@arjmandi

Description

@arjmandi

got the following during installation

uv pip install maivi                                          
Resolved 188 packages in 3.33s
      Built antlr4-python3-runtime==4.9.3
      Built sox==1.5.0
      Built intervaltree==3.1.0
      Built docopt==0.6.2
      Built wget==3.2
      Built kaldi-python-io==1.2.2
  × Failed to build `pyaudio==0.2.14`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)

      [stdout]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-11.0-arm64-cpython-310/pyaudio
      copying src/pyaudio/__init__.py -> build/lib.macosx-11.0-arm64-cpython-310/pyaudio
      running build_ext
      building 'pyaudio._portaudio' extension
      creating build/temp.macosx-11.0-arm64-cpython-310/src/pyaudio
      cc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv
      -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness
      -Wno-expansion-to-defined -Wno-undef-prefix -fPIC -DMACOS=1 -I/usr/local/include -I/usr/include
      -I/opt/homebrew/include -I~/.cache/uv/builds-v0/.tmp0HvTm2/include
      -I~/local/share/uv/python/cpython-3.10.18-macos-aarch64-none/include/python3.10 -c
      src/pyaudio/device_api.c -o build/temp.macosx-11.0-arm64-cpython-310/src/pyaudio/device_api.o

      [stderr]
      /Users/mohsenarjmandi/.cache/uv/builds-v0/.tmp0HvTm2/lib/python3.10/site-packages/setuptools/dist.py:759:
      SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: MIT License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      src/pyaudio/device_api.c:9:10: fatal error: 'portaudio.h' file not found
          9 | #include "portaudio.h"
            |          ^~~~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/cc' failed with exit code 1

      hint: This error likely indicates that you need to install a library that provides "portaudio.h" for
      `pyaudio@0.2.14`
  help: `pyaudio` (v0.2.14) was included because `maivi` (v0.3.0) depends on `pyaudio`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions