Skip to content

Compilation issue with build #8533245 #5250

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

Closed
gmazoyer opened this issue Feb 7, 2019 · 7 comments
Closed

Compilation issue with build #8533245 #5250

gmazoyer opened this issue Feb 7, 2019 · 7 comments
Labels
Support Support question

Comments

@gmazoyer
Copy link

gmazoyer commented Feb 7, 2019

Details

Expected Result

Doc is being generated without any errors.

Actual Result

The build starts as usual and steps are being passed until the actual mkdocs build step. This step fails a StopIteration exception being raised.

@ericholscher
Copy link
Member

This looks like a bug in your configuration, not something that is an issue with Read the Docs.

@ericholscher ericholscher added the Support Support question label Feb 7, 2019
@stsewd
Copy link
Member

stsewd commented Feb 7, 2019

Does it build locally? Also, it can be an incompatibility with python 3.7. We upgrade our default interpreter.

@gmazoyer
Copy link
Author

gmazoyer commented Feb 7, 2019

I tried building it locally, using python 3.7, with no luck same issue.

I can try building it with a python version prior to 3.7 if it can help.

@stsewd
Copy link
Member

stsewd commented Feb 7, 2019

I tried building it locally, using python 3.7, with no luck same issue.

Then, looks like a problem outside read the docs. We can close this issue if so.

@gmazoyer
Copy link
Author

gmazoyer commented Feb 7, 2019

I tried building it locally, using python 3.7, with no luck same issue.

Then, looks like a problem outside read the docs. We can close this issue if so.

I tried compiling it using python 3.5 and it works fine.

# python .venv/bin/mkdocs build --clean --site-dir _build/html --config-file mkdocs.yml
INFO    -  Cleaning site directory
INFO    -  Building documentation to directory: /root/test/_build/html
# ls _build/html
404.html  config-template  css  fonts  img  index.html  integration  js  man  search  search.html  setup  sitemap.xml
`
``

@stsewd
Copy link
Member

stsewd commented Feb 7, 2019

You can change the python interpreter using a configuration file https://docs.readthedocs.io/en/stable/config-file/v2.html

@gmazoyer
Copy link
Author

gmazoyer commented Feb 8, 2019

It works with the following configuration:

version: 2

python:
  version: 3.5

mkdocs:
  configuration: mkdocs.yml

I guess this issue can be closed.

@stsewd stsewd closed this as completed Feb 8, 2019
nodiscc added a commit to shaarli/Shaarli that referenced this issue Mar 30, 2019
workaround for mkdocs incompatibility with python 3.7
readthedocs/readthedocs.org#5250
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

3 participants