安装Sublime Text 3 Package Control bz2时出错
我在印度的ISP已决定阻止Github出于某种原因。我一直试图手动安装Sublime Text 3的包控件,并使用Sublime Text 3 Console。在这两种情况下,似乎都缺少一种依赖关系:
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
我已经手动下载了Sublime bz2文件,现在该怎么办?
编辑:
某些浏览内容告诉我Package Control 3.0具有依赖关系:
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.
有没有可以手动添加的0_package_control_loader.sublime-package
的版本(假定我已经安装了包含此依赖项的Package Control?
我遇到了和你一样的问题。 以下是我解决它的方式。
打开一个新的txt文件并将下面的代码粘贴到它
{"platforms": ["*"], "url": "https://github.com/codexns/sublime-bz2/issues";, "version": "1.0.0", "description": "Python bz2 module", "sublime_text": "*"}
将文件保存到/ bz2并将其文件名重命名为“dependency-metadata.json”完成这些操作后,层次结构应如下所示:
/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
重新启动崇高的text3。
希望能帮助到你!
问候
这对我有用,请参阅:@ godzig的回答,在这个相关的Github问题上:issues / 989。 它的主旨是:
0_package_control_loader.sublime-package
存档。 将文件名从02-bz2.py
更改为01-bz2.py
,错误消失; 至少在我的情况下,无论如何。 HTH
直到你的ISP解锁Github(谁做的?),你可以在这里下载0_package_control_loader.sublime-package
。 我不知道不同版本的Windows是否有差异,但这是来自Win8上的ST3。 希望能帮助到你!
上一篇: Error installing Sublime Text 3 Package Control bz2
下一篇: ptrace on iOS 8