Sublime Forum

ERROR packagecontrol.io snippet error in Sublime Text 3

#1

Hi.
Copied and pasted snippet from packagecontrol.io for Sublime Text 3 (ST 3) into current version of beta of ST 3, and received error message:

import urllib.request,os,hashlib; h = ‘df21e130d211cfc94d9b0905775a7c0f’ + ‘1e3d39e33b79698005270310898eea76’; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( ‘http://packagecontrol.io/’ + pf.replace(’ ', ‘%20’)).read(); dh = hashlib.sha256(by).hexdigest(); print(‘Error validating download (got %s instead of %s), please try manual install’ % (dh, h)) if dh != h else open(os.path.join( ipp, pf), ‘wb’ ).write(by)
Traceback (most recent call last):
File “”, line 1, in
File “./python3.3/urllib/request.py”, line 156, in urlopen
File “./python3.3/urllib/request.py”, line 475, in open
File “./python3.3/urllib/request.py”, line 587, in http_response
File “./python3.3/urllib/request.py”, line 513, in error
File “./python3.3/urllib/request.py”, line 447, in _call_chain
File “./python3.3/urllib/request.py”, line 595, in http_error_default
urllib.error.HTTPError: HTTP Error 503: Service Unavailable

I’d appreciate any suggestions as to how I can get beyond this point. Thanks.

0 Likes

#2

Not sure, but are you behind a proxy? You can still download it manually if you’re struggling…

0 Likes

#3

5xx are server errors. Try again some time later, like now.

1 Like