Hello,

when running the latest Sphinx development version using Python 2.5, I
get the above error message. That's because autodoc requires Python >=
2.6. Best workaround is probably to upgrade my Python version.

Just wanted to share this because it took me some time to understand and
in case somebody else gets this problem.

I attached a detailed error log (I had to comment out a try...except
handler in `sphinx.ext.autodoc.Documenter.format_signature` to get this).

Luc

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

# Sphinx version: 1.1pre/ce4bb37a1409+
# Python version: 2.5.2
# Docutils version: 0.7 release
# Jinja2 version: unknown
Traceback (most recent call last):
  File "l:\snapshots\sphinx\sphinx\cmdline.py", line 184, in main
    app.build(force_all, filenames)
  File "l:\snapshots\sphinx\sphinx\application.py", line 210, in build
    self.builder.build_update()
  File "l:\snapshots\sphinx\sphinx\builders\__init__.py", line 196, in 
build_update
    'out of date' % len(to_build))
  File "l:\snapshots\sphinx\sphinx\builders\__init__.py", line 216, in build
    purple, length):
  File "l:\snapshots\sphinx\sphinx\builders\__init__.py", line 120, in 
status_iterator
    for item in iterable:
  File "l:\snapshots\sphinx\sphinx\environment.py", line 615, in 
update_generator
    self.read_doc(docname, app=app)
  File "l:\snapshots\sphinx\sphinx\environment.py", line 762, in read_doc
    pub.publish()
  File "l:\snapshots\docutils\docutils\core.py", line 203, in publish
    self.settings)
  File "l:\snapshots\docutils\docutils\readers\__init__.py", line 69, in read
    self.parse()
  File "l:\snapshots\docutils\docutils\readers\__init__.py", line 75, in parse
    self.parser.parse(self.input, document)
  File "l:\snapshots\docutils\docutils\parsers\rst\__init__.py", line 157, in 
parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 170, in run
    input_source=document['source'])
  File "l:\snapshots\docutils\docutils\statemachine.py", line 233, in run
    context, state, transitions)
  File "l:\snapshots\docutils\docutils\statemachine.py", line 454, in check_line
    return method(match, context, next_state)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 2706, in 
underline
    self.section(title, source, style, lineno - 1, messages)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 329, in 
section
    self.new_subsection(title, lineno, messages)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 398, in 
new_subsection
    node=section_node, match_titles=1)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 284, in 
nested_parse
    node=node, match_titles=match_titles)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "l:\snapshots\docutils\docutils\statemachine.py", line 233, in run
    context, state, transitions)
  File "l:\snapshots\docutils\docutils\statemachine.py", line 454, in check_line
    return method(match, context, next_state)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 2706, in 
underline
    self.section(title, source, style, lineno - 1, messages)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 329, in 
section
    self.new_subsection(title, lineno, messages)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 398, in 
new_subsection
    node=section_node, match_titles=1)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 284, in 
nested_parse
    node=node, match_titles=match_titles)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "l:\snapshots\docutils\docutils\statemachine.py", line 233, in run
    context, state, transitions)
  File "l:\snapshots\docutils\docutils\statemachine.py", line 454, in check_line
    return method(match, context, next_state)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 2281, in 
explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 2293, in 
explicit_construct
    return method(self, expmatch)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 2035, in 
directive
    directive_class, match, type_name, option_presets)
  File "l:\snapshots\docutils\docutils\parsers\rst\states.py", line 2086, in 
run_directive
    result = directive_instance.run()
  File "l:\snapshots\sphinx\sphinx\ext\autodoc.py", line 1295, in run
    documenter.generate(more_content=self.content)
  File "l:\snapshots\sphinx\sphinx\ext\autodoc.py", line 727, in generate
    self.document_members(all_members)
  File "l:\snapshots\sphinx\sphinx\ext\autodoc.py", line 652, in 
document_members
    check_module=members_check_module and not isattr)
  File "l:\snapshots\sphinx\sphinx\ext\autodoc.py", line 714, in generate
    sig = self.format_signature()
  File "l:\snapshots\sphinx\sphinx\ext\autodoc.py", line 984, in 
format_signature
    return ModuleLevelDocumenter.format_signature(self)
  File "l:\snapshots\sphinx\sphinx\ext\autodoc.py", line 388, in 
format_signature
    args = self.format_args()
  File "l:\snapshots\sphinx\sphinx\ext\autodoc.py", line 972, in format_args
    argspec = getargspec(initmeth)
  File "l:\snapshots\sphinx\sphinx\util\inspect.py", line 45, in getargspec
    return inspect.ArgSpec(args, varargs, varkw, func_defaults)
AttributeError: 'module' object has no attribute 'ArgSpec'

Reply via email to