-
Notifications
You must be signed in to change notification settings - Fork 229
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
EPUB2 error while exporting #196
Comments
trying an advice: stop producing EPUB2 ;) |
Yes, I can take the EPUB3 route. But it produces a 'Guide' by default that is typically not required for most of the titles. How to switch off this feature? Booktype does not provide any interface for setting this up for EPUB3 format. |
I haven't been working on the Booktype for couple of years so I wouldn't really know what have they changed but if you have your own installation you can always modify default options in file: /lib/booktype/convert/epub/writer.py
I just copy + pasted default options from ebooklib but modify it as you like. That will produce EPUB3 without guide. |
@csantanu I don't know Booktype. Thanks @aerkalov. On guide element, latest EPUB 3.2 spec says:
|
Thanks @aerkalov |
Hi,
I am getting this error while using the Booktype installation which uses ebooklib as core package. Strangely, this is not happening with EPUB3 format and it is perfectly exporting.
When I am publishing using EPUB2 format, I am getting this error : KeyError : 'package_direction'.
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 375, $
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 632, $
return self.run(*args, **kwargs)
File "/usr/local/src/booktype/lib/booktype/apps/convert/tasks.py", line 50, i$
return func(request, *args, **kwargs)
File "/usr/local/src/booktype/lib/booktype/apps/convert/tasks.py", line 66, i$
result = run_conversion(*args, **kwargs)
File "/usr/local/src/booktype/lib/booktype/convert/runner.py", line 58, in ru$
conversion_result = converter.convert(book, output)
File "/usr/local/src/booktype/lib/booktype/convert/epub/converter.py", line 1$
epub_writer.write()
File "/usr/local/lib/python2.7/dist-packages/ebooklib/epub.py", line 1223, in$
self._write_opf_file()
File "/usr/local/lib/python2.7/dist-packages/ebooklib/epub.py", line 858, in $
if self.book.direction and self.options['package_direction']:
KeyError: 'package_direction'
Please help!
Thanks.
Santanu
The text was updated successfully, but these errors were encountered: