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

Error when creating book (missing metadata.json) #34

Open
seannymurrs opened this issue Sep 25, 2024 · 1 comment
Open

Error when creating book (missing metadata.json) #34

seannymurrs opened this issue Sep 25, 2024 · 1 comment

Comments

@seannymurrs
Copy link

seannymurrs commented Sep 25, 2024

I get the following error when running the create command.

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/syncabook/create.py", line 43, in create_ebook
✔ Using existing SMIL files from /books/mybook/smil.
❗ File metadata.json is not found. Please provide metadata
Title:     with open(metadatafile, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/books/mybook/metadata.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/syncabook", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/syncabook/__main__.py", line 164, in main
    create_ebook(
  File "/usr/local/lib/python3.9/site-packages/syncabook/create.py", line 48, in create_ebook
    metadata['title'] = input('Title: ')
EOFError: EOF when reading a line
@r4victor
Copy link
Owner

@seannymurrs, If you don't prepare metadata.json before creating the ebook, syncabook will ask you about the metadata (author, title, etc) interactively. It appears you have stdin set to something other than terminal? If so, try creating metadata.json beforehand. Example:
https://github.com/r4victor/syncabook/blob/master/tests/resources/civil_disobedience/metadata.json

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

2 participants