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

FileNotFoundError: [WinError 2] #305

Open
iamthenev opened this issue Feb 18, 2025 · 2 comments
Open

FileNotFoundError: [WinError 2] #305

iamthenev opened this issue Feb 18, 2025 · 2 comments

Comments

@iamthenev
Copy link

I have completed the install and troubleshooted some errors with assistance from various other Issues comments. However now I get the following:

I run: python diarize.py -a "E:\OBS\Diarization-tests\session20test.ogg"

And receive:

Traceback (most recent call last):
File "C:\Users...\AppData\Local\whisper-diarization-main\diarize.py", line 170, in
tokens_starred, text_starred = preprocess_text(
^^^^^^^^^^^^^^^^
File "C:\Users...\AppData\Local\Programs\Python\Python312\Lib\site-packages\ctc_forced_aligner\text_utils.py", line 222, in preprocess_text
tokens = get_uroman_tokens(norm_text, language)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\AppData\Local\Programs\Python\Python312\Lib\site-packages\ctc_forced_aligner\text_utils.py", line 156, in get_uroman_tokens
assert not subprocess.call(
^^^^^^^^^^^^^^^^
File "C:\Users...\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 389, in call
with Popen(*popenargs, **kwargs) as p:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users...\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users...\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

All the .py files mentioned are present, I cannot determine what file the system is looking for. Any help is appreciated!

Thanks.

@MahmoudAshraf97
Copy link
Owner

Make sure you have a valid perl installation

@iamthenev
Copy link
Author

iamthenev commented Feb 19, 2025

I will do that, also I don't know how I didn't find thread #272 yesterday, but I'll check that now!

Edit: Problem solved! I had used the instructions posted by homelab-00 to troubleshoot most of my errors, but typical human error, I had missed step 2.

Thank you again for the quick reply!

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