× Warning! This forum is in archival status. New contributions may not work.
KeyError: 'package_direction' EPUB2 format
  • 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!