我正在尝试通过sphinx工具为我的软件创建文档,所以我运行了sphinx-quickstart
,它就一切正常了。
然后我必须运行 make html
(刚刚创建的doc文件夹中)和我收到错误。我不知道如何解决这个错误:
Running Sphinx v1.2.2
loading pickled environment... not yet created
building [html]: targets for 1 source files that are out of date
updating environment: 1 added, 0 changed, 0 removed
reading sources... [100%] index
** (sphinx-build:2390): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
import gobject._gobject
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type 'PyGtkGenericCellRenderer' is smaller than the parent type's 'GtkCellRenderer' class size
from gtk import _gtk
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion 'node != NULL' failed
from gtk import _gtk
make: *** [html] Ucciso
我上网了,我提示 help('modules')
:
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
import gobject._gobject
你能帮我吗?
答案 0 :(得分:0)
一些研究表明这里存在两个问题,这些问题可能相互关联,也可能不相关,但都与Ubuntu有关,我认为你必须运行它。
如果您尚未启用Ubuntu的辅助功能,则“辅助功能总线”可能无法使用。如果您不打算这样做,则the simple workaround将运行
export NO_AT_BRIDGE=1
在运行Sphinx之前的shell提示符下。或者,您可以add this setting under /etc/env.d
并重新启动以使其永久化。
幸运的是,这将解决整个问题,但在可能的情况下,它不会:
在最新版本的Ubuntu上有a known issue个PyGTK可以产生你看到的GTK警告(并且经常出现分段错误)。这个apparently has to do with PyGTK从针对GTK库的静态绑定转换为动态绑定;如果您创建的软件尝试同时使用两种类型的绑定,则可能会触发此问题。
除了在the bug report尝试的一些想法之外,似乎还没有好的解决方案。