googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.21k stars 725 forks source link

Trouble using pyannote.audio #3551

Closed carloshalviarez1995 closed 1 year ago

carloshalviarez1995 commented 1 year ago

Hi, guys! I'm facing dificulties trying to install and import pyannote audio in googe colab. I install like this

!pip install openai-whisper
!pip install torch
!pip install pyannote.audio

Then when I'm trying to import pyannote.audio i get this message:

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
[<ipython-input-19-96db39072fb0>](https://localhost:8080/#) in <cell line: 7>()
      5 
      6 import torch
----> 7 import pyannote.audio
      8 
      9 from pyannote.audio.pipelines.speaker_verification import PretrainedSpeakerEmbedding

7 frames
[/usr/lib/python3.9/ctypes/__init__.py](https://localhost:8080/#) in __init__(self, name, mode, handle, use_errno, use_last_error, winmode)
    372 
    373         if handle is None:
--> 374             self._handle = _dlopen(self._name, mode)
    375         else:
    376             self._handle = handle

OSError: libtorch_cuda_cpp.so: cannot open shared object file: No such file or directory

I've been trying a lot!! However I couldn't find the problem! Can you help me please?

mayankmalik-colab commented 1 year ago

It seems like pyannote.audio only supports python 3.8 officially. We are already on python 3.9. I would recommend to file an issue upstream.