Skip to content

QST: Error while building document #63477

@Manjugadupudi

Description

@Manjugadupudi

Research

  • I have searched the [pandas] tag on StackOverflow for similar questions.

  • I have asked my usage related question on StackOverflow.

Link to question on StackOverflow

https://stackoverflow.com/questions/30807270/build-pandas-documentation-from-source-using-installed-pandas-rather-than-an-inp

Question about pandas

I am trying to build documentation in my system as per the instructions, [here](https://pandas.pydata.org/docs/dev/development/contributing_documentation.html#how-to-build-the-pandas-documentation). Here is the error message,

Traceback =========
Traceback (most recent call last):
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\cmd\build.py", line 432, in build_main
    app.build(args.force_all, args.filenames)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\application.py", line 426, in build
    self.builder.build_update()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\builders\__init__.py", line 375, in build_update
    self.build(
    ~~~~~~~~~~^
        to_build,
        ^^^^^^^^^
    ...<2 lines>...
        method='update',
        ^^^^^^^^^^^^^^^^
    )
    ^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\builders\__init__.py", line 403, in build
    updated_docnames = set(self.read())
                           ~~~~~~~~~^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\builders\__init__.py", line 519, in read
    self._read_serial(docnames)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\builders\__init__.py", line 584, in _read_serial
    self.read_doc(docname)
    ~~~~~~~~~~~~~^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\builders\__init__.py", line 648, in read_doc
    publisher.publish()
    ~~~~~~~~~~~~~~~~~^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\core.py", line 234, in publish
    self.document = self.reader.read(self.source, self.parser,
                    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
                                     self.settings)
                                     ^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\io.py", line 103, in read
    self.parse()
    ~~~~~~~~~~^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\readers\__init__.py", line 76, in parse
    self.parser.parse(self.input, document)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\sphinx\parsers.py", line 86, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 169, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
                                 input_source=document['source'])
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
                                  ~~~~~~~~~~~~~~~^
        context, state, transitions)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 3034, in text
    self.section(title.lstrip(), source, style, lineno + 1, messages)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 325, in section
    self.new_subsection(title, lineno, messages)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 391, in new_subsection
    newabsoffset = self.nested_parse(
          self.state_machine.input_lines[offset:], input_offset=absoffset,
          node=section_node, match_titles=True)
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 279, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      node=node, match_titles=match_titles)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
                                  ~~~~~~~~~~~~~~~^
        context, state, transitions)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 2790, in underline
    self.section(title, source, style, lineno - 1, messages)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 325, in section
    self.new_subsection(title, lineno, messages)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 391, in new_subsection
    newabsoffset = self.nested_parse(
          self.state_machine.input_lines[offset:], input_offset=absoffset,
          node=section_node, match_titles=True)
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 279, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      node=node, match_titles=match_titles)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\statemachine.py", line 233, in run
    context, next_state, result = self.check_line(
                                  ~~~~~~~~~~~~~~~^
        context, state, transitions)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\statemachine.py", line 445, in check_line
    return method(match, context, next_state)
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 2357, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
                             ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 2369, in explicit_construct
    return method(self, expmatch)
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 2106, in directive
    return self.run_directive(
           ~~~~~~~~~~~~~~~~~~^
        directive_class, match, type_name, option_presets)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\docutils\parsers\rst\states.py", line 2156, in run_directive
    result = directive_instance.run()
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\IPython\sphinxext\ipython_directive.py", line 1035, in run
    rows, figure = self.shell.process_block(block)
                   ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\IPython\sphinxext\ipython_directive.py", line 733, in process_block
    self.process_input(data, input_prompt, lineno)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\xxxxx\pandasDev\pandas\pandasvenv\Lib\site-packages\IPython\sphinxext\ipython_directive.py", line 585, in process_input
    raise RuntimeError(
        "Unexpected exception in `{}` line {}".format(filename, lineno)
    )
RuntimeError: Unexpected exception in `C:\Users\xxxxx\pandasDev\pandas\doc\source\user_guide\io.rst` line 5478

Wondering if everyone is same error or it is just for me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildLibrary building on various platformsDocs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions