Sublime Text 3控制面板无证错误

时间:2017-09-18 23:15:56

标签: python sublimetext3 python-import

组合新的sublime安装并尝试安装控制面板。已经通过了所有的标准论坛,但无论安装方法如何,都处于神秘的追溯状态。

Traceback (most recent call last):
 File "/opt/sublime_text/sublime_plugin.py", line 74, in reload_plugin
   m = importlib.import_module(modulename)
 File "./importlib/__init__.py", line 90, in import_module
 File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
 File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
 File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
 File "/opt/sublime_text/sublime_plugin.py", line 678, in load_module
   exec(compile(source, source_path, 'exec'), mod.__dict__)
 File "Package Control in /home/slater/.config/sublime-text-3/Installed Packages/Package Control.sublime-package", line 14, in <module>
 File "./posixpath.py", line 83, in join
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'str'
plugins loaded
Unable to open /home/slater/.config/sublime-text-3/Packages/Package Control/Package Control.sublime-settings
Unable to open /home/slater/.config/sublime-text-3/Packages/User/Package Control.sublime-settings
Unable to open /home/slater/.config/sublime-text-3/Packages/Default/Preferences.sublime-settings

据推测,这种追溯是事情不起作用的原因,但遗憾的是它完全无法穿透。它引用了不存在的代码,似乎是对另一个不存在的文件进行相对调用。我尝试打开Package Control zip文件,但由于控制台没有给我一个真正的追溯,并且没有名为posixpath.py的文件,因此调试非常无用。

这似乎是路径的一些问题?对opt中的sublime文件的调用也让我陷入了循环,但我不确定这与我所看到的问题有关。

更新:尝试将sublime包文件添加到$ PATH和$ PYTHONPATH。还尝试了权限,但都无济于事。

0 个答案:

没有答案