[Qgis-community-team] sphinx trouble

Otto Dassau dassau at gbd-consult.de
Thu May 23 02:23:53 PDT 2013


Hi Matteo,

as you already posted, the main error that causes the crash is this one:

# Sphinx version: 1.1.3
# Python version: 2.7.3
# Docutils version: 0.9 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/sphinx/cmdline.py", line 189, in
main app.build(force_all, filenames)
  File "/usr/lib/python2.7/site-packages/sphinx/application.py", line 204,
in build self.builder.build_update()
  File "/usr/lib/python2.7/site-packages/sphinx/builders/__init__.py", line
196, in build_update 'out of date' % len(to_build))
  File "/usr/lib/python2.7/site-packages/sphinx/builders/__init__.py", line
252, in build self.write(docnames, list(updated_docnames), method)
  File "/usr/lib/python2.7/site-packages/sphinx/builders/__init__.py", line
292, in write self.write_doc(docname, doctree)
  File "/usr/lib/python2.7/site-packages/sphinx/builders/html.py", line 419,
in write_doc self.docwriter.write(doctree, destination)
  File "/usr/lib/python2.7/site-packages/docutils/writers/__init__.py", line
77, in write self.translate()
  File "/usr/lib/python2.7/site-packages/sphinx/writers/html.py", line 38,
in translate self.document.walkabout(visitor)
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 173, in
walkabout if child.walkabout(visitor):
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 173, in
walkabout if child.walkabout(visitor):
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 173, in
walkabout if child.walkabout(visitor):
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 165, in
walkabout visitor.dispatch_visit(self)
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 1611, in
dispatch_visit return method(node)
  File
"/usr/lib/python2.7/site-packages/docutils/writers/html4css1/__init__.py",
line 973, in visit_footnote_reference href = '#' + node['refid'] File
"/usr/lib/python2.7/site-packages/docutils/nodes.py", line 541, in
__getitem__ return self.attributes[key] KeyError: 'refid'

I don't know why this happens. We don't use foootnotes within the 1.8
manual, because they are not supported for pdf. I will try to find out and
hopefully some others have an idea, too. The server uses the same sphinx
version 1.1.3 and there this error also occurs, so the italian translation
doesn't build.

Apart from that, in the logfile I found many more errors and warning that
you could try to solve, please. I think the description is pretty clear.
Below you see the .po file with its line and the error that exists. Often it
is just a problem of adding or removing line breaks \n in your
translation. You can see them with a normal text editor ...

btw: those errors and warnings appear in almost every language and should be
solved by the translators. 

############# LOGS FROM ITALIAN COMPILATION ###################

1) Compiling messages to
i18n/it/LC_MESSAGES/docs/user_manual/introduction/qgis_configuration.mo

i18n/it/LC_MESSAGES/docs/user_manual/introduction/qgis_configuration.po:127:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n«
i18n/it/LC_MESSAGES/docs/user_manual/introduction/qgis_configuration.po:140:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n«
i18n/it/LC_MESSAGES/docs/user_manual/introduction/qgis_configuration.po:176:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n«
i18n/it/LC_MESSAGES/docs/user_manual/introduction/qgis_configuration.po:614:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n« msgfmt: es sind 4
fatale Fehler aufgetreten

2) Compiling messages to
i18n/it/LC_MESSAGES/docs/user_manual/introduction/getting_started.mo

i18n/it/LC_MESSAGES/docs/user_manual/introduction/getting_started.po:116:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n«
i18n/it/LC_MESSAGES/docs/user_manual/introduction/getting_started.po:333:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n«
i18n/it/LC_MESSAGES/docs/user_manual/introduction/getting_started.po:370:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n«
i18n/it/LC_MESSAGES/docs/user_manual/introduction/getting_started.po:451:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n«
i18n/it/LC_MESSAGES/docs/user_manual/introduction/getting_started.po:462:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n« msgfmt: es sind 5
fatale Fehler aufgetreten

3) Compiling messages to
i18n/it/LC_MESSAGES/docs/user_manual/introduction/general_tools.mo

i18n/it/LC_MESSAGES/docs/user_manual/introduction/general_tools.po:838:
»msgid«- und »msgstr«-Eintrag enden nicht jeweils mit »\n« msgfmt: es ist 1
fataler Fehler aufgetreten

4) Compiling messages to
i18n/it/LC_MESSAGES/docs/user_manual/introduction/qgis_gui.mo

i18n/it/LC_MESSAGES/docs/user_manual/introduction/qgis_gui.po:125: »msgid«-
und »msgstr«-Eintrag enden nicht jeweils mit »\n« msgfmt: es ist 1 fataler
Fehler aufgetreten


5) Compiling messages to
i18n/it/LC_MESSAGES/docs/user_manual/plugins/plugins_evis.mo
i18n/it/LC_MESSAGES/docs/user_manual/plugins/plugins_evis.po:1045: »msgid«-
und »msgstr«-Eintrag enden nicht jeweils mit »\n«
i18n/it/LC_MESSAGES/docs/user_manual/plugins/plugins_evis.po:1059: »msgid«-
und »msgstr«-Eintrag enden nicht jeweils mit »\n« msgfmt: es sind 2 fatale
Fehler aufgetreten

6) ERRORS

/arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/introduction/general_tools.rst:548:
ERROR: Unknown target name:
"figure_view_embedded". /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_gps/live_GPS_tracking.rst:24:
ERROR: Unknown target name:
"figura_gps_options". /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_gps/plugins_gps.rst:52:
ERROR: Unknown target name:
"figura_gps_1". /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_raster/raster_calculator.rst:14:
ERROR: Unknown target name:
"figua_raster_2". /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_raster/raster_properties.rst:14:
ERROR: Unknown target name:
"figura_raster_1". /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/vector_properties.rst:987:
ERROR: Undefined substitution referenced: "nix|e forse su |osx".

7) WARNINGS

/arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/introduction/general_tools.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/introduction/getting_started.rst:1:
WARNING: Inline emphasis start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/introduction/getting_started.rst:1:
WARNING: Inline emphasis start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/introduction/getting_started.rst:2:
WARNING: Literal block expected; none
found. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/introduction/qgis_gui.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/plugins/plugins_offline_editing.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/plugins/plugins_offline_editing.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/plugins/plugins_offline_editing.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/editing_geometry_attributes.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/editing_geometry_attributes.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/editing_geometry_attributes.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/editing_geometry_attributes.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/editing_geometry_attributes.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/editing_geometry_attributes.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/editing_geometry_attributes.rst:1:
WARNING: Inline substitution_reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/editing_geometry_attributes.rst:1:
WARNING: Inline interpreted text or phrase reference start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/field_calculator.rst:1:
WARNING: Inline literal start-string without
end-string. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/supported_data.rst:2:
WARNING: Literal block expected; none
found. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/supported_data.rst:2:
WARNING: Literal block expected; none
found. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/supported_data.rst:2:
WARNING: Literal block expected; none
found. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/supported_data.rst:2:
WARNING: Literal block expected; none
found. /arbeit/svn/qgis-docs/QGIS-Documentation-18/source/docs/user_manual/working_with_vector/supported_data.rst:2:
WARNING: Literal block expected; none found.

Regards
Otto

Am Thu, 23 May 2013 09:34:25 +0200
schrieb matteo <matteo.ghetta at gmail.com>:

> Il 23/05/2013 09:28, Otto Dassau ha scritto:
> > Hi Matteo,
> >
> > you haven't sent me a po file yet with some notes, where in what
> > paragraph the error seems to be...
> >
> I should have sent you a .po file. It hasn't notes because the error 
> during the compiling refers to a hypothetic reference that doesn't exist 
> inside the file (:ref:`grass_digitizing`).
> 
> But I'm not sure if this causes the errors.
> What do you think about the other idea?
> 
> Cheers
> 
> Matteo
> 
> _______________________________________________
> Qgis-community-team mailing list
> Qgis-community-team at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-community-team


More information about the Qgis-community-team mailing list