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

Stop Depending on SSLv2 symbols #8880

Closed
tidux opened this issue Mar 17, 2016 · 1 comment
Closed

Stop Depending on SSLv2 symbols #8880

tidux opened this issue Mar 17, 2016 · 1 comment

Comments

@tidux
Copy link

@tidux tidux commented Mar 17, 2016

SSLv2 is being completely removed from recent versions of OpenSSL and LibreSSL. Blindly importing instead of importing only the symbols actually needed leads to errors like this on platforms without SSLv2:

$ youtube-dl -U
Traceback (most recent call last):
File "/opt/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/opt/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/jon/bin/youtube-dl/main.py", line 16, in
File "/home/jon/bin/youtube-dl/youtube_dl/init.py", line 15, in
File "/home/jon/bin/youtube-dl/youtube_dl/options.py", line 7, in
File "/home/jon/bin/youtube-dl/youtube_dl/downloader/init.py", line 3, in
File "/home/jon/bin/youtube-dl/youtube_dl/downloader/common.py", line 8, in
File "/home/jon/bin/youtube-dl/youtube_dl/utils.py", line 27, in
File "/opt/local/lib/python2.7/ssl.py", line 97, in
import _ssl # if we can't import it, let the error propagate
ImportError: ld.so.1: python2.7: fatal: relocation error: file /opt/local/lib/python2.7/lib-dynload/_ssl.so: symbol SSLv2_method: referenced symbol not found

This is on Illumos.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 17, 2016

Duplicate of #8767. It's not a fault of youtube-dl but Python. You'll need to rebuid your Python against new OpenSSL.

@yan12125 yan12125 closed this Mar 17, 2016
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
2 participants
You can’t perform that action at this time.