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

Building mini-book #34

Open
luukalt opened this issue Dec 12, 2020 · 3 comments
Open

Building mini-book #34

luukalt opened this issue Dec 12, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@luukalt
Copy link

luukalt commented Dec 12, 2020

Following the steps from demo book on https://jupyterbook.org/intro.html

When running the following command (in anaconda prompt on Windows 10 PC):

(wintest) C:\Users\luuka\quantecon-mini-example>jupyter-book build ./mini_book

It returns the following output and error:

Running Jupyter-Book v0.8.3
Traceback (most recent call last):
File “c:\users\luuka\anaconda3\envs\wintest\lib\runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “c:\users\luuka\anaconda3\envs\wintest\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "C:\Users\luuka\Anaconda3\envs\wintest\Scripts\jupyter-book.exe_main.py", line 7, in
File “c:\users\luuka\anaconda3\envs\wintest\lib\site-packages\click\core.py”, line 829, in call
return self.main(*args, **kwargs)
File “c:\users\luuka\anaconda3\envs\wintest\lib\site-packages\click\core.py”, line 782, in main
rv = self.invoke(ctx)
File “c:\users\luuka\anaconda3\envs\wintest\lib\site-packages\click\core.py”, line 1259, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File “c:\users\luuka\anaconda3\envs\wintest\lib\site-packages\click\core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “c:\users\luuka\anaconda3\envs\wintest\lib\site-packages\click\core.py”, line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\luuka\anaconda3\envs\wintest\lib\site-packages\jupyter_book\commands_init.py", line 199, in build
build_modified = max([os.stat(ii).st_mtime for ii in build_files])
ValueError: max() arg is an empty sequence

Does anybody have an idea what I could do to fix this?

Thanks in advance.

  • Python Version: 3.7.9
  • Package versions or output of jupyter-book --version:
    Jupyter Book: 0.8.3
    MyST-NB: 0.10.1
    Sphinx Book Theme: 0.0.39
    MyST-Parser: 0.12.10
    Jupyter-Cache: 0.4.1
    NbClient: 0.5.1
  • Operating System: Windows 10
@luukalt luukalt added the bug Something isn't working label Dec 12, 2020
@welcome
Copy link

welcome bot commented Dec 12, 2020

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

@ncolai
Copy link

ncolai commented Dec 21, 2020

I faced the same issue when running the demo. I fixed it by creating a dummy index.html in _build/html/, and then running jupyter-book build (name of book directory). Once I got that to work, I then removed the dummy file and reran jupyter-book build (book directory) to successfully load the book.

@litpuvn
Copy link

litpuvn commented May 21, 2021

i cloned it and run as instruction and got this error in windows 10:
Traceback (most recent call last):
File "c:\python38\lib\site-packages\jupyter_book\sphinx.py", line 150, in build_sphinx
app.build(force_all, filenames)
File "c:\python38\lib\site-packages\sphinx\application.py", line 348, in build
self.builder.build_update()
File "c:\python38\lib\site-packages\sphinx\builders_init_.py", line 297, in build_update
self.build(to_build,
File "c:\python38\lib\site-packages\sphinx\builders_init_.py", line 311, in build
updated_docnames = set(self.read())
File "c:\python38\lib\site-packages\sphinx\builders_init_.py", line 382, in read
for docs in self.events.emit('env-get-outdated', self.env, added, changed, removed):
File "c:\python38\lib\site-packages\sphinx\events.py", line 117, in emit
raise ExtensionError(__("Handler %r for event %r threw an exception") %
sphinx.errors.ExtensionError: Handler <function update_execution_cache at 0x0000016B516A4EE0> for event 'env-get-outdated' threw an exception (exception: Notebook does not appear to be JSON: '{\n "cells": [\n {\n "cell_type": "c...)

Python 3.8

Jupyter Book: 0.10.2
MyST-NB: 0.12.3
Sphinx Book Theme: 0.1.0
MyST-Parser: 0.13.7
Jupyter-Cache: 0.4.1
NbClient: 0.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants