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

errors when running make command #11

Open
sayanee opened this issue Dec 14, 2013 · 5 comments
Open

errors when running make command #11

sayanee opened this issue Dec 14, 2013 · 5 comments

Comments

@sayanee
Copy link

sayanee commented Dec 14, 2013

thanks for clearing up that the mobi making was wrong in #10 👍

i had the following error towards the end of the make command:

1% Converting input to HTML...
InputFormatPlugin: EPUB Input running
on /Users/sayanee/Desktop/flp.mobi/flpI.epub
Python function terminated unexpectedly: No valid entries in the spine of this EPUB
Traceback (most recent call last):
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 147, in main
    return run_entry_point()
  File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 116, in run_entry_point
    return getattr(pmod, func)()
  File "site-packages/calibre/ebooks/conversion/cli.py", line 325, in main
  File "site-packages/calibre/ebooks/conversion/plumber.py", line 989, in run
  File "site-packages/calibre/customize/conversion.py", line 239, in __call__
  File "site-packages/calibre/ebooks/conversion/plugins/epub_input.py", line 210, in convert
ValueError: No valid entries in the spine of this EPUB
make[1]: *** [mobi] Error 255
make: *** [all] Error 2
@fmap
Copy link
Owner

fmap commented Dec 14, 2013

The error says the ePub metadata file (content.opf) is missing a spine; without that, we don't know the order of the contents, and so we can't build a MOBI. If you flip open bin/opf and lib/opf, you'll see where that should be introduced: we take the path of each HTML chapter in the volume, and with each one choose an identifier, appending an XML element describing it to the spine (preserving order.) The identifier is linked to a file by an entry in the manifest, added in about the same way.

It's supposed to end up including something like:

<spine>
<itemref idref="III_01html"/><itemref idref="III_02html"/><itemref idref="III_03html"/><itemref idref="III_04html"/><itemref idref="III_05html"/><itemref idref="III_06html"/><itemref idref="III_07html"/><itemref idref="III_08html"/><itemref idref="III_09html"/><itemref idref="III_10html"/><itemref idref="III_11html"/><itemref idref="III_12html"/><itemref idref="III_13html"/><itemref idref="III_14html"/><itemref idref="III_15html"/><itemref idref="III_16html"/><itemref idref="III_17html"/><itemref idref="III_18html"/><itemref idref="III_19html"/><itemref idref="III_20html"/><itemref idref="III_21html"/><itemref idref="III_22html"/><itemref idref="III_90html"/><itemref idref="III_91html"/><itemref idref="III_92html"/>
</spine>

That might be failing because you're missing the library we use for working with XML. Have you run gem install nokogiri? I should add a Gemfile describing the dependencies of the Ruby stuff..

I'm really glad someone other than me is trying to use this. 😄

@fmap
Copy link
Owner

fmap commented Dec 17, 2013

@sayanee,

Is solved?

@sayanee
Copy link
Author

sayanee commented Dec 17, 2013

will check it soon 👍 thanks 😄

@fmap
Copy link
Owner

fmap commented Dec 17, 2013

Cool:

git pull
make clean; bundle && make

@eshellman
Copy link

as a ruby newbie I can report that bundler is another dependency

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

3 participants