speechlib icon indicating copy to clipboard operation
speechlib copied to clipboard

Error in creating symlink in Win11

Open dgoryeo opened this issue 2 years ago • 1 comments

I get the following error while trying to run in Win11 python 3.10.13 environment. It appears that a symbolic link is failing. Any idea how to resolve it? I haven't tried with admin priviledges (it is a bit difficult for me to setup the entire pythin environment under admin).



    from speechlib import Transcriptor
    from .speechlib import(
  File "C:\Users\U\.conda\envs\whisper\lib\site-packages\speechlib\speechlib.py", line 1, in <module>
    from .core_analysis import (core_analysis)
  File "C:\Users\U\.conda\envs\whisper\lib\site-packages\speechlib\core_analysis.py", line 7, in <module>
    from .speaker_recognition import (speaker_recognition)
  File "C:\Users\U\.conda\envs\whisper\lib\site-packages\speechlib\speaker_recognition.py", line 8, in <module>
    verification = SpeakerRecognition.from_hparams(run_opts={"device":"cuda"}, source="speechbrain/spkrec-ecapa-voxceleb", savedir="pretrained_models/spkrec-ecapa-voxceleb")
  File "C:\Users\U\.conda\envs\whisper\lib\site-packages\speechbrain\pretrained\interfaces.py", line 467, in from_hparams
    hparams_local_path = fetch(
  File "C:\Users\U\.conda\envs\whisper\lib\site-packages\speechbrain\pretrained\fetching.py", line 181, in fetch
    destination.symlink_to(sourcepath)
  File "C:\Users\U\.conda\envs\whisper\lib\pathlib.py", line 1255, in symlink_to
    self._accessor.symlink(target, self, target_is_directory)
OSError: [WinError 1314] A required privilege is not held by the client: 'C:\\Users\\U\\.cache\\huggingface\\hub\\models--speechbrain--spkrec-ecapa-voxceleb\\snapshots\\5c0be3875fda05e81f3c004ed8c7c06be308de1e\\hyperparams.yaml' -> 'pretrained_models\\spkrec-ecapa-voxceleb\\hyperparams.yaml'



dgoryeo avatar Jan 22 '24 17:01 dgoryeo

if you are using vscode or any other IDE, you have to run IDE as administrator. Then this will be solved. let me know if it solves the issue or not.

NavodPeiris avatar Jan 22 '24 17:01 NavodPeiris