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

Builds failing with message to report it #4565

Closed
markcmiller86 opened this issue Aug 23, 2018 · 7 comments
Closed

Builds failing with message to report it #4565

markcmiller86 opened this issue Aug 23, 2018 · 7 comments
Labels
Bug A bug Support Support question

Comments

@markcmiller86
Copy link

Details

Builds are failing with this message...

Error

There was a problem with Read the Docs while building your documentation. Please report this to us with your build id (7681147).

Expected Result

A vanilla local build runs fine so expect same on RTD

@stsewd stsewd added the Support Support question label Aug 23, 2018
@stsewd
Copy link
Member

stsewd commented Aug 23, 2018

I build your project in my local instance, I got this WARNING Conf file specified on model doesn't exist. You have a misconfiguration there, would be better if you use a rtd configuration file https://docs.readthedocs.io/en/latest/yaml-config.html

@stsewd
Copy link
Member

stsewd commented Aug 23, 2018

Although the correct error should be shown, I got this traceback

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/stsewd/rtd/readthedocs.org/readthedocs/projects/tasks.py", line 492, in run_build
    outcomes = self.build_docs()
  File "/home/stsewd/rtd/readthedocs.org/readthedocs/projects/tasks.py", line 684, in build_docs
    outcomes['html'] = self.build_docs_html()
  File "/home/stsewd/rtd/readthedocs.org/readthedocs/projects/tasks.py", line 700, in build_docs
    html_builder.append_conf()
  File "/home/stsewd/rtd/readthedocs.org/readthedocs/doc_builder/backends/sphinx.py", line 170,
    trace
  File "/home/stsewd/.pyenv/versions/rtd/lib/python3.6/site-packages/six.py", line 690, in rerai
    value = tp()
TypeError: 'ProjectConfigurationError' object is not callable

Investigating...

@stsewd stsewd added the Bug A bug label Aug 23, 2018
@stsewd
Copy link
Member

stsewd commented Aug 23, 2018

I found the bug about rtd no reporting the correct message, but you original problem is having a wrong configuration.

@markcmiller86
Copy link
Author

@stsewd Thanks so much for looking into this! That said, I use pretty much the identical conf.py file in another RTD hosted project without issue, https://readthedocs.org/projects/visit-sphinx-user-manual.

As an aside, can you recommend best way to run sphinx locally to emulate/duplicate behavior of RTD?

@stsewd
Copy link
Member

stsewd commented Aug 23, 2018

The main problem with this project is that it has 2 conf.py files, then rtd first tries to load the one from the admin panel, which doesn't exist, then it tries to find one for itself, it found 2 (conf.py and tests/conf.py). So it raises an exception instead of choosing one.

About your other question, you can run the same commands that are shown in the build page.

@markcmiller86
Copy link
Author

Ok, super. Thx. Fixed now and its generating!

@RichardLitt
Copy link
Member

Glad you got it fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug Support Support question
Projects
None yet
Development

No branches or pull requests

3 participants