youtube-dl-webui icon indicating copy to clipboard operation
youtube-dl-webui copied to clipboard

TypeError: an integer is required (Python3) Error Fix

Open r1bnc opened this issue 4 years ago • 0 comments

I installed this using python3 and now I have encountered an error:

192.168.x.x - - [24/Mar/2020 08:45:25] "GET /task/tid/d1432c81c64f99564c5b2923a14a63fe983e07a6/status HTTP/1.1" 200 -                                        
Traceback (most recent call last):                                                                                                                          
  File "./youtube-dl-webui", line 11, in <module>                                                                                                           
    load_entry_point('youtube-dl-webui===rolling', 'console_scripts', 'youtube-dl-webui')()                                                                 
  File "/home/user/.local/lib/python3.7/site-packages/youtube_dl_webui-rolling-py3.7.egg/youtube_dl_webui/__init__.py", line 27, in main                    
    core.start()                                                                                                                                            
  File "/home/user/.local/lib/python3.7/site-packages/youtube_dl_webui-rolling-py3.7.egg/youtube_dl_webui/core.py", line 299, in start
    self.msg_mgr.run()
  File "/home/user/.local/lib/python3.7/site-packages/youtube_dl_webui-rolling-py3.7.egg/youtube_dl_webui/msg.py", line 84, in run
    cb(svr, evnt, data, arg)
  File "/home/user/.local/lib/python3.7/site-packages/youtube_dl_webui-rolling-py3.7.egg/youtube_dl_webui/core.py", line 90, in event_manipulation
    cls._task_mgr.start_task(tid)
  File "/home/user/.local/lib/python3.7/site-packages/youtube_dl_webui-rolling-py3.7.egg/youtube_dl_webui/task.py", line 154, in start_task
    status=status, log_size=self._conf['general']['log_size'])
  File "/home/user/.local/lib/python3.7/site-packages/youtube_dl_webui-rolling-py3.7.egg/youtube_dl_webui/task.py", line 30, in __init__
    self.log = deque(maxlen=log_size)
TypeError: an integer is required

This can be fixed by editing the file: task.py Line: 30 Change it to this code: self.log = deque(maxlen=int(log_size))

r1bnc avatar Mar 24 '20 00:03 r1bnc