Packages: Install Package fails
I installed the package control and all the menu options are available, but when I select the Package: Install Package I just get an error that no packages are available. Any ideas? On Mac OS Lion, latest beta of Sublime 2.
Please check your console (ctrl+`) and see what errors are listed there.
Okay thanks, seems to be similar to this one: https://github.com/wbond/sublime_package_control/issues/93
However, I'm not using a proxy server, just normal internet service. So something else going on to cause it.
Mac shortcut for console seems to be ctrl-` instead, btw. Had to look up the key mappings to find that one!
What does your console say?
Here's the exact error I get:
Package Control: Error downloading channel. URL error _ssl.c:490: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol downloading https://sublime.wbond.net/repositories.json. error: Package Control: There are no packages available for installation.
Similar issue: Newest version of Sublime 2 Beta installed today. When trying to install packages I get no list at all but instead:
Exception in thread Thread-4: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner self.run() File "./Package Control.py", line 1890, in run File "./Package Control.py", line 1759, in make_package_list File "./Package Control.py", line 1121, in list_available_packages File "./Package Control.py", line 1076, in list_repositories TypeError: 'NoneType' object is not iterable
EDIT: OS X 10.7.3
@steffenwt there was a temporary outage today that caused the error you ran into
@wbond yes... seems to work just fine now :)
Mine still broken. ;-(
Mine acts similar to steffenwt on OSX 10.6.8:
Exception in thread Thread-6: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 522, in __bootstrap_inner self.run() File "./Package Control.py", line 1890, in run File "./Package Control.py", line 1759, in make_package_list File "./Package Control.py", line 1121, in list_available_packages File "./Package Control.py", line 1066, in list_repositories File "./Package Control.py", line 175, in get_repositories File "./Package Control.py", line 148, in fetch_channel File "./Package Control.py", line 1007, in download_url File "./Package Control.py", line 602, in download File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 124, in urlopen return _opener.open(url, data, timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 375, in open protocol = req.get_type() File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 241, in get_type raise ValueError, "unknown url type: %s" % self.__original ValueError: unknown url type:
Tried reinstalling as it has not been working for a couple of days so didn't think it would be a server issue? Any assistance would be greatly appreciated.
Thanks for all your great work!
I''m facing the same issue the error I get is the following:
Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner self.run() File "./Package Control.py", line 1890, in run File "./Package Control.py", line 1759, in make_package_list File "./Package Control.py", line 1121, in list_available_packages File "./Package Control.py", line 1066, in list_repositories File "./Package Control.py", line 175, in get_repositories File "./Package Control.py", line 148, in fetch_channel File "./Package Control.py", line 1007, in download_url File "./Package Control.py", line 602, in download File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 383, in open protocol = req.get_type() File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 244, in get_type raise ValueError, "unknown url type: %s" % self.__original ValueError: unknown url type:
@Wattsy @renators Can you guys open a separate issue to track the things you are having trouble with? I have some ideas on debugging this, but I don't want to confuse this issue with the one @maryjos is experiencing.
@maryjos Can you open your Preferences > Package Settings > Package Control > Settings - Default and copy the "repository_channels" setting to Settings - User and change the URL from https to http?
After you've made the change, try installing a package again. If you are able to install a package hosted on GitHub, then it may be an issue with the (rather old) version of Apache and OpenSSL on my server. I am planning on moving servers in the next week or two, so if the issue is Apache, then it should be resolved shortly.
Whatever the problem was, it seems to be working fine now. Thanks!
@maryjos Did you change the repository_channels setting?
Nope, didn't do anything other than reboot my machine, so something else in my local environment probably the cause.
@wbond - I would suggest updating your bundled certificates (7f4f8622b4fd001c7f648e09aae7edaa and ca-bundle.crt).
They don't match what your server reports when you fetch the JSON by hand (or even using urllib2 via python-shell). A "workaround" is commenting out the code which is registering the VerifiedHTTSHandler - another would be to allow the user to force usage of the Curl / Wget-Downloader classes they get it right too.
@Shirk I don't see the discrepancy between http://sublime.wbond.net/repositories.json and the source of Package Control. Both seem to include 7f4f8622b4fd001c7f648e09aae7edaa.
You got me wrong - its not the JSON file it's the SSL certificate your server uses.
For an easy one compare the valid/expires dates of the certificate bundled with Package Control with the one reported by your browser when you open https://sublime.wbond.net/repositories.json.
The later one is a quiet newer and different certificate than what's expected.
The current certificate on your server:
SHA1: 08 07 5D B7 38 0D 1F C4 11 6F 31 A5 8C 2D 18 32 BD A0 09 5B
Valid from: 2012-02-24
Valid to: 2015-02-26
I'm not at work right now (which is were I can reproduce the problem) but the certificate there has a different SHA and validity date..
@Shirk The certificates presented by sublime.wbond.net are the CA (certificate authority) certs needed to authenticate the cert issued to me and used on my web server. They should not match, but rather form a chain of authentication down to a "trusted" certificate.
If you follow the chain, you'll find the cert for sublime.wbond.net is issued by RapidSSL CA. Going to https://sublime.wbond.net/certs/7f4f8622b4fd001c7f648e09aae7edaa you'll see there is a cert issued to RapidSSL CA by GeoTrust Global CA. There is also a second CA cert that is self-signed for GeoTrust Global CA.
The reason I distribute the CA certs is that Python does not come with a CA cert bundle, and I can't rely on different platforms and distributions having it in a known place with a consistent format. Thus I distribute a know CA cert chain for sublime.wbond.net with Package Control and then sublime.wbond.net distributes the CA certs for any other domains that contain packages, such as github and bitbucket. This type of a CA cert distribution system allows new domains to be added on the fly without having to release a new version of Package Control each time there is a new cert.
I hope this provides useful to you.
I had the same stacktrace in the console and that was due to the wrong path defined in "git_binary" (I had migrated from macports to homebrew). So, if someone still has this problem, you might want to check "git_binary", too.