I am running ubuntu 10.10 x86_64, and installed sphinx using "sudo apt-
get install python-sphinx"; this pulled in the following two packages:

Get:1 http://gb.archive.ubuntu.com/ubuntu/ maverick-updates/main
python-jinja2 amd64 2.5.2-2ubuntu1 [160kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ maverick/main python-sphinx
all 0.6.6-1 [508kB]

Now I'm trying to run it on the django-1.3 documentation (in the
released django 1.3 tarball). Unfortunately, it falls over. Here is
the output I get:

brian@x100:/v/downloads/Django-1.3/docs$ make html
sphinx-build -b djangohtml -d _build/doctrees   . _build/html
Making output directory...
Running Sphinx v0.6.6
loading pickled environment... not found
building [djangohtml]: targets for 205 source files that are out of
date
updating environment: 205 added, 0 changed, 0 removed
reading sources... [  3%] faq/models
Exception occurred:
  File "/v/downloads/Django-1.3/docs/_ext/djangodocs.py", line 86, in
run
    xrefs = roles.XRefRole()('doc', linktext, linktext, self.lineno,
self.state)
AttributeError: 'module' object has no attribute 'XRefRole'
The full traceback has been saved in /tmp/sphinx-err-bzgDas.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

The offending code is within 'class VersionDirective(Directive):', and
here's part of the traceback:

# Sphinx version: 0.6.6
# Docutils version: 0.6 release
...
in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/pymodules/python2.6/docutils/statemachine.py", line
233, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.6/docutils/statemachine.py", line
421, in check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.6/docutils/parsers/rst/states.py",
line 2258, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/lib/pymodules/python2.6/docutils/parsers/rst/states.py",
line 2270, in explicit_construct
    return method(self, expmatch)
  File "/usr/lib/pymodules/python2.6/docutils/parsers/rst/states.py",
line 2013, in directive
    directive_class, match, type_name, option_presets)
  File "/usr/lib/pymodules/python2.6/docutils/parsers/rst/states.py",
line 2062, in run_directive
    result = directive_instance.run()
  File "/v/downloads/Django-1.3/docs/_ext/djangodocs.py", line 86, in
run
    xrefs = roles.XRefRole()('doc', linktext, linktext, self.lineno,
self.state)
AttributeError: 'module' object has no attribute 'XRefRole'


Any suggestions what's going on here? Is the version of python-sphinx
in Ubuntu too old to work with this document?

Thanks,

Brian.

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to