Skip to content

Instantly share code, notes, and snippets.

@phaustin
Last active September 1, 2020 16:39
Show Gist options
  • Save phaustin/075841d41ac2636685f2a710c40f10db to your computer and use it in GitHub Desktop.
Save phaustin/075841d41ac2636685f2a710c40f10db to your computer and use it in GitHub Desktop.
jb windows doc_build failure
> pytest -vv tests
============================= test session starts =============================
platform win32 -- Python 3.7.8, pytest-3.10.1, py-1.9.0, pluggy-0.13.1 -- c:\users\phil\minjn20\envs\v0.8\python.exe
cachedir: .pytest_cache
JB TEMPDIR: <TEMP>
rootdir: C:\Users\Phil\repos\jupyter-book, inifile: tox.ini
plugins: cov-2.10.1, datadir-1.3.1, forked-1.3.0, regressions-2.0.1, timeout-1.4.2, xdist-2.1.0
timeout: 100.0s
timeout method: thread
timeout func_only: False
collected 42 items
tests/test_build.py::test_version PASSED [ 2%]
tests/test_build.py::test_create PASSED [ 4%]
tests/test_build.py::test_build_from_template PASSED [ 7%]
tests/test_build.py::test_custom_config PASSED [ 9%]
tests/test_build.py::test_toc_builds[_toc.yml] PASSED [ 11%]
tests/test_build.py::test_toc_builds[_toc_startwithlist.yml] PASSED [ 14%]
tests/test_build.py::test_toc_rebuild PASSED [ 16%]
tests/test_build.py::test_corrupt_toc[_toc_emptysections.yml-Found an empty section] PASSED [ 19%]
tests/test_build.py::test_corrupt_toc[_toc_urlwithouttitle.yml-`url:` link should] PASSED [ 21%]
tests/test_build.py::test_corrupt_toc[_toc_url.yml-Rename `url:` to `file:`] PASSED [ 23%]
tests/test_build.py::test_corrupt_toc[_toc_wrongkey.yml-Unknown key in `_toc.yml`] PASSED [ 26%]
tests/test_build.py::test_build_errors PASSED [ 28%]
tests/test_build.py::test_build_docs FAILED [ 30%]
tests/test_build.py::test_build_page PASSED [ 33%]
tests/test_build.py::test_build_page_nested PASSED [ 35%]
tests/test_build.py::test_execution_timeout PASSED [ 38%]
tests/test_clean.py::test_clean_book PASSED [ 40%]
tests/test_clean.py::test_clean_html PASSED [ 42%]
tests/test_clean.py::test_clean_latex PASSED [ 45%]
tests/test_clean.py::test_clean_html_latex PASSED [ 47%]
tests/test_config.py::test_get_final_config[empty] PASSED [ 50%]
tests/test_config.py::test_get_final_config[title] PASSED [ 52%]
tests/test_config.py::test_get_final_config[html.extra_footer] PASSED [ 54%]
tests/test_config.py::test_get_final_config[execute.method] PASSED [ 57%]
tests/test_config.py::test_get_final_config[extended_syntax] PASSED [ 59%]
tests/test_config.py::test_get_final_config[latex_doc] PASSED [ 61%]
tests/test_config.py::test_get_final_config[launch_buttons] PASSED [ 64%]
tests/test_config.py::test_get_final_config[repository] PASSED [ 66%]
tests/test_config.py::test_get_final_config[exclude_patterns] PASSED [ 69%]
tests/test_config.py::test_get_final_config[sphinx] PASSED [ 71%]
tests/test_config.py::test_validate_yaml PASSED [ 73%]
tests/test_config.py::test_config_sphinx_command PASSED [ 76%]
tests/test_pdf.py::test_pdflatex PASSED [ 80%]
tests/test_toc.py::test_toc_basic PASSED [ 83%]
tests/test_toc.py::test_toc_fail PASSED [ 85%]
tests/test_toc.py::test_toc_add_titles PASSED [ 88%]
tests/test_toc.py::test_toc_numbered PASSED [ 90%]
tests/test_tocdirective.py::test_toc_startwithlist PASSED [ 92%]
tests/test_tocdirective.py::test_toc_parts PASSED [ 95%]
tests/test_tocdirective.py::test_toc_urllink SKIPPED [ 97%]
tests/test_utils.py::test_myst_init PASSED [100%]
================================== FAILURES ===================================
_______________________________ test_build_docs _______________________________
docs = WindowsPath('C:/Users/Phil/AppData/Local/Temp/pytest-of-phil/pytest-21/test_build_docs0/docs')
cli = <click.testing.CliRunner object at 0x000002956A3DDD48>
def test_build_docs(docs, cli):
"""Test building the documentation book."""
html = docs.joinpath("_build", "html")
result = cli.invoke(commands.build, [docs.as_posix()])
> assert result.exit_code == 0
E assert 1 == 0
E + where 1 = <Result SystemExit(1)>.exit_code
tests\test_build.py:149: AssertionError
============================== warnings summary ===============================
tests/test_build.py::test_build_from_template
C:\Users\Phil\repos\jupyter-book\jupyter_book\config.py:49: DeprecationWarning: The metaschema specified by $schema was not found. Using the latest draft to validate, but this will raise an error in the future.
validator_cls = jsonschema.validators.validator_for(schema)
c:\users\phil\minjn20\envs\v0.8\lib\site-packages\oset\pyoset.py:16: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
from collections import MutableSet
-- Docs: https://docs.pytest.org/en/latest/warnings.html
======== 1 failed, 40 passed, 1 skipped, 2 warnings in 116.07 seconds =========
(v0.8):repos/jupyter-book
> jb build docs
Running Jupyter-Book v0.8.0
Source Folder: C:\Users\Phil\repos\jupyter-book\docs
Config Path: C:\Users\Phil\repos\jupyter-book\docs\_config.yml
Output Path: C:\Users\Phil\repos\jupyter-book\docs\_build\html
Running Sphinx v3.2.1
myst v0.12.8: MdParserConfig(renderer='sphinx', commonmark_only=False, dmath_enable=True, dmath_allow_labels=True, dmath_allow_space=True, dmath_allow_digits=True, amsmath_enable=True, deflist_enable=True, update_mathjax=True, admonition_enable=True, figure_enable=True, disable_syntax=[], html_img_enable=True, url_schemes=['mailto', 'http', 'https'])
loading intersphinx inventory from https://executablebooks.org/en/latest/objects.inv...
loading intersphinx inventory from https://myst-parser.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://myst-nb.readthedocs.io/en/latest/objects.inv...
loading intersphinx inventory from https://www.sphinx-doc.org/en/master/objects.inv...
loading intersphinx inventory from https://nbformat.readthedocs.io/en/latest/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 36 source files that are out of date
updating environment: [new config] 36 added, 0 changed, 0 removed
checking for C:\Users\Phil\repos\jupyter-book\docs\references.bib in bibtex cache... not found
parsing bibtex file C:\Users\Phil\repos\jupyter-book\docs\references.bib... parsed 4 entries
reading sources... [100%] start/publish
Updating `nb-exec-table`s in: {'content/execute'}
WARNING: Execution failed in an unexpected way, clearing staged notebooks: The URI of the staged record no longer exists: C:\Users\Phil\repos\jupyter-book\docs\content\glue.md
WARNING: Couldn't find cache key for notebook file docs\content\code-outputs.md. Outputs will not be inserted.
WARNING: Notebook code has no file extension metadata, defaulting to `.txt`
WARNING: Couldn't find cache key for notebook file docs\content\execute.md. Outputs will not be inserted.
WARNING: Notebook code has no file extension metadata, defaulting to `.txt`
WARNING: Couldn't find cache key for notebook file docs\file-types\jupytext.Rmd. Outputs will not be inserted.
WARNING: Notebook code has no file extension metadata, defaulting to `.txt`
WARNING: Couldn't find cache key for notebook file docs\file-types\notebooks.ipynb. Outputs will not be inserted.
WARNING: Notebook code has no file extension metadata, defaulting to `.txt`
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] start/publish
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:202: WARNING: Couldn't find key `cool_text` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:343: WARNING: Couldn't find key `boot_fig` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:343: WARNING: Couldn't find key `boot_mean` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:343: WARNING: Couldn't find key `boot_fig` in keys defined across all pages.
WARNING: Couldn't find key `sorted_means_fig` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:373: WARNING: Couldn't find key `boot_mean` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:373: WARNING: Couldn't find key `boot_clo` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:373: WARNING: Couldn't find key `boot_chi` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:392: WARNING: Couldn't find key `boot_mean` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:392: WARNING: Couldn't find key `boot_clo` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:392: WARNING: Couldn't find key `boot_chi` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:420: WARNING: Couldn't find key `boot_fig` in keys defined across all pages.
WARNING: Couldn't find key `boot_mean` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:447: WARNING: Couldn't find key `df_tbl` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:484: WARNING: Couldn't find key `sym_eq` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:491: WARNING: Couldn't find key `boot_fig` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:491: WARNING: Couldn't find key `boot_mean` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:491: WARNING: Couldn't find key `boot_clo` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:491: WARNING: Couldn't find key `boot_chi` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:491: WARNING: Couldn't find key `sorted_means_fig` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:491: WARNING: Couldn't find key `boot_mean` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:491: WARNING: Couldn't find key `boot_clo` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\docs\content\code-outputs.md.rst:491: WARNING: Couldn't find key `boot_chi` in keys defined across all pages.
WARNING: Couldn't find key `sorted_means_fig` in keys defined across all pages.
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:18: WARNING: 'myst' reference target not found: ..\start\build.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:30: WARNING: 'myst' reference target not found: ..\content\math.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:43: WARNING: 'myst' reference target not found: ..\advanced\advanced.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:60: WARNING: 'myst' reference target not found: ..\content\content-blocks.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:61: WARNING: 'myst' reference target not found: ..\content\figures.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:63: WARNING: 'myst' reference target not found: ..\content\content-blocks.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:64: WARNING: 'myst' reference target not found: ..\content\math.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:68: WARNING: 'myst' reference target not found: ..\file-types\jupytext.Rmd
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:82: WARNING: 'myst' reference target not found: ..\content\execute.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:85: WARNING: 'myst' reference target not found: ..\content\code-outputs.md
C:\Users\Phil\repos\jupyter-book\CHANGELOG.md:95: WARNING: 'myst' reference target not found: ..\content\content-blocks.md
generating indices... genindexdone
writing additional pages... searchdone
copying images... [100%] C:/Users/Phil/repos/jupyter-book/docs/_build/jupyter_execute/reference\cheatsheet_7_0.png1.png
copying downloadable files... [100%] references.bib
copying static files... ... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 44 warnings.
The HTML pages are in docs\_build\html.
Copying tabs assets
Writing redirects...
WARNING: (broken) content-types\index.html redirects to file-types\index.html but C:\Users\Phil\repos\jupyter-book\docs\_build\html\content-types\index.html already exists!
(good) content-types\index.html --> file-types\index.html
WARNING: (broken) content-types\markdown.html redirects to file-types\markdown.html but C:\Users\Phil\repos\jupyter-book\docs\_build\html\content-types\markdown.html already exists!
(good) content-types\markdown.html --> file-types\markdown.html
WARNING: (broken) content-types\notebooks.html redirects to file-types\notebooks.html but C:\Users\Phil\repos\jupyter-book\docs\_build\html\content-types\notebooks.html already exists!
(good) content-types\notebooks.html --> file-types\notebooks.html
WARNING: (broken) content-types\myst-notebooks.html redirects to file-types\myst-notebooks.html but C:\Users\Phil\repos\jupyter-book\docs\_build\html\content-types\myst-notebooks.html already exists!
(good) content-types\myst-notebooks.html --> file-types\myst-notebooks.html
WARNING: (broken) content-types\jupytext.html redirects to file-types\jupytext.html but C:\Users\Phil\repos\jupyter-book\docs\_build\html\content-types\jupytext.html already exists!
(good) content-types\jupytext.html --> file-types\jupytext.html
WARNING: (broken) content-types\restructuredtext.html redirects to file-types\restructuredtext.html but C:\Users\Phil\repos\jupyter-book\docs\_build\html\content-types\restructuredtext.html already exists!
(good) content-types\restructuredtext.html --> file-types\restructuredtext.html
===============================================================================
Building your book, returns a non-zero exit code (1). Look above for the cause.
===============================================================================
(v0.8):repos/jupyter-book
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment