|
|
#1 |
|
e^bored
![]() Posts: 28
Karma: 10
Join Date: Jun 2010
Device: BeBook Neo
|
Cannot convert .lit to .epub
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: 22,660
Karma: 3473290
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?
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
e^bored
![]() Posts: 28
Karma: 10
Join Date: Jun 2010
Device: 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: 22,660
Karma: 3473290
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#5 |
|
e^bored
![]() Posts: 28
Karma: 10
Join Date: Jun 2010
Device: 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? |
|
|
|
|
|
#6 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,630
Karma: 561147
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (stanza/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: 28
Karma: 10
Join Date: Jun 2010
Device: 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: 7,419
Karma: 11289119
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, Sony PRS-505, PRS-300
|
Quote:
__________________
-- Good Reading, Walt -- 20GB of free CLOUD STORAGE: Use this link to sign up for a free 15GB Copy.com cloud storage account and we both get an extra 5GB of free space. |
|
|
|
|
|
|
#9 | |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 49200
Join Date: Nov 2006
Location: Bakersfield, CA
Device: Sony PRS-500/Astak EZReader 5"/PocketBook 360
|
Quote:
Maybe I need to try a binary install as well. |
|
|
|
|
|
|
#10 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,879
Karma: 285970
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
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.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
|
#11 |
|
e^bored
![]() Posts: 28
Karma: 10
Join Date: Jun 2010
Device: BeBook Neo
|
|
|
|
|
|
|
#12 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,660
Karma: 3473290
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#13 |
|
e^bored
![]() Posts: 28
Karma: 10
Join Date: Jun 2010
Device: 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: 22,660
Karma: 3473290
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The work around just allows calibre to be installed.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#15 |
|
e^bored
![]() Posts: 28
Karma: 10
Join Date: Jun 2010
Device: 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 Tools | Search this Thread |
|
Similar Threads
|
||||
| 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 |