[Numpy-discussion] numpy-docs and sphinx

Nils Wagner nwagner at iam.uni-stuttgart.de
Thu Nov 13 14:31:05 EST 2008


On Mon, 10 Nov 2008 08:42:16 +0100
  "Nils Wagner" <nwagner at iam.uni-stuttgart.de> wrote:
> Hi all,
> 
> I tried to build the NumPy Reference Guide.
> 
> svn/numpy-docs > make html
> mkdir -p build
> ./ext/autosummary_generate.py source/reference/*.rst \
>         -p dump.xml -o source/reference/generated
> Traceback (most recent call last):
>   File "./ext/autosummary_generate.py", line 18, in ?
>     from autosummary import import_by_name
>   File 
> "/data/home/nwagner/svn/numpy-docs/ext/autosummary.py", 
> line 59, in ?
>     import sphinx.addnodes, sphinx.roles, sphinx.builder
>   File 
> "/data/home/nwagner/local/lib/python2.5/site-packages/Sphinx-0.5dev_20081110-py2.5.egg/sphinx/__init__.py", 
> line 70
>     '-c' not in (opt[0] for opt in opts):
>                           ^
> SyntaxError: invalid syntax
> make: *** [build/generate-stamp] Fehler 1
> 
> How can I fix that problem ?
> 
> Nils
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion


make html in numpy-docs works for me now, but
make html in scipy-docs failed

WARNING: 
/home/nwagner/svn/scipy-docs/source/stats.rst:206: 
(WARNING/2) toctree references unknown document 
u'generated/meanwhitneyu'
WARNING: /home/nwagner/svn/scipy-docs/source/stats.rst:: 
(WARNING/2) failed to import anova
WARNING: 
/home/nwagner/svn/scipy-docs/source/stats.rst:236: 
(WARNING/2) toctree references unknown document 
u'generated/anova'
pickling environment... done
checking consistency... WARNING: 
/home/nwagner/svn/scipy-docs/source/spatial.distance.rst:: 
document isn't included in any toctree
done
preparing documents... done
writing output... cluster cluster.hierarchy Math extension 
error:
latex exited with error:
[stderr]

[stdout]
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./math.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, 
french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, 
danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, 
magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, 
spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX 
document class
(/usr/share/texmf/tex/latex/base/size12.clo))
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/share/texmf/tex/latex/base/utf8.def
(/usr/share/texmf/tex/latex/base/t1enc.dfu)
(/usr/share/texmf/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf/tex/latex/base/omsenc.dfu)))
(/usr/share/texmf/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf/tex/latex/amsmath/amstext.sty
(/usr/share/texmf/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf/tex/latex/amscls/amsthm.sty)
(/usr/share/texmf/tex/latex/amsfonts/amssymb.sty
(/usr/share/texmf/tex/latex/amsfonts/amsfonts.sty))
(/usr/share/texmf/tex/latex/tools/bm.sty)
(/usr/share/texmf/tex/latex/preview/preview.sty
No auxiliary output files.

)
No file math.aux.
Preview: Fontsize 12pt
(/usr/share/texmf/tex/latex/amsfonts/umsa.fd)
(/usr/share/texmf/tex/latex/amsfonts/umsb.fd)
! Display math should end with $$.
<to be read again>
                    `
l.14 $$ij$`
            th entry is the cophenetic distance between
! Missing $ inserted.
<inserted text>
                 $
l.16 \end{preview}

[1] )
(see the transcript file for additional information)
Output written on math.dvi (1 page, 332 bytes).
Transcript written on math.log.

make: *** [html] Fehler 1
  
Nils




More information about the NumPy-Discussion mailing list