Comments (5)
Hmm, not sure but Try removing the requests requirement line from the requirements and try again.
from subplz.
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
from subplz.
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.
from subplz.
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
from subplz.
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.
from subplz.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subplz.