MahmoudAshraf97 / whisper-diarization

Automatic Speech Recognition with Speaker Diarization based on OpenAI Whisper
BSD 2-Clause "Simplified" License
2.53k stars 243 forks source link

Problem with a "Hydra" package ? #83

Open MaximeDde opened 11 months ago

MaximeDde commented 11 months ago

Hi, and thank you for the amazing work, I really hope I can make it functional to start building with it!
I have had a lot of trouble with the dependancies, version of Python and all, but finally managed to get through with the install requirements. Although, when executing diarize.py, it seems a 'hydra' module is missing. When trying to install hydra with pip3, here's the error I get :

Collecting hydra
  Using cached Hydra-2.5.tar.gz (82 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: hydra
  Building wheel for hydra (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-13-arm64-cpython-311
      copying src/hydra.py -> build/lib.macosx-13-arm64-cpython-311
      running build_ext
      building '_hydra' extension
      creating build/temp.macosx-13-arm64-cpython-311
      creating build/temp.macosx-13-arm64-cpython-311/src
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/include/python3.11/ -I/private/var/folders/pw/7n0q28ds10q2lkyj4rpsm8x40000gn/T/pip-install-hu2k4gf6/hydra_0b7f58ef40a34bdc986d1d514895197d/src "-I/Users/nihaal/AutoScript v2/venv/include" -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/MurmurHash3.c -o build/temp.macosx-13-arm64-cpython-311/src/MurmurHash3.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -I/opt/homebrew/Cellar/python@3.11/3.11.5/Frameworks/Python.framework/Versions/3.11/include/python3.11/ -I/private/var/folders/pw/7n0q28ds10q2lkyj4rpsm8x40000gn/T/pip-install-hu2k4gf6/hydra_0b7f58ef40a34bdc986d1d514895197d/src "-I/Users/nihaal/AutoScript v2/venv/include" -I/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/_hydra.c -o build/temp.macosx-13-arm64-cpython-311/src/_hydra.o -std=gnu99 -O2 -D_LARGEFILE64_SOURCE
      src/_hydra.c:61:12: fatal error: 'longintrepr.h' file not found
        #include "longintrepr.h"
                 ^~~~~~~~~~~~~~~
      1 error generated.
      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 hydra
  Running setup.py clean for hydra
Failed to build hydra
ERROR: Could not build wheels for hydra, which is required to install pyproject.toml-based projects

And I can't for the life of me find a way to make it work... Could you help me out ? :/

MahmoudAshraf97 commented 11 months ago

Python 3.11 isnt confirmed to work with the current requirements, so downgrade to a lower version

MaximeDde commented 11 months ago

Thanks for the hint ! Any version recommended ?

MahmoudAshraf97 commented 11 months ago

3.8-3.10 are fine

MaximeDde commented 11 months ago

Well, still doesn't work with my 3.9.6... I'll try uninstalling / reinstalling the whole thing, y'never know I guess. Any chance the fact I'm running on a M1 might make a difference ?

bmstellm commented 1 week ago

3.8-3.10 are fine

Seems to me, that ONLY 3.8 is working due to the error message I receive with 3.10:

"error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’"

MahmoudAshraf97 commented 1 week ago

This project is developed on 3.10, so it's guaranteed to work with 3.10, please share the whole traceback so we can help

bmstellm commented 1 week ago

Forget about it, it was the Hydra vs hydra-core issue :(