Skip to content

NoneType attribute error 'name' #186

Closed
@fmigneault

Description

@fmigneault

Getting the following error when running sphinx's makefile with sphinx-autoapi>=1.2 during the autoapi generation steps.

Running the same command with sphinx-autoapi<1.2 doesn't generate this error.
Using sphinx 2.2.2, also reproduced on 2.0.1.

Exception occurred:
  File "[...]/lib/python3.7/site-packages/autoapi/mappers/python/astroid_utils.py", line 392, in _format_args
    argname = arg.name
AttributeError: 'NoneType' object has no attribute 'name'
The full traceback has been saved in /tmp/sphinx-err-0ri9fabe.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.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Makefile:54: recipe for target 'html' failed
make: *** [html] Error 2

Reference log of the error: sphinx.log

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions