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

Youtube-dl stopped working after update - please help #24810

Closed
ijbh opened this issue Apr 16, 2020 · 5 comments
Closed

Youtube-dl stopped working after update - please help #24810

ijbh opened this issue Apr 16, 2020 · 5 comments
Labels

Comments

@ijbh
Copy link

@ijbh ijbh commented Apr 16, 2020

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

Hi, I updated to the latest version of youtube-dl and it suddenly stopped working on all sites for me. I'm using brew on Terminal. This is the error message that I get:

ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in
globals()[__func_name] = __get_hash(__func_name)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/main.py", line 16, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 15, in
File "/usr/local/bin/youtube-dl/youtube_dl/options.py", line 8, in
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/init.py", line 3, in
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 10, in
File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 29, in
File "/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 98, in
import _ssl # if we can't import it, let the error propagate
ImportError: dlopen(/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so, 2): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/_ssl.so
Reason: image not found

@ijbh ijbh added the question label Apr 16, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 16, 2020

Broken SSL setup, nothing to do with youtube-dl.

@dstftw dstftw closed this Apr 16, 2020
@dstftw dstftw added the invalid label Apr 16, 2020
@potsky
Copy link

@potsky potsky commented Apr 20, 2020

@ijbh Do you have found a solution ? Same problem this morning :-(

@nicooprat
Copy link

@nicooprat nicooprat commented Apr 20, 2020

I got the same issue on Mac OSX High Sierra (10.13.6), resolved with brew switch openssl 1.0.2s.

https://stackoverflow.com/a/59184347/758728

@potsky
Copy link

@potsky potsky commented Apr 20, 2020

I did not work for me because I use youtube-dl to extract a m3u8 file and youtube-dl uses ffmpeg :

  • youtube-dl requires ssl 1.0.0
  • ffmpeg requires ssl 1.1
  • me requires 🔫

It finally works:

  • reinstall ssl 1.0.0 (youtube-dl starts but crashes as soon as it uses ffmpeg)
  • backup directory /usr/local/opt/openssl/lib in ~/Desktop
  • reinstall ssl 1.1 (youtube-dl crashes at start)
  • cp ~/Desktop/libcrypto.1.0.0.dylib /usr/local/opt/openssl/lib/.
  • cp ~/Desktop/libssl.1.0.0.dylib /usr/local/opt/openssl/lib/.
  • everybody is happy ;-)
@mulholio
Copy link

@mulholio mulholio commented Oct 16, 2020

Uninstalling with brew and reinstalling with pip fixed this for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.