juanmc2005 / diart

A python package to build AI-powered real-time audio applications
https://diart.readthedocs.io
MIT License
1.02k stars 87 forks source link

Issue installing diart on Mac M1 due to hmmlearn error #162

Closed Farissoliman closed 12 months ago

Farissoliman commented 1 year ago

Trying to install diart on my Macbook Pro M1, however when I try to install using pip install diart, I get this error:

Building wheels for collected packages: hmmlearn
  Building wheel for hmmlearn (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [121 lines of output]

followed by

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

I'd imagine this error is due to the Mac M1 architecture and I'm guessing there may be a compatibility issue since the error occurs when it tries to build wheels for the package. Does anyone know of any work arounds for this or other packages that could be used as a substitute by chance?

juanmc2005 commented 1 year ago

Hi @Farissoliman, thank you for reporting this problem. Does it produce the same error when you install pyannote separately? This dependency is actually on pyannote's side, it's not required by diart per se.

ahmedmoorsy commented 1 year ago

I sloved it by using these commands:

juanmc2005 commented 1 year ago

So is this a problem with an old version of hmmlearn? Might be worth opening an issue in pyannote.audio (cc @hbredin)