Error installing Sublime Text 3 Package Control bz2
My ISP in India has decieded to block Github for some reason.I have been trying to install Package Control for Sublime Text 3 both manually and use the Sublime Text 3 Console.In both of the cases,one dependency seems to be missing:
Package Control: Installing 1 missing dependencies
Package Control: Attempting to use Urllib downloader due to WinINet error: Error downloading package. Host not found (errno 12007) during HTTP write phase of downloading https://codeload.github.com/codexns/sublime-bz2/zip/1.0.0.
Package Control: Error downloading package. URL error [Errno 11004] getaddrinfo failed downloading https://codeload.github.com/codexns/sublime-bz2/zip/1.0.0.
error: Package Control
Unable to download bz2. Please view the console for more details.
Package Control: Skipping automatic upgrade, last run at 2015-01-03 11:32:25, next run at 2015-01-03 12:32:25 or after
I have downloaded the Sublime bz2 file manually,what should I do now?
EDIT:
Some skimming through stuff tells me that Package Control 3.0 has dependencies:
Once the package is extracted, a custom-generated python file is added to a special package named
0_package_control_loader. For Sublime Text 3, this is a .sublime-package file, whereas for
Sublime Text 2 it is just a folder. The reason for the name (and creating it as a .sublime-
package file in ST3) is to ensure it is the very first non-default package that Sublime Text
loads.
Is there a version of 0_package_control_loader.sublime-package
that I can add manually(given that I have already installed Package Control with this dependency missing?
I've met the same problem as you. Below is the way I resolved it.
open a new txt file and paste below code to it
{"platforms": ["*"], "url": "https://github.com/codexns/sublime-bz2/issues";, "version": "1.0.0", "description": "Python bz2 module", "sublime_text": "*"}
save the file to /bz2 and rename its file name as "dependency-metadata.json" After done these, the hierarchy should be like this:
/Package
├─/bz2
│ ├─/st2_linux_x32
│ ├─/st2_linux_x64
│ ├─/st2_windows_x32
│ ├─/st2_windows_x64
│ ├─/st3_linux_x32
│ ├─/st3_linux_x64
│ ├─/st3_osx_x64
│ ├─/st3_windows_x32
│ ├─/st3_windows_x64
│ └─dependency-metadata.json
└─/User
├─/c2u_tmp
└─/Package Control.cache
restart sublime text3.
Hope it helps!
Regards
This worked for me, see: @godzig's answer, on this related Github issue: issues/989. The gist of it being:
0_package_control_loader.sublime-package
archive, in Installed Packages, of your SBT3 folder. Change the filename from 02-bz2.py
to 01-bz2.py
, and the error is gone; at least in my case anyway. HTH
Until your ISP unblocks Github (who does that?), you can download 0_package_control_loader.sublime-package
here. I don't know if there are differences in the package for different versions of Windows, but this is from ST3 on Win8. Hope it helps!
上一篇: 在启动时为多个文件启用动态调试