![]() |
#1 |
e^bored
![]() Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
|
Cannot convert .lit to .epub
I tried to download the .lit file for Wizardry Compiled from http://www.baen.com/library/ (since there's no .epub and the FAQ says Calibre prefers .lit over .prc for conversion), but whenever Calibre tries to convert it to put it on my reader it comes up with this error:
Code:
Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 320, in get_file_type_metadata mi = plugin.get_metadata(stream, ftype.lower().strip()) File "/usr/lib/calibre/calibre/customize/builtins.py", line 136, in get_metadata return get_quick_metadata(stream) File "/usr/lib/calibre/calibre/ebooks/metadata/epub.py", line 182, in get_quick_metadata return get_metadata(stream, False) File "/usr/lib/calibre/calibre/ebooks/metadata/epub.py", line 169, in get_metadata reader = OCFZipReader(stream) File "/usr/lib/calibre/calibre/ebooks/metadata/epub.py", line 109, in __init__ raise EPubException("not a ZIP .epub OCF container") EPubException: not a ZIP .epub OCF container Segmentation fault Also, the ebook viewer within Calibre can read the .lit file perfectly fine, it just doesn't seem to want to convert it. When I try to convert it to a MOBI, it just spits out a segmentation fault error. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,199
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That error is for reading metadata from an epub file, not converting a lit file. Have you by any chance renamed your lit to epub?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
e^bored
![]() Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
|
Nope, I haven't; note also that lit2epub from http://sourceforge.net/projects/ebook-tools/ works, but doesn't produce as nice an epub file as Calibre used to.
I've also tried this on some other lit and mobi files I have; Calibre can't convert them either. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,199
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Then you have a corrupted calibre install, converting lit files works just fine.
Looking at your error trace, I see you have an source/distro install. Uninstall it and install the binary. |
![]() |
![]() |
![]() |
#5 |
e^bored
![]() Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
|
*sigh* that seemed to work, but I'd much rather use my distro package (for the ability to uninstall, etc.) rather than a pre-compiled binary.
I suspect it may be a dependency problem; is it possible to find out which versions of python, etc. you used for the binary? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
There are a very large number of dependencies in calibre all of which have to be at the right minimum level (not just python itself), so getting these right can be a big issue if you use the source install. However if you use the binary package, then all these are included and installed in the calibre folder. Removing calibre simply involves deleting the calibre install folder so automated uninstall is not really an issue.
|
![]() |
![]() |
![]() |
#7 |
e^bored
![]() Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
|
Well, my system satisfies the minimum dependencies specified here: http://calibre-ebook.com/download_linux
More specifically (required version in parentheses):
As such, the versions I have match the required specification. It is possible that one of the versions I have is _too_ new, but in that case Calibre should specify upper bounds and not just lower bounds. |
![]() |
![]() |
![]() |
#8 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 80904
Join Date: Nov 2006
Location: Bakersfield, CA
Device: Sony PRS-500/Astak EZReader 5"/PocketBook 360/Kindle
|
Quote:
Maybe I need to try a binary install as well. |
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,339
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I think that the best we can ask for is that Kovid provide specifications for what works for him, and for what is in the binary releases. Of course, if someone else is interested in testing newer releases of libraries, I am sure that Kovid would be happy to publish the results. |
|
![]() |
![]() |
![]() |
#11 |
e^bored
![]() Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
|
|
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,199
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's not your library dependencies, I develop calibre on gentoo ~amd64. It's most likely the util-linux - pyqt4 incompatibility bug in gentoo. Search teh gentoo bug tracker for it.
|
![]() |
![]() |
![]() |
#13 |
e^bored
![]() Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
|
*sigh* I take it we should downgrade util-linux then?
So much for that work-around that the ebuild contains... |
![]() |
![]() |
![]() |
#14 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,199
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The work around just allows calibre to be installed.
|
![]() |
![]() |
![]() |
#15 |
e^bored
![]() Posts: 44
Karma: 10
Join Date: Jun 2010
Device: Kobo Aura HD, BeBook Neo
|
And yes, that was it; downgrading util-linux let it work again.
Whose fault is it here? PyQt for not working with the latest version of util-linux nicely? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
best tool to convert to Lit.? | bbudd | Reading and Management | 8 | 03-27-2010 09:49 AM |
Convert .lit to .prc | ChrisM12743 | Gen3 Developer's Corner | 47 | 08-18-2008 03:17 PM |
problem with convert lit | chilla | Sony Reader | 3 | 12-28-2007 02:29 PM |