Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0.0: regression: rst bullet lists in design docs (https://github.com/cea-hpc/modules/issues/306)? #413

Closed
balducci opened this issue Sep 20, 2021 · 4 comments
Labels
Milestone

Comments

@balducci
Copy link

hi

build of 5.0.0 fails for me with:

  GEN doc/build/*.txt
/usr/bin/sphinx-build -q -b text "source" "build"

Exception occurred:
  File "/usr/python3/site_python3/lib64/Sphinx.egg/sphinx/writers/text.py", line 853, in visit_definition_list_item
    self._classifier_count_in_li = len(node.traverse(nodes.classifier))
TypeError: object of type 'generator' has no len()
The full traceback has been saved in /tmp/sphinx-err-z6x5h6on.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[2]: *** [Makefile:93: build/CONTRIBUTING.txt] Error 2
make[1]: *** [Makefile:94: pkgdoc] Error 2
make[1]: Leaving directory '/home/balducci/tmp/install-us-d/modules-5.0.0.d/modules-5.0.0'

Turns out that this is due to doc/source/design/variants.rst being broken in the same way as described in #306

Applying the same fix as then allows the build to complete successfully.

Using Sphinx-4.2.0

Thanks a lot for your work

ciao
-gabriele

@balducci balducci added the bug label Sep 20, 2021
@xdelaruelle
Copy link
Member

Hi @balducci

Do you have any specific Sphinx configuration to obtain such error? I would like to reproduce the error you get on my side to be sure that I correctly fix the rst files.

Ciao,
Xavier

@xdelaruelle
Copy link
Member

I have just fixed the one list entry with missing space line before and after in variant.rst (see 508ec274 commit). I have only found this one issue.

I would be glad to get a setup on my side to reproduce the issue you face. Even after trying different version of Sphinx (3.4.2, 4.1.2, 4.2.0) and different verbosity configuration, I am not able to spot such issues.

@balducci
Copy link
Author

hello

I would be glad to get a setup on my side to reproduce the issue you face. Even after trying different version of Sphinx (3.4.2, 4.1.2, 4.2.0) and different verbosity configuration, I am not able to spot such issues.

apparently it's docutils that makes the difference

With the last official version, 0.17.1, the rst files are processed
without errors

I maintain docutils from svn and recent svn versions do show the error

In particular, I use revision 8759 for building modules, and that
gives the error

But note: revisions >= 8759 give a different error, which I never took
the time to investigate (however, revisions >= 8759 give this error
with modules only: current svn master docutils, 8831, works fine for
any other build)

So, if you use svn revision 8759 of docutils you should be able to
reproduce the error

ciao
-gabriele

@xdelaruelle
Copy link
Member

xdelaruelle commented Sep 21, 2021

Thanks for these information. I am now able to reproduce the issue with revision 8759 of docutils. I can also say that commit f508ec2 fixes the issue reported here.

Ciao,
Xavier

@xdelaruelle xdelaruelle added this to the 5.0.1 milestone Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants