Error installing Sublime Text 3 bz2 package management

My ISP in India decided for some reason to block Github. I am trying to install Package Control for Sublime Text 3 both manually and using the Sublime Text 3 Console. In both 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 downloaded the Sublime bz2 file manually, what should I do now?

EDIT:

Some smoothing of the material tells me that the Control 3.0 package 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 0_package_control_loader.sublime-package that I can add manually (given that I already installed Package Control with no this dependency?

+7
sublimetext3 sublime-text-plugin package-control
source share
7 answers

I faced the same problem as you. Below I solved it.

  • Try to get the file "sublime-bz2-1.0.0.zip". (It seems you did it);
  • unzip it using the pointer "... \ Application Data \ Sublime Text 3 \ Packages \" and rename the subcategory name to "bz2".
  • open a new txt file and paste the code under it

      {"platforms": ["*"], "url": "https://github.com/codexns/sublime-bz2/issues";, "version": "1.0.0", "description": "Python bz2 module", "sublime_text": "*"} 
  • save the file in / bz 2 and rename its file name as "dependency-metadata.json" After that, 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 text 3.

Hope this helps!

Hi

+3
source share

This worked for me, see: @godzig answer , for this related Github: issues / 989 issue. Its essence is that:

  • open the 0_package_control_loader.sublime-package archive in the installed packages of your SBT3 folder. Change the file name from 02-bz2.py to 01-bz2.py and the error will disappear; at least in my case.

NTN

+3
source share

Until your ISP blocks Github (who does this?), You can download 0_package_control_loader.sublime-package here . I do not know if there are differences in the package for different versions of Windows, but this is from ST3 to Win8. Hope this helps!

0
source share

Machael Lv's answer did not help me. Then I just started the sublime text as administrator at a time, and the problem disappeared - now I can run sbt as ussual, and the error message no longer appears.

0
source share

I have the same problem and am trying to fix it using manual installation as follows: Manual

If for any reason the installation instructions for the console do not work for you (for example, having a proxy server on your network), follow these steps to manually install Package Control:

  • Choose Settings> Package Overview ...
  • Locate the folder and then in the "Installed packages / folders" folder
  • Download the Control.sublime-package package and copy it to the Installed Packages / folder
  • Restart Sublime Text
0
source share

I have the same problem and am trying to fix it using manual installation as follows: Manual

If for any reason the installation instructions for the console do not work for you (for example, having a proxy server on your network), follow these steps to manually install Package Control:

  • Choose Settings> Package Overview ...
  • Locate the folder and then in the "Installed packages / folders" folder
  • Download the Control.sublime-package and copy it to the Installed Packages / directory
  • Restart Sublime Text
0
source share
 import urllib.request,os,hashlib; h = '2deb499853c4371624f5a07e27c334aa' + 'bf8c4e67d14fb0525ba4f89698a6d7e1'; 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) 
-2
source share

All Articles