d0u9 / youtube-dl-webui

Another webui for youtube-dl powered by Flask.
GNU General Public License v2.0
325 stars 113 forks source link

NameError: global name 'PermissionError' is not defined #33

Open shaminmv opened 4 years ago

shaminmv commented 4 years ago

I am getting the following error when tried to run :

File "/usr/local/bin/youtube-dl-webui", line 11, in <module> load_entry_point('youtube-dl-webui===rolling', 'console_scripts', 'youtube-dl-webui')() File "/usr/local/lib/python2.7/dist-packages/youtube_dl_webui-rolling-py2.7.egg/youtube_dl_webui/__init__.py", line 27, in main core.start() File "/usr/local/lib/python2.7/dist-packages/youtube_dl_webui-rolling-py2.7.egg/youtube_dl_webui/core.py", line 293, in start except PermissionError: NameError: global name 'PermissionError' is not defined

Here is my config { "general": { "download_dir": "/home/pi/Desktop/youtube_dl", "db_path": "/tmp/youtube_dl_webui.db", "log_size": 10 }, "server": { "host": "0.0.0.0", "port": 5000 }, "youtube_dl": { "format": "bestaudio/best", "proxy": "socks5://127.0.0.1:1080" } }

Any help?

maciejzgadzaj commented 3 years ago

I got it too, when I installed youtube-dl-webui with python2 instead of 3. After installing again with python3 setup.py install the error disappeared.