当我尝试在 中打开一个项目时gnome-builder
,无论是通过单击此屏幕上的某个项目,它都会启动(我在一些比较私密的东西上放了一个大黑框):
或者,如果我使用该New
按钮并选择一个已经存在的项目,它就会关闭。在我启动应用程序的过程中,我在终端中收到以下错误:
22:14:57.0356 libpeas[13410]: WARNING: Error importing plugin 'html_preview_plugin':
Traceback (most recent call last):
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/usr/lib/x86_64-linux-gnu/gnome-builder/plugins/html_preview_plugin/__init__.py", line 31, in <module>
from gi.repository import Builder
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
File "/usr/lib/python3/dist-packages/gi/importer.py", line 114, in load_module
introspection_module = get_introspection_module(namespace)
File "/usr/lib/python3/dist-packages/gi/module.py", line 271, in get_introspection_module
module = IntrospectionModule(namespace, version)
File "/usr/lib/python3/dist-packages/gi/module.py", line 120, in __init__
repository.require(namespace, version)
gi.RepositoryError: Typelib file for namespace 'Ggit', version '1.0' not found
22:14:57.0356 libpeas[13410]: WARNING: Error loading plugin 'html_preview_plugin'
22:14:57.0481 libpeas[13410]: WARNING: Error importing plugin 'jedi_plugin':
Traceback (most recent call last):
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/usr/lib/x86_64-linux-gnu/gnome-builder/plugins/jedi_plugin.py", line 34, in <module>
from gi.repository import Ide
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
File "/usr/lib/python3/dist-packages/gi/importer.py", line 114, in load_module
introspection_module = get_introspection_module(namespace)
File "/usr/lib/python3/dist-packages/gi/module.py", line 271, in get_introspection_module
module = IntrospectionModule(namespace, version)
File "/usr/lib/python3/dist-packages/gi/module.py", line 120, in __init__
repository.require(namespace, version)
gi.RepositoryError: Typelib file for namespace 'Ggit', version '1.0' not found
22:14:57.0481 libpeas[13410]: WARNING: Error loading plugin 'jedi_plugin'
22:14:57.0490 libpeas[13410]: WARNING: Error importing plugin 'python_gi_imports_completion':
Traceback (most recent call last):
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec
File "<frozen importlib._bootstrap>", line 1471, in exec_module
File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
File "/usr/lib/x86_64-linux-gnu/gnome-builder/plugins/python_gi_imports_completion.py", line 36, in <module>
from gi.repository import Ide
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1191, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1161, in _load_backward_compatible
File "/usr/lib/python3/dist-packages/gi/importer.py", line 114, in load_module
introspection_module = get_introspection_module(namespace)
File "/usr/lib/python3/dist-packages/gi/module.py", line 271, in get_introspection_module
module = IntrospectionModule(namespace, version)
File "/usr/lib/python3/dist-packages/gi/module.py", line 120, in __init__
repository.require(namespace, version)
gi.RepositoryError: Typelib file for namespace 'Ggit', version '1.0' not found
22:14:57.0490 libpeas[13410]: WARNING: Error loading plugin 'python_gi_imports_completion'
当我要求它打开一个项目时,它出现以下最终错误消息:
22:15:39.0312 gb-greeter-window[13410]: WARNING: Typelib file for namespace 'Ggit', version '1.0' not found
那么,是我做错了什么吗?或者这是一个我应该报告的错误?
操作系统信息:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
Flavour: GNOME
GNOME Version: 3.18
封装信息:
gnome-builder:
Installed: 3.18.0-0ubuntu1~wily4
Candidate: 3.18.0-0ubuntu1~wily4
Version table:
*** 3.18.0-0ubuntu1~wily4 0
500 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu/ wily/main amd64 Packages
100 /var/lib/dpkg/status
答案1
Gnome Builder 崩溃的原因是它依赖于 Git 库,但在安装 Builder 时不会自动安装该库(它是这个错误gir1.2-git2-glib-1.0
具体来说)。现在,您可以通过从存储库手动安装软件包来运行 Gnome Builder,方法如下:
sudo apt-get install gir1.2-git2-glib-1.0