Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Will not update on OSX High Sierra #15474
Comments
|
Most likely #14353. |
|
I think a lot of people are going to have trouble finding the workaround instructions. Unfortunately I don't have any good ideas on how to address this all. Other than if the error message had printed the updater URL, it would have been a place to offer guidance… But this precise situation seems unlikely to recur in the future? Maybe? |
|
Is falling back to http if https fails an option? (maybe after prompting the user) |
|
Well, no existing user is going to see any fixes to this problem because the updater doesn't work, so even if that were acceptable...maybe instead give a link to a "What to do if the update fails?" page? Although I suppose that Apple will probably push an update for I guess it's worth addressing for people who are newly installing |
|
I don't think this is due to a recent bug on Apple; in fact I encountered this bug on a Linux machine I haven't upgraded in years (mea culpa), so this may be due to a change in github.io SSL protocols (this might be related to https://github.com/blog/2498-weak-cryptographic-standards-removal-notice). I guess eventually all machines that are regularly updated will find a fix for this SSL issue, but if Apple hasn't fixed this yet, I don't think it will do so soon. |
|
@Slowly How did you install Python on your machine? |
I know you didn't ask me, but I saw this problem under MacOS 10.10 (Yosemite), which is somewhat long in the tooth. With the system Python, i.e. no special installation. For me:
(And yes, installing a newer version of Python2 and putting it ahead in the |
|
Here's how I think I'm going to fix it for me, using MacPorts. IMO, if you don't understand the terminal commands below...you don't belong on github. Github is for the tech savvy only. Go to videohelp.
---- OR -----
I have both python2 and python3 installed on my machine, and the environment variables are configured correctly. I have updated youtube-dl in both environments, and it works great. |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.01.27. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.######################################################################
BashPrompt>youtube-dl -v -U
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-U']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.01.21
[debug] Python version 2.7.13 (CPython) - Darwin-17.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.4.1, ffprobe 3.4.1, rtmpdump 2.4
[debug] Proxy map: {}
Traceback (most recent call last):
File "/Users/Pudnik/bin/youtube-dl/youtube_dl/update.py", line 45, in update_self
newversion = opener.open(VERSION_URL).read().decode('utf-8').strip()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/Users/Pudnik/bin/youtube-dl/youtube_dl/utils.py", line 1089, in https_open
req, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661)>
ERROR: can't find the current version. Please try again later.
########################################################################
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
youtube-dl for OSX throws update error on OSX:
BashPrompt>youtube-dl -v -U
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-U']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.01.21
[debug] Python version 2.7.13 (CPython) - Darwin-17.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.4.1, ffprobe 3.4.1, rtmpdump 2.4
[debug] Proxy map: {}
Traceback (most recent call last):
File "/Users/Pudnik/bin/youtube-dl/youtube_dl/update.py", line 45, in update_self
newversion = opener.open(VERSION_URL).read().decode('utf-8').strip()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/Users/Pudnik/bin/youtube-dl/youtube_dl/utils.py", line 1089, in https_open
req, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661)>
ERROR: can't find the current version. Please try again later.