Jupyter-book: Missing file error

Created on 6 Aug 2019  路  3Comments  路  Source: executablebooks/jupyter-book

I get this error on macOS 10.14 Mojave when trying to serve the book.

 Liquid Exception: Could not locate the included file 'search/lunr/lunr-store.js' in any of ["directory/path", "/Library/Ruby/Gems/2.3.0/gems/jekyll-theme-primer-0.5.3/_includes"]. Ensure it exists in one of those directories and is not a symlink as those are not allowed in safe mode. in mybookname/assets/html/search_form.html
jekyll 3.8.5 | Error:  Could not locate the included file 'search/lunr/lunr-store.js' in any of ["directory/path", "/Library/Ruby/Gems/2.3.0/gems/jekyll-theme-primer-0.5.3/_includes"]. Ensure it exists in one of those directories and is not a symlink as those are not allowed in safe mode.

Gemfile:

source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins

I executed the following commands in a new directory:

bundle install
jupyter-book create mybookname --demo
jupyter-book build mybookname/
bundle exec jekyll serve

Most helpful comment

It worked when I added the following line to the Gemfile:

gem 'unicode_utils'

All 3 comments

@rickwierenga you should run the bundle exec jekyll serve function from within the book's directory. Can you try that and see if it works?

It worked when I added the following line to the Gemfile:

gem 'unicode_utils'

thanks for following up!

Was this page helpful?
0 / 5 - 0 ratings