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

Job failed with exception: Traceback #91

Open
gerroon opened this issue Feb 23, 2020 · 1 comment
Open

Job failed with exception: Traceback #91

gerroon opened this issue Feb 23, 2020 · 1 comment

Comments

@gerroon
Copy link

gerroon commented Feb 23, 2020

Hi

For some reason ytsm is not able to download soem files. My assumption is that it has something todo with spaces in the video file names see the log please.

I also have no idea why it is creating spaces in these file names.

2020-02-23 05:09:27,182 | DownloadVideoJob | scheduler.py:249 | CRITICAL | Job failed with exception: Traceback (most recent call last):                                                                           
  File "/media/opt/ytsm/.env/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 1784, in process_info                                                                                              
    with io.open(encodeFilename(descfn), 'w', encoding='utf-8') as descfile:                                                                                                                                       
FileNotFoundError: [Errno 2] No such file or directory: '/media/VIDEO/YOUTUBE/Jimmy Gunawan/001-LIVENODING / Simulating Grease Pencil On Edges-[z9fHP_NJZ6Y].description'                                        
                                                                                                                                                                                                                   
During handling of the above exception, another exception occurred:                                                                                                                                                
                                                                                                                                                                                                                   
Traceback (most recent call last):                                                                                                                                                                                 
  File "/media/opt/ytsm/app/YtManagerApp/scheduler.py", line 245, in _run_job                                                                                                                              
    job_instance.run()                                                                                                                                                                                             
  File "/media/opt/ytsm/app/YtManagerApp/management/jobs/download_video.py", line 40, in run                                                                                                               
    ret = yt.download(["https://www.youtube.com/watch?v=" + self.__video.video_id])                                                                                                                                
  File "/media/d/opt/ytsm/.env/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2018, in download                                                                                                  
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))                                                                                                                                
  File "/media/d/opt/ytsm/.env/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 807, in extract_info                                                                                               
    return self.process_ie_result(ie_result, download, extra_info)                                                                                                                                                 
  File "/media/d/opt/ytsm/.env/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 862, in process_ie_result                                                                                          
    return self.process_video_result(ie_result, download=download)                                                                                                                                                 
  File "/media/d/opt/ytsm/.env/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 1643, in process_video_result                                                                                      
    self.process_info(new_info)                                                                                                                                                                                    
  File "/media/opt/ytsm/.env/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 1787, in process_info                                                                                              
    self.report_error('Cannot write description file ' + descfn)                                                                                                                                                   
  File "/media/opt/ytsm/.env/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 624, in report_error                                                                                               
    self.trouble(error_message, tb)                                                                                                                                                                                
  File "/media/opt/ytsm/.env/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 594, in trouble                                                                                                    
    raise DownloadError(message, exc_info)                                                                                                                                                                         
youtube_dl.utils.DownloadError: ERROR: Cannot write description file /media/VIDEO/YOUTUBE/Jimmy Gunawan/001-LIVENODING / Simulating Grease Pencil On Edges-[z9fHP_NJZ6Y].description                             
                                                                                                                                                                                                                   
INFO:apscheduler.executors.default:Job "YtsmScheduler._run_job (trigger: date[2020-02-23 05:09:25 UTC], next run at: 2020-02-23 05:09:25 UTC)" executed successfully        

@chibicitiberiu
Copy link
Owner

This looks like a problem with youtube-dl, try updating it to the latest (using pip). Make sure the permissions are set correctly, and the directory exists.

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