Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in creating symlink in Win11 #8

Open
dgoryeo opened this issue Jan 22, 2024 · 1 comment
Open

Error in creating symlink in Win11 #8

dgoryeo opened this issue Jan 22, 2024 · 1 comment

Comments

@dgoryeo
Copy link

dgoryeo commented Jan 22, 2024

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'



@NavodPeiris
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants