RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

[Errno 2] No such file or directory: 'assets/temp/mp3/title.mp3'

Open OndrejBartos opened this issue 4 years ago • 15 comments

Really not sure what's causing it ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Saving Text to MP3 files... │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ None defined. Defaulting to 'polly.' Traceback (most recent call last): File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\mutagen_util.py", line 251, in _openfile fileobj = open(filename, "rb+" if writable else "rb") FileNotFoundError: [Errno 2] No such file or directory: 'assets/temp/mp3/title.mp3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\RedditGenerator\main.py", line 71, in main() File "D:\RedditGenerator\main.py", line 49, in main length, number_of_comments = save_text_to_mp3(reddit_object) File "D:\RedditGenerator\video_creation\voices.py", line 39, in save_text_to_mp3 length += MP3("assets/temp/mp3/title.mp3").info.length File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\mutagen_file.py", line 48, in init self.load(*args, **kwargs) File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\mutagen_util.py", line 154, in wrapper with _openfile(self, filething, filename, fileobj, File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\contextlib.py", line 117, in enter return next(self.gen) File "C:\Users\Name\AppData\Local\Programs\Python\Python39\lib\site-packages\mutagen_util.py", line 272, in _openfile raise MutagenError(e) mutagen.MutagenError: [Errno 2] No such file or directory: 'assets/temp/mp3/title.mp3'

OndrejBartos avatar Jun 20 '22 15:06 OndrejBartos

I had this same problem and I'm pretty sure it's because SoX isn't installed properly. First, install it from this link, then when you unzip the dowload, it should have a file called INSTALL, follow that and it should lead you through how to get that set up.

HallowedDust5 avatar Jun 20 '22 15:06 HallowedDust5

When I install SoX, it isn't a zip but a .exe installer. Where exactly is the file INSTALL?

OndrejBartos avatar Jun 20 '22 16:06 OndrejBartos

Oh, if its an exe run that.

HallowedDust5 avatar Jun 20 '22 22:06 HallowedDust5

I have SoX installed and I still get the same error.

OndrejBartos avatar Jun 21 '22 07:06 OndrejBartos

I can even use it in cmd.

OndrejBartos avatar Jun 21 '22 07:06 OndrejBartos

Also getting the same issue, I have Sox installed but still getting the same issue

jackbutler06 avatar Jun 21 '22 16:06 jackbutler06

I have the same problem

Jake006thesnake avatar Jun 23 '22 17:06 Jake006thesnake

SOLVED- https://github.com/elebumm/RedditVideoMakerBot/issues/671

Jake006thesnake avatar Jun 24 '22 02:06 Jake006thesnake

ut still getting the same

https://github.com/elebumm/RedditVideoMakerBot/issues/671

Jake006thesnake avatar Jun 24 '22 02:06 Jake006thesnake

the dowload, it sh

https://github.com/elebumm/RedditVideoMakerBot/issues/671

Jake006thesnake avatar Jun 24 '22 02:06 Jake006thesnake

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] avatar Jul 02 '22 00:07 github-actions[bot]

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] avatar Jul 08 '22 03:07 github-actions[bot]

I get the same error when trying to use AWSPolly, tried reinstalling SOX and tried replacing the .env with the .env.template file

16aces avatar Jul 09 '22 01:07 16aces

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] avatar Jul 15 '22 02:07 github-actions[bot]

Issue closed due to being stale. Please reopen if issue persists in latest version.

github-actions[bot] avatar Jul 28 '22 02:07 github-actions[bot]