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

'generator' object has no attribute '__getitem__' #8663

Closed
ymarcon opened this issue Nov 10, 2021 · 2 comments
Closed

'generator' object has no attribute '__getitem__' #8663

ymarcon opened this issue Nov 10, 2021 · 2 comments
Labels
Support Support question

Comments

@ymarcon
Copy link

ymarcon commented Nov 10, 2021

Hi,

2 weeks ago the build was passing like a charm:
https://readthedocs.org/projects/obiba-opal/builds/15094617/

The very same base code now fails with error 'generator' object has no attribute '__getitem__':
https://readthedocs.org/projects/obiba-opal/builds/15232225/

Do you have an idea why this happens?

@astrojuanlu astrojuanlu added Needed: more information A reply from issue author is required Support Support question labels Nov 10, 2021
@astrojuanlu
Copy link
Contributor

Hi @ymarcon, looks like the first build has docutils 0.17 and the second one docutils 0.18, so the issue has probably the same root cause as sphinx-doc/sphinx#9834, sphinx-doc/sphinx#9811, sphinx-doc/sphinx#9810, sphinx-doc/sphinx#9809, sphinx-doc/sphinx#9727, sphinx-doc/sphinx#9788, #8616 , #8618, #8640, #8642. You can solve this by capping docutils to <0.18 in your requirements. More information here: https://blog.readthedocs.com/build-errors-docutils-0-18/

Finally, I would encourage you to migrate your documentation to Python 3. You can do so using the new v2 configuration files, see https://docs.readthedocs.io/en/stable/config-file/v2.html for reference.

@ymarcon
Copy link
Author

ymarcon commented Nov 10, 2021

Thanks for the tip! I will migrate to Py3 as well.

@ymarcon ymarcon closed this as completed Nov 10, 2021
@no-response no-response bot removed the Needed: more information A reply from issue author is required label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants