Closed spirited1086 closed 1 year ago
Hmm, not sure but Try removing the requests requirement line from the requirements and try again.
Thanks, that worked!
I commented out requests==2.23.0 and it installed succesfully.
When I run "python run.py -d "/home/yon/AudiobookTextSync/bibl/", I get:
/home/yon/.local/lib/python3.9/site-packages/whisper/timing.py:58: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
def backtrace(trace: np.ndarray):
Working on /home/yon/AudiobookTextSync/bibl/
Splitting script into sentences
100%|| 2280/2280 [00:00<00:00, 2329.96it/s]
'1 file will be processed:'
['/home/yon/AudiobookTextSync/bibl/bibl.m4b']
0%| | 0/1 [00:00<?, ?it/s]
FileNotFoundError(2, 'No such file or directory')
The following 1 failed:
'/home/yon/AudiobookTextSync/bibl/'
FileNotFoundError(2, 'No such file or directory')
What could it be referring to when saying 'No Such File or Directory'? When I installed the dependencies I made sure to add the ~/.local/bin to my $PATH variable.
I did look at the other closed discussions so I've tried changeing the directory name so that it has the same name as the m4b. I've also cd'd into the git directory and ran python from there. 'Python' is aliased to python3.9.9 also.
Some outputs:
ls -al
yon@DESKTOP-EU6DQGN:~/AudiobookTextSync$ ls -al
total 128
drwxr-xr-x 6 yon yon 4096 Jun 24 19:11 .
drwxr-x--- 6 yon yon 4096 Jun 24 19:11 ..
drwxr-xr-x 8 yon yon 4096 Jun 24 14:51 .git
-rw-r--r-- 1 yon yon 30 Jun 24 14:51 .gitignore
-rw-r--r-- 1 yon yon 9 Jun 24 14:51 .python-version
drwxr-xr-x 2 yon yon 4096 Jun 24 14:51 .vscode
-rw-r--r-- 1 yon yon 0 Jun 24 14:51 __init__.py
drwxr-xr-x 2 yon yon 4096 Jun 24 18:44 __pycache__
-rw-r--r-- 1 yon yon 11034 Jun 24 14:51 align.py
-rw-r--r-- 1 yon yon 9123 Jun 24 14:51 anki-importer.py
-rwxr-xr-x 1 yon yon 508 Jun 24 14:51 anki.sh
drwxr-xr-x 2 yon yon 4096 Jun 24 19:03 bibl
-rw-r--r-- 1 yon yon 291 Jun 24 14:51 mapping.template.json
-rw-r--r-- 1 yon yon 5068 Jun 24 14:51 merge.py
-rwxr-xr-x 1 yon yon 801 Jun 24 14:51 merge.sh
-rwxr-xr-x 1 yon yon 957 Jun 24 14:51 merge2.sh
-rw-r--r-- 1 yon yon 8 Jun 24 14:51 pylintrc
-rw-r--r-- 1 yon yon 10200 Jun 24 14:51 readme.md
-rw-r--r-- 1 yon yon 263 Jun 24 18:24 requirements.txt
-rw-r--r-- 1 yon yon 9054 Jun 24 14:51 run.py
-rwxr-xr-x 1 yon yon 206 Jun 24 14:51 split.sh
-rw-r--r-- 1 yon yon 1526 Jun 24 14:51 split_sentences.py
-rwxr-xr-x 1 yon yon 1520 Jun 24 14:51 test.sh
-rw-r--r-- 1 yon yon 2381 Jun 24 14:51 utils.py
ls bibl/
yon@DESKTOP-EU6DQGN:~/AudiobookTextSync$ ls bibl/
bibl.m4b bibl.txt bibl.txt.split.txt
It's saying it can't find
'/home/yon/AudiobookTextSync/bibl/bibl.m4b'
I'm not sure why given it looks like you showed that file exists but try moving your bibl folder anywhere outside of you AudiobookTextSync source directory.
Unfortunately didn't work. I've tried moving the bibl folder to my home directory & also to my mounted windows drive. I've also renamed it and double checked permissions.
When I'm in Python I've checked working directory too:
yon@DESKTOP-EU6DQGN:~/AudiobookTextSync$ python
Python 3.9.9 (main, Jun 24 2023, 14:49:32)
[GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print(os.getcwd())
/home/yon/AudiobookTextSync
>>> os.path.exists("/mnt/c/test/test.m4b")
True
Sorry! I apologise. I came back to work on this today and realized the problem was I forgot to install ffmpeg (I use it normally but didn't have it installed on the WSL). It's solved.
Hi, I know this is not really an issue with your program, but hoping I can have some clues on how to fix this. I've installed python 3.9.9 by compiling from source and then ran 'python3.9 -m pip install -r requirements.txt --user.' I've doubled checked that the python3.9 binary is python 3.9.9.
However, when I run this I get:
I've actually also tried running this pip instal lwith later version of Python and I'm having the same issue