LookupError: no codec search functions registered: can't find encoding #23813

Closed
opened 2026-02-21 11:38:47 -05:00 by deekerman · 2 comments
Owner

Originally created by @aeromaxx on GitHub (May 30, 2021).

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

I've installed the latest version of youtube-dl on a Debian Stretch headless server, and I'm getting a LookupError message stating "LookupError: no codec search functions registered: can't find encoding".

I'm confused as to what they actually means, youtube-dl has been installed on this server a while but only just now have I noticed getting this error, so am unsure as to when it started happening.

You youtube-dl wasn't install via apt-get install youtube-dl, strangely enough the version installed via apt works, but the one installed from the github repo doesn't.

Would someone be able to explain the error maybe? and the steps I need to take to fix it?

Originally created by @aeromaxx on GitHub (May 30, 2021). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions - Search the bugtracker for similar questions: http://yt-dl.org/search-issues - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm asking a question - [x] I've looked through the README and FAQ for similar questions - [x] I've searched the bugtracker for similar questions including closed ones ## Question I've installed the latest version of youtube-dl on a Debian Stretch headless server, and I'm getting a LookupError message stating "LookupError: no codec search functions registered: can't find encoding". I'm confused as to what they actually means, youtube-dl has been installed on this server a while but only just now have I noticed getting this error, so am unsure as to when it started happening. You youtube-dl wasn't install via apt-get install youtube-dl, strangely enough the version installed via apt works, but the one installed from the github repo doesn't. Would someone be able to explain the error maybe? and the steps I need to take to fix it?
deekerman 2026-02-21 11:38:47 -05:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@rautamiekka commented on GitHub (May 30, 2021):

Fill the template fully, it's impossible to help with only this info.

Since you're on Debian, don't use APT to install the app unless you're using an automated repo (which to my knowledge doesn't exist).

@rautamiekka commented on GitHub (May 30, 2021): Fill the template fully, it's impossible to help with only this info. Since you're on Debian, don't use APT to install the app unless you're using an automated repo (which to my knowledge doesn't exist).
Author
Owner

@aeromaxx commented on GitHub (May 31, 2021):

Fill the template fully, it's impossible to help with only this info.

I have filled in the template fully, I used the question template and it only asked me to write my question which is what I have done.

Since you're on Debian, don't use APT to install the app unless you're using an automated repo (which to my knowledge doesn't exist).

I didn't use APT to install the app, I did this to test if the one in the debian repo worked and it does, I then uninstalled it. Installed the one from github and that one gives me the errors mentioned in my initial question.

@aeromaxx commented on GitHub (May 31, 2021): > Fill the template fully, it's impossible to help with only this info. I have filled in the template fully, I used the question template and it only asked me to write my question which is what I have done. > Since you're on Debian, don't use APT to install the app unless you're using an automated repo (which to my knowledge doesn't exist). I didn't use APT to install the app, I did this to test if the one in the debian repo worked and it does, I then uninstalled it. Installed the one from github and that one gives me the errors mentioned in my initial question.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#23813
No description provided.