Skip to content

Maint: doc build error, dev docs not updating #8432

Closed

Description

@josef-pkt

It looks like there is a fatal error in the docbuild, most likely pandas incompatibility

seems to be the same in main after each of the last few merges
doc build in some PRs was still green (?)

dev docs were last updated Aug.27

WARNING: 
>>>-------------------------------------------------------------------------
Warning in /home/runner/work/statsmodels/statsmodels/docs/source/contrasts.rst at block ending on line 166
Specify :okwarning: as an option in the ipython:: block to suppress this message
----------------------------------------------------------------------------
<ipython-input-41-a29d75116d4c>:1: FutureWarning: The behavior of `series[i:j]` with an integer-dtype index is deprecated. In a future version, this will be treated as *label-based* indexing, consistent with e.g. `series[i]` lookups. To retain the old behavior, use `series.iloc[i:j]`. To get the future behavior, use `series.loc[i:j]`.
  grouped.mean()["write"][4] - grouped.mean()["write"][:3].mean()
<<<-------------------------------------------------------------------------

Exception occurred:
  File "/opt/hostedtoolcache/Python/3.10.7/x64/lib/python3.10/site-packages/IPython/sphinxext/ipython_directive.py", line 600, in process_input
    raise RuntimeError('Non Expected warning in `{}` line {}'.format(filename, lineno))
RuntimeError: Non Expected warning in `/home/runner/work/statsmodels/statsmodels/docs/source/contrasts.rst` line 166
The full traceback has been saved in /tmp/sphinx-err-tiuz6r1l.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!
make: *** [Makefile:39: html] Error 2
Error: Process completed with exit code 2.

Activity

  1. added this to the 0.14 milestone on Oct 10, 2022
  2. josef-pkt commented on Oct 10, 2022

    @josef-pkt
    MemberAuthor

    @bashtage Do you have any idea where to start debugging?

    I don't know what has changed that might have caused this.

  3. josef-pkt commented on Oct 10, 2022

    @josef-pkt
    MemberAuthor

    docbuild started to fail when pandas 1.5.0 was used instead of pandas 1.4.3

    first failing merge is for #8411, that's the first time pandas 1.5.0 was used
    https://github.com/statsmodels/statsmodels/actions/runs/3086160158/jobs/4990229240#step:11:2156

    Collecting pandas>=1.0
    Downloading pandas-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB)

  4. josef-pkt commented on Oct 10, 2022

    @josef-pkt
    MemberAuthor

    I guess the underlying problem is the pandas incompatibility in the future warning, i.e. not using iloc.
    However, a problem like this should not be fatal, so there is still something fishy.

    I will prepare a PR to change the constrast notebook

  5. bashtage commented on Oct 10, 2022

    @bashtage
    Member
  6. josef-pkt commented on Oct 10, 2022

    @josef-pkt
    MemberAuthor

    Now that we (or I) know where to look for problems, it might be better to keep that the docbuild breaks.
    Otherwise we will not easily find out whether there are problems with the rst docs.

  7. josef-pkt commented on Oct 11, 2022

    @josef-pkt
    MemberAuthor

    fixed in #8433

  8. modified the milestones: 0.14, 0.13.2, 0.13.3 on Oct 30, 2022
  9. modified the milestones: 0.13.3, 0.14 on Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions