Skip to content

Cannot install pd-aubio on Windows 11 #403

@de-tre

Description

@de-tre

Hello, I am new to all of this, so sorry if I'm totally missing something. Could not find a solution thus far, however.

I'm trying to install pb-aubio on my Windows machine for the onset object.
According to this page, I need to have aubio installed first. Which is where I am struggling right now.

On Stackoverflow, I was able to find an issue that goes in the same direction. The last answer said that it should now install correctly on Windows, using pip. I have Python installed on my machine and installed a bunch of libraries before, using Anaconda and pip without a problem.

So when I enter $ pip install aubio as recommended on that last answer, I get this error log:

(base) C:\Users\xxxxx>pip install aubio
Collecting aubio
  Using cached aubio-0.4.9.tar.gz (479 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\xxxxx\anaconda3\lib\site-packages (from aubio) (1.26.4)
Building wheels for collected packages: aubio
  Building wheel for aubio (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [42 lines of output]
      C:\Users\xxxxx\anaconda3\Lib\site-packages\setuptools\__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************

      !!
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\cmd.py -> build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\cut.py -> build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\midiconv.py -> build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\slicing.py -> build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\__init__.py -> build\lib.win-amd64-cpython-311\aubio
      running build_ext
      checking for aubio = 0.4.9
      Running "pkg-config --libs --cflags aubio = 0.4.9" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      Info: aubio 0.4.9 was not found by pkg-config
      Info: looking for *optional* additional packages
      checking for libavcodec
      Running "pkg-config --libs --cflags libavcodec" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for libavformat
      Running "pkg-config --libs --cflags libavformat" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for libavutil
      Running "pkg-config --libs --cflags libavutil" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for libswresample
      Running "pkg-config --libs --cflags libswresample" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for libavresample
      Running "pkg-config --libs --cflags libavresample" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for sndfile
      Running "pkg-config --libs --cflags sndfile" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for samplerate
      Running "pkg-config --libs --cflags samplerate" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      Info: libaubio was not installed or built locally with waf, adding src/
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

Looking at this note from the output:

Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try pip install --use-pep517

I tried just that with aubio. It took a little longer, but failed eventually as well.
This is the output I encountered:

(base) C:\Users\xxxxx>pip install aubio --use-pep517
Collecting aubio
  Using cached aubio-0.4.9.tar.gz (479 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\xxxxx\anaconda3\lib\site-packages (from aubio) (1.26.4)
Building wheels for collected packages: aubio
  Building wheel for aubio (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for aubio (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\cmd.py -> build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\cut.py -> build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\midiconv.py -> build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\slicing.py -> build\lib.win-amd64-cpython-311\aubio
      copying python\lib\aubio\__init__.py -> build\lib.win-amd64-cpython-311\aubio
      running build_ext
      checking for aubio = 0.4.9
      Running "pkg-config --libs --cflags aubio = 0.4.9" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      Info: aubio 0.4.9 was not found by pkg-config
      Info: looking for *optional* additional packages
      checking for libavcodec
      Running "pkg-config --libs --cflags libavcodec" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for libavformat
      Running "pkg-config --libs --cflags libavformat" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for libavutil
      Running "pkg-config --libs --cflags libavutil" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for libswresample
      Running "pkg-config --libs --cflags libswresample" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for libavresample
      Running "pkg-config --libs --cflags libavresample" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for sndfile
      Running "pkg-config --libs --cflags sndfile" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      checking for samplerate
      Running "pkg-config --libs --cflags samplerate" failed: FileNotFoundError(2, 'Das System kann die angegebene Datei nicht finden', None, 2, None)
      Info: libaubio was not installed or built locally with waf, adding src/
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for aubio
Failed to build aubio
ERROR: Could not build wheels for aubio, which is required to install pyproject.toml-based projects

So that's where I'm left scratching my head. As got recommended in the Stackoverflow reply in this case, I hereby open a new issue.
What can I try now? Any help is much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions