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

TypeError: an integer is required (Python3) Error Fix #35

Open
r1bnc opened this issue Mar 24, 2020 · 0 comments
Open

TypeError: an integer is required (Python3) Error Fix #35

r1bnc opened this issue Mar 24, 2020 · 0 comments

Comments

@r1bnc
Copy link

r1bnc commented Mar 24, 2020

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))

zaharcelac added a commit to zaharcelac/youtube-dl-webui that referenced this issue Feb 26, 2021
- int values from config.json are loaded properly now
- added ratelimit and outtmpl parameters in Preferences windows
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

1 participant