JasonLovesDoggo / RedditVideoMakerBot

Create Reddit Videos with just✨ one command ✨
GNU General Public License v3.0
23 stars 13 forks source link

Errror when trying to download the mp3 #2

Closed k3lux closed 2 years ago

k3lux commented 2 years ago

Traceback (most recent call last): File "C:\Users\Saqib\Downloads\RedditVideoMakerBot-fork\RedditVideoMakerBot-master\video_creation\voices.py", line 38, in save_text_to_mp3 length += MP3(f"assets/temp/mp3/{idx}.mp3").info.length File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\site-packages\mutagen_file.py", line 48, in init
self.load(*args, kwargs) File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\site-packages\mutagen_util.py", line 156, in wrapper
return func(self, h, *args, *kwargs) File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\site-packages\mutagen\id3_file.py", line 421, in load
self.info = self._Info(fileobj, offset) File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\site-packages\mutagen_util.py", line 185, in wrapper
return func(
args,
kwargs) File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\site-packages\mutagen\mp3__init.py", line 402, in init__ raise HeaderNotFoundError("can't sync to MPEG frame") mutagen.mp3.HeaderNotFoundError: can't sync to MPEG frame

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\site-packages\sox\core.py", line 147, in soxi shell_output = subprocess.check_output( File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 415, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 516, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['sox', '--i', '-D', 'assets/temp/mp3/4.mp3']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 39, in main() File "main.py", line 30, in main length, number_of_comments = save_text_to_mp3(reddit_object) File "C:\Users\Saqib\Downloads\RedditVideoMakerBot-fork\RedditVideoMakerBot-master\video_creation\voices.py", line 40, in save_text_to_mp3 length = sox.file_info.duration(f"assets/temp/mp3/{idx}.mp3") File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\site-packages\sox\file_info.py", line 122, in duration
output = soxi(input_filepath, 'D') File "C:\Users\Saqib\AppData\Local\Programs\Python\Python38\lib\site-packages\sox\core.py", line 153, in soxi raise SoxiError("SoXI failed with exit code {}".format(cpe.returncode)) sox.core.SoxiError: SoXI failed with exit code 1

k3lux commented 2 years ago

Fixed by restarting my pc