{"action":"created","issue":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1240","labels_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1240/labels{/name}","comments_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1240/comments","events_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1240/events","html_url":"https://github.com/rtfd/readthedocs.org/issues/1240","id":71891527,"number":1240,"title":"Weird build errors (\"contents.doctree\" doesn't exist)","user":{"login":"pitrou","id":1721820,"avatar_url":"https://avatars.githubusercontent.com/u/1721820?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrou","html_url":"https://github.com/pitrou","followers_url":"https://api.github.com/users/pitrou/followers","following_url":"https://api.github.com/users/pitrou/following{/other_user}","gists_url":"https://api.github.com/users/pitrou/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrou/subscriptions","organizations_url":"https://api.github.com/users/pitrou/orgs","repos_url":"https://api.github.com/users/pitrou/repos","events_url":"https://api.github.com/users/pitrou/events{/privacy}","received_events_url":"https://api.github.com/users/pitrou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-29T14:29:43Z","updated_at":"2015-07-06T12:43:28Z","closed_at":"2015-07-06T12:42:41Z","body":"In my project, I had to disable the \"setup.py install\" step because it would entail a C++ compilation step that's not possible on the readthedocs server (I did this by calling sys.exit() when the READTHEDOCS env var is set).\r\n\r\nThen I get build errors every time a html build is submitted:\r\n\r\n```\r\nhtml\r\n-----\r\n\r\n/var/build/user_builds/llvmlite/checkouts/latest/docs/source/index.rst:5: WARNING: toctree contains reference to nonexisting document u'source/developer/index'\r\nWARNING: master file /var/build/user_builds/llvmlite/checkouts/latest/docs/contents.rst not found\r\n/var/build/user_builds/llvmlite/checkouts/latest/docs/source/index.rst:: WARNING: document isn't included in any toctree\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/cmdline.py\", line 254, in main\r\n    app.build(force_all, filenames)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/application.py\", line 212, in build\r\n    self.builder.build_update()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/builders/__init__.py\", line 214, in build_update\r\n    'out of date' % len(to_build))\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/builders/__init__.py\", line 276, in build\r\n    self.write(docnames, list(updated_docnames), method)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/builders/__init__.py\", line 320, in write\r\n    self._write_serial(sorted(docnames), warnings)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/builders/__init__.py\", line 331, in _write_serial\r\n    doctree = self.env.get_and_resolve_doctree(docname, self)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/environment.py\", line 1110, in get_and_resolve_doctree\r\n    doctree = self.get_doctree(docname)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/environment.py\", line 1093, in get_doctree\r\n    f = open(doctree_filename, 'rb')\r\nIOError: [Errno 2] No such file or directory: u'/var/build/user_builds/llvmlite/checkouts/latest/docs/_build/html/.doctrees/contents.doctree'\r\n\r\nException occurred:\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/llvmlite/envs/latest/local/lib/python2.7/site-packages/sphinx/environment.py\", line 1093, in get_doctree\r\n    f = open(doctree_filename, 'rb')\r\nIOError: [Errno 2] No such file or directory: u'/var/build/user_builds/llvmlite/checkouts/latest/docs/_build/html/.doctrees/contents.doctree'\r\nThe full traceback has been saved in /tmp/sphinx-err-n4Ea8S.log, if you want to report the issue to the developers.\r\nPlease also report this if it was a user error, so that a better error message can be provided next time.\r\nA bug report can be filed in the tracker at <https://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!\r\n```\r\n\r\nYou can see for yourself at https://readthedocs.org/builds/llvmlite/2681722/\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/comments/118842542","html_url":"https://github.com/rtfd/readthedocs.org/issues/1240#issuecomment-118842542","issue_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1240","id":118842542,"user":{"login":"pitrou","id":1721820,"avatar_url":"https://avatars.githubusercontent.com/u/1721820?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrou","html_url":"https://github.com/pitrou","followers_url":"https://api.github.com/users/pitrou/followers","following_url":"https://api.github.com/users/pitrou/following{/other_user}","gists_url":"https://api.github.com/users/pitrou/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrou/subscriptions","organizations_url":"https://api.github.com/users/pitrou/orgs","repos_url":"https://api.github.com/users/pitrou/repos","events_url":"https://api.github.com/users/pitrou/events{/privacy}","received_events_url":"https://api.github.com/users/pitrou/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T12:43:28Z","updated_at":"2015-07-06T12:43:28Z","body":"> Seems like your builds are fine now.\r\n\r\nYes, thank you.\r\n\r\n> You can disable the call to setup.py install in your project's settings in the admin panel.\r\n\r\nOh, great, I'll look at that."}}