Take a look at the upstream https://github.com/numpy/numpydoc/blob/master/numpydoc/numpydoc.py. I think we made some changes to one of the extensions (the one I remember is support for arbitrary headers), so we can't just copy it over without merging in the changes.
Aaron Meurer On Sep 4, 2013, at 6:10 AM, Stephen Loo <[email protected]> wrote: Thanks Aaron. Now I try to fix it, I replace all "ur" literals with "r" literals, but got the following error message. Any idea? Stephen $ make html mkdir -p _build/i18n/ mkdir -p _build/html/tutorial true mkdir -p src/.static mkdir -p _build/html mkdir -p _build/doctrees mkdir -p src/modules PYTHONPATH=..: sphinx-build -b html -d _build/doctrees src _build/html Running Sphinx v1.1.3 loading pickled environment... done building [html]: targets for 197 source files that are out of date updating environment: 0 added, 143 changed, 0 removed reading sources... [100%] modules/utilities/timeutils looking for now-outdated files... none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 96%] tutorial/manipulation Exception occurred: File "/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/sphinx/ext/graphviz.py" , line 125, in render_dot str(self.builder.config.graphviz_dot) + \ TypeError: can't concat bytes to str The full traceback has been saved in /var/folders/xl/4v9br5d48xjc1t001s67kd6r0000gp/T/sphinx-err-e650ku.log, if you want to report the issue to the developers. Please also report this if it was a user error, so that a better error message can be provided next time. Either send bugs to the mailing list at < http://groups.google.com/group/sphinx-dev/>, or report them in the tracker at < http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks! make: *** [html] Error 1 Aaron Meurer於 2013年9月4日星期三UTC+8上午7時39分08秒寫道: > > These are the extensions in doc/ext/. In particular, the numpydoc > extension doesn't work, because it uses unicode raw literals (for some > reason, these aren't even supported in Python 3.3). But this is > unnecessary because there are no unicode characters in the string. > They should be fixed to be Python 2/3 compatible. Contributions > welcome! > > Aaron Meurer > > On Sun, Sep 1, 2013 at 8:14 PM, Stephen Loo <[email protected]<javascript:>> > wrote: > > Thanks Aaron and Thilina > > > > Aaron Meurer於 2013年9月1日星期日UTC+8下午11時33分46秒寫道: > >> > >> Unfortunately, the docs extensions were not converted to Python 3, so > you > >> currently have to use the Python 2 version of Sphinx. > >> > >> Aaron Meurer > >> > >> On Sep 1, 2013, at 7:16 AM, Stephen Loo <[email protected]> wrote: > >> > >> Hi all, > >> > >> I try to build document with current master, but got following message, > >> > >> $ make html > >> mkdir -p _build/i18n/ > >> mkdir -p _build/html/tutorial > >> true > >> mkdir -p src/.static > >> mkdir -p _build/html > >> mkdir -p _build/doctrees > >> mkdir -p src/modules > >> PYTHONPATH=..: sphinx-build -b html -d _build/doctrees src _build/html > >> Running Sphinx v1.1.3 > >> > >> > >> Exception occurred: > >> File > >> > "/usr/local/Cellar/python3/3.3.2/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/sphinx/application.py", > > >> line 247, in setup_extension > >> mod = __import__(extension, None, None, ['setup']) > >> File "ext/numpydoc.py", line 41 > >> title_re = re.compile(ur'^\s*[#*=]{4,}\n[a-z0-9 -]+\n[#*=]{4,}\s*', > >> ^ > >> SyntaxError: invalid syntax > >> The full traceback has been saved in > >> /var/folders/xl/4v9br5d48xjc1t001s67kd6r0000gp/T/sphinx-err-oqco8x.log, > if > >> you want to report the issue to the developers. > >> Please also report this if it was a user error, so that a better error > >> message can be provided next time. > >> Either send bugs to the mailing list at > >> <http://groups.google.com/group/sphinx-dev/>, > >> or report them in the tracker at > >> <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks! > >> make: *** [html] Error 1 > >> > >> > >> Any idea? > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "sympy" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to [email protected]. > >> To post to this group, send email to [email protected]. > >> > >> Visit this group at http://groups.google.com/group/sympy. > >> For more options, visit https://groups.google.com/groups/opt_out. > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "sympy" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > To post to this group, send email to [email protected]<javascript:>. > > > Visit this group at http://groups.google.com/group/sympy. > > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
