facebookresearch / demucs

Code for the paper Hybrid Spectrogram and Waveform Source Separation
MIT License
8.34k stars 1.06k forks source link

ERROR: Failed building wheel for diffq - in ventura - mac mini M2 pro - Python 3.11.3 (from installer) #480

Open owfrappier opened 1 year ago

owfrappier commented 1 year ago

🐛 Bug Report

ERROR: Failed building wheel for diffq - in ventura - mac mini M2 pro - Python 3.11.3 (from installer)

To Reproduce

  1. install 3.11 python official package
  2. python3.11 -m pip install -U demucs
  3. error log :

    running build_ext building 'diffq.bitpack' extension creating build/temp.macosx-10.9-universal2-cpython-311 clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c bitpack.c -o build/temp.macosx-10.9-universal2-cpython-311/bitpack.o clang: error: no such file or directory: 'bitpack.c' clang: error: no input files error: command '/usr/bin/clang' failed with exit code 1 [end of output]

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

owfrappier commented 1 year ago

one soluce i've found is to install after PYTHON official universal 3.11, Miniforge 3 and follow instructions here :

https://betterprogramming.pub/how-to-install-pytorch-on-apple-m1-series-512b3ad9bc6

and after : pip install -U demucs

adefossez commented 1 year ago

I think I'm going to make diffq an optional dependency. Requiring compilation is a bit of a burden for newer Macs and the new models are not longer quantized. Adding that to my todo.

Louis-AC commented 1 year ago

Same issue on Windows :

building 'diffq.bitpack' extension error: Microsoft Visual C++ 14.0 or greater is required. ERROR: Failed building wheel for diffq

VC 14 is installed, I've reinstalled it just in case and it still shows the error. This really makes me scratch my head.