Yt-dlp giving error

recently updated yt-dlp and it’s giving an error

Traceback (most recent call last):
  File "/usr/bin/yt-dlp", line 5, in <module>
    from yt_dlp import main
ModuleNotFoundError: No module named 'yt_dlp'

If it is not an AUR package, then the way to update it is not by updating the one program separately, but by updating the whole system, including it.

sudo pacman -Syu
or
sudo pacman -Syu yt-dlp

If it is an AUR package, it needs rebuilding - which you probably did.

1 Like

Thank you but it is available in extra , but I do understand now why I need to update my whole system , it’s been so long since I last updated my system

If you don’t want to break your system, update it in time. Manjaro is a rolling release, you are long enough here to understand what this means. As a rough idea I would say update at least once a month.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.