jely2002 / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
6.41k stars 443 forks source link

unhandled error when attempting to download audio #417

Open MaximumRide93 opened 1 year ago

MaximumRide93 commented 1 year ago

image

Version 2.2.2

OS: Win10

BondiBear commented 1 year ago

Same error when trying to dl various youtube videos.

Korabel47 commented 1 year ago

I had this issue due to manually installing and setting as default new Python's version which wasn't able to import the necessary packages the previous default version installed in the past (the packages youtube-dl refers to). When I reset my default Python version to be the initial one, the app started working without this issue.

That is, on Linux, I used the update-alternatives command to first assign the newly installed Python (Python 3.9) version to the links /usr/bin/python and /usr/bin/python3 (goes below right after the --install option):

$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 3
$ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).

  Selection    Path                Priority   Status
------------------------------------------------------------
  0            /usr/bin/python3.9   3         auto mode
* 1            /usr/bin/python3.8   1         manual mode
  2            /usr/bin/python3.9   3         manual mode

Press <enter> to keep the current choice[*], or type selection number: 

and then to re-assign to the right version (update-alternatives, then choosing Python 3.8).

So, for me the reason for this issue to appear was a problem with importing the packages for Python 3.8 by Python 3.9.

I hope this helps.