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

Non --demo option seems to fail #120

Closed
darribas opened this issue Mar 5, 2019 · 7 comments
Closed

Non --demo option seems to fail #120

darribas opened this issue Mar 5, 2019 · 7 comments

Comments

@darribas
Copy link

darribas commented Mar 5, 2019

Hello, on 0.4.1, I'm creating (inside a Docker container), a minimal notebook:

jupyter-book create host/tmp_book

And this seems to fail:

Copying new book to: ./host/tmp_book
Traceback (most recent call last):
  File "/opt/conda/bin/jupyter-book", line 11, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.7/site-packages/jupyter_book/main.py", line 31, in main
    commands[args.command]()
  File "/opt/conda/lib/python3.7/site-packages/jupyter_book/create.py", line 119, in new_book
    _check_file_exists(args.content_folder)
  File "/opt/conda/lib/python3.7/site-packages/jupyter_book/create.py", line 37, in _check_file_exists
    raise FileNotFoundError("Couldn't find file: {}".format(path))
FileNotFoundError: Couldn't find file: /opt/conda/lib/python3.7/site-packages/jupyter_book/minimal/content

If I run jupyter-book create host/tmp_book --demo, it works OK.

Also, in case it helps, if I check on the file that does not find, it appears not to exist indeed:

jovyan@d8c5e8667ee0:~$ ls /opt/conda/lib/python3.7/site-packages/jupyter_book/
__init__.py  __pycache__  book_template  build.py  create.py  main.py  run.py  toc.py  utils.py
jovyan@d8c5e8667ee0:~$

Am I doing something wrong?

@choldgraf
Copy link
Member

hmmmm, I wonder if the file isn't being linked properly in the install bundle...will look into this now!

@choldgraf
Copy link
Member

ok @darribas can you try uninstalling, then re-installing from the master branch on github with:

pip install git+https://github.com/jupyter/jupyter-book

and let me know if it works now?

@darribas
Copy link
Author

darribas commented Mar 6, 2019

Yes! This seems to work now. Thanks!

@darribas darribas closed this as completed Mar 6, 2019
@jasmainak
Copy link
Contributor

I had the same issue and I can confirm it's fixed on master :)

@ketozhang
Copy link

Recommend adding a warning to the installation instructions.

@choldgraf
Copy link
Member

@ketozhang thanks for the suggestion - I think in this case a faster fix would be to just cut a new release. I'll do that now.

@choldgraf
Copy link
Member

new release is out there! Please do give it a shot and hopefully it'll work with pip install -U jupyter-book!

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

No branches or pull requests

4 participants