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

"Permission denied" #197

Open
UberStorm opened this issue Jun 24, 2024 · 6 comments
Open

"Permission denied" #197

UberStorm opened this issue Jun 24, 2024 · 6 comments

Comments

@UberStorm
Copy link

UberStorm commented Jun 24, 2024

I ran diarize_parallel on a wav file, and I get the following error:

Model was trained with pyannote.audio 0.0.1, yours is 3.1.1. Bad things might happen unless you revert pyannote.audio to 0.x.
Model was trained with torch 1.10.0+cu102, yours is 2.3.1+cu118. Bad things might happen unless you revert torch to 1.x.
Traceback (most recent call last):
  File "C:\AI\whisper-diarization\diarize_parallel.py", line 143, in <module>
    tokens_starred, text_starred = preprocess_text(
                                   ^^^^^^^^^^^^^^^^
  File "c:\AI\whisper-diarization\.conda\Lib\site-packages\ctc_forced_aligner\text_utils.py", line 205, in preprocess_text
    tokens = get_uroman_tokens(norm_text, language)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\AI\whisper-diarization\.conda\Lib\site-packages\ctc_forced_aligner\text_utils.py", line 149, in get_uroman_tokens
    with open(tf.name, "w") as f:
         ^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\UberStorm\\AppData\\Local\\Temp\\tmpb4iv7zz4'

Please help

@MahmoudAshraf97
Copy link
Owner

Should be fixed now, please reinstall ctc-forced-aligner

@UberStorm
Copy link
Author

Now I get this:

Traceback (most recent call last):
  File "C:\AI\whisper-diarization\diarize_parallel.py", line 143, in <module>
    tokens_starred, text_starred = preprocess_text(
  File "c:\AI\whisper-diarization\.conda\lib\site-packages\ctc_forced_aligner\text_utils.py", line 212, in preprocess_text       
    tokens = get_uroman_tokens(norm_text, language)
  File "c:\AI\whisper-diarization\.conda\lib\site-packages\ctc_forced_aligner\text_utils.py", line 163, in get_uroman_tokens     
    subprocess.run(cmd, check=True, stdin=tf1, stdout=tf2)
  File "c:\AI\whisper-diarization\.conda\lib\subprocess.py", line 503, in run
    with Popen(*popenargs, **kwargs) as process:
  File "c:\AI\whisper-diarization\.conda\lib\subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "c:\AI\whisper-diarization\.conda\lib\subprocess.py", line 1456, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

@MahmoudAshraf97
Copy link
Owner

That means that your windows environment doesn't have perl installed or the path of the installation isn't included in the PATH environment variable
follow this guide

@UberStorm
Copy link
Author

I installed perl and now I get:

perl: warning: Falling back to the system default locale ("Hebrew_Israel.1255").
Traceback (most recent call last):
  File "C:\AI\whisper-diarization\diarize_parallel.py", line 167, in <module>
    with open(os.path.join(temp_path, "pred_rttms", "mono_file.rttm"), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\AI\\whisper-diarization\\temp_outputs\\pred_rttms\\mono_file.rttm'

@MahmoudAshraf97
Copy link
Owner

did you check manually if the file exists?

@UberStorm
Copy link
Author

did you check manually if the file exists?

Yes. It does 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