Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-07-2009, 05:18 AM   #1
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
[Rant] New dependencies for 0.6.11?

I was going to upgrade the Calibre version in my work computer (Mandriva 2008) and got a new error:

Code:
Extracting application files...
Traceback (most recent call last):
  File "/tmp/init.py", line 43, in <module>
  File "/home/kovid/build/calibre/src/calibre/__init__.py", line 15, in <module>
  File "ExtensionLoader_PyQt4_QtGui.py", line 12, in <module>
ImportError: /lib/i686/libc.so.6: version `GLIBC_2.7' not found (required by /usr/local/calibre/libxml2.so.2)
I had already compiled libjpeg locally to work around a similar problem, now I have to do the same with libxml2? And what else? I cannot compile Calibre itself because I don't have python 2.6 (only 2.5)... I'm sorry but this is starting to be too much for me.

I understand that is the price to pay if one wishes cutting edge applications, though
Jellby is offline   Reply With Quote
Old 09-07-2009, 11:57 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,739
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's pretty much impossible for me to keep calibre compatible with older system. This is because it needs to keep on using new features from various dependencies, like Qt and python. For example, currently the viewer has a bug where it doesn't display soft hyphens at the end of the line. This is because of a bug in Qt, so as soon as a new Qt is released, calibre will be upgraded.

And the recent customizable Save to disk feature depends on a feature in the latest python 2.6

And then there is a bug in lxml that affects handling if unicode CSS selectors which neccessitates an upgrade as soon as the next version is rleased. (lxml is what uses libxml2, among other things).

Still glibc 2.7 is almost 2 years old. Instead of recompiling individual dependencies that depend on it, you should just manuall compile glibc2.7 and put it into the calibre folder.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-07-2009, 06:11 PM   #3
luqmaninbmore
Da'i
luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.
 
luqmaninbmore's Avatar
 
Posts: 1,144
Karma: 1217499
Join Date: Oct 2008
Location: Baltimore
Device: Toshiba Thrive, Kobo Touch, Kindle 1, Aluratek Libre, T-Mobile Comet
WOuld it be possible to make some type of note as to OS compatibility for linux distros though? So that we don't accidently break a perfectly working version calibre with no possibility of returning to the older version?
luqmaninbmore is offline   Reply With Quote
Old 09-07-2009, 06:24 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,739
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by luqmaninbmore View Post
WOuld it be possible to make some type of note as to OS compatibility for linux distros though? So that we don't accidently break a perfectly working version calibre with no possibility of returning to the older version?
I am certainly not going to sit and test calibre on a dozen different distros before every release. If you're concerned, I suggest you get your distro maintainers to package calibre and then use only the distro packages.
kovidgoyal is offline   Reply With Quote
Old 09-07-2009, 07:01 PM   #5
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by kovidgoyal View Post
I am certainly not going to sit and test calibre on a dozen different distros before every release. If you're concerned, I suggest you get your distro maintainers to package calibre and then use only the distro packages.
The problem is with distros like Ubuntu, Debian and I believe Mandriva, they lock the application version for the life of the distro release. Debian for instance will even go as far as to back port security fixes instead of updating to a newer version in a lot of cases. Not to mention upgrading something as big as a later version of python is just not going to happen during a release. If you use a binary distro you have to live with the package versions that they give you.

Your best options for a binary distro in order of preference are: use the distro package and live with the shipped version, build it yourself, use the binary installer.

If you can't build it yourself or use the binary installer due to packages that you can't update without breaking the system (python, pyqt4) then either live with the last version that you can get working or switch to a distro with more recent version of those packages. In the OPs case updating to the latest Mandriva release will solve the python and glib version issues.

Just because there is a newer version doesn't mean that you have to upgrade. While a new version has bug fixes and new features that doesn't mean you will need or use them.
user_none is offline   Reply With Quote
Advert
Old 09-07-2009, 07:48 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,739
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's why I stopped using binary distros years ago.
kovidgoyal is offline   Reply With Quote
Old 09-08-2009, 04:49 AM   #7
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by luqmaninbmore View Post
So that we don't accidently break a perfectly working version calibre with no possibility of returning to the older version?
Yes, that's what I was thinking... I guess I should have tried to install in a different directory first, and tried the new version, before overwriting the older working version.

Does anyone have a copy of the 0.6.10 binaries?

Quote:
In the OPs case updating to the latest Mandriva release will solve the python and glib version issues.
Yes, 0.6.11 works fine in Mandriva 2009.1 (I have that on a new netbook I got).
Jellby is offline   Reply With Quote
Old 09-08-2009, 11:02 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,739
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There's a sticky thread in this forum with links to old binaries, best to ask there.
kovidgoyal is offline   Reply With Quote
Old 09-09-2009, 11:43 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
Still glibc 2.7 is almost 2 years old. Instead of recompiling individual dependencies that depend on it, you should just manuall compile glibc2.7 and put it into the calibre folder.
Well, that worked, thanks for the suggestion
Jellby is offline   Reply With Quote
Old 09-10-2009, 09:57 AM   #10
cutterjohn42
Addict
cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.
 
Posts: 274
Karma: 1029955
Join Date: Feb 2009
Device: Palm IIIx, EBM-911, REB-1100(dead), PRS-505
Actually, I like the binary distros as I had my fill of dependency hell YEARS ago.

Ubuntu does what Debian does as well. They release a particular version of apps + kernel + X.org with a release and backport security fixes to that version. Alternatively you can sometimes find newer version in the various PPAs, or the backports repo from the next release. But since Ubuntu has a 6m release cycle you're pretty close to the bleeding edge all of the time anyways.

Lastly, and entirely undesireable(and mostly unnecessary) is to build more recent version from "source". [EDIT] Good thing about Ubuntu being a Debian derived distro is that one can usually find source .debs to build from and therefore not break your entire system(hopefully) if you decided to install system wide... [/EDIT]

The only good reason to use a source based distro is to be able to compile with specific architectural optimizations, but I found the few %age points of performance to no be worth the hassle.

(That said the only version of calibre in the Ubuntu repos is very very very old....)

Last edited by cutterjohn42; 09-10-2009 at 10:01 AM.
cutterjohn42 is offline   Reply With Quote
Old 09-10-2009, 10:14 AM   #11
jmatthewman
Junior Member
jmatthewman began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2009
Location: Vietnam
Device: PRS505
Quote:
Originally Posted by cutterjohn42 View Post
(That said the only version of calibre in the Ubuntu repos is very very very old....)
i hadn't even noticed how old it was until you mentioned it.. but it looks like it'll be much more up-to-date in the next ubuntu release.

hmm, i wonder which features i'm missing out on! (not that i find myself in want of features -- whatever version this is does everything i need it to just fine)
jmatthewman is offline   Reply With Quote
Old 09-10-2009, 11:03 AM   #12
cutterjohn42
Addict
cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.cutterjohn42 ought to be getting tired of karma fortunes by now.
 
Posts: 274
Karma: 1029955
Join Date: Feb 2009
Device: Palm IIIx, EBM-911, REB-1100(dead), PRS-505
Just use the Debian install CLI option... works fine for me since I didn't want to be using an ancient version...

It even creates a menu entry in the Office menu group. You MAY need to download some extra things though, like some basic Qt libs if you're only using GNOME/GTK apps ATM.

[EDIT]
You could also check the 9.10 backports repo or check the various PPAs and see if someone has packaged up a version already.
[/EDIT]

Last edited by cutterjohn42; 09-10-2009 at 11:06 AM.
cutterjohn42 is offline   Reply With Quote
Old 10-14-2009, 10:04 AM   #13
lbattraw
Junior Member
lbattraw began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2009
Location: Indiana, USA
Device: PRS-600, EZReader PPro 5
*** Never mind, I found out that the libpng version shipped with Ubuntu included the header error at line 326 about 'dont' as well as poppler was not shipped with the xpdf headers. Problem solved! ***

I'm running Ubuntu (JJ) and trying to compile from source (latest, checked out last night). After satisfying all the dependencies I could see I'm still getting an error when running python setup.py build:

/apps/books/calibre/src/calibre/ebooks/pdf/images.cpp: In member function ‘void calibre_reflow::XMLImages::add(GfxState*, Object*, Stream*, unsigned int, unsigned int, GfxImageColorMap*, bool, int*, bool)’:
/apps/books/calibre/src/calibre/ebooks/pdf/images.cpp:160: error: ‘class ImageStream’ has no member named ‘close’
Traceback (most recent call last):
File "setup.py", line 99, in <module>
sys.exit(main())
File "setup.py", line 85, in main
command.run_all(opts)
File "/apps/books/calibre/setup/__init__.py", line 158, in run_all
self.run_cmd(self, opts)
File "/apps/books/calibre/setup/__init__.py", line 154, in run_cmd
cmd.run(opts)
File "/apps/books/calibre/setup/extensions.py", line 232, in run
self.build(ext, dest)
File "/apps/books/calibre/setup/extensions.py", line 269, in build
subprocess.check_call(cmd)
File "/usr/lib/python2.6/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['g++', '-O3', '-Wall', '-DNDEBUG', '-fPIC', '-fno-strict-aliasing', '-pipe', '-pthread', '-I/usr/include/python2.6', '-DPNG_SKIP_SETJMP_CHECK', '-I/usr/include', '-I/usr/include/ImageMagick', '-I/usr/include/poppler', '-c', '/apps/books/calibre/src/calibre/ebooks/pdf/images.cpp', '-o', '/apps/books/calibre/build/objects/pdfreflow/images.o']' returned non-zero exit status 1

Doess anyone have any ideas?

Thanks-
Larry

Last edited by lbattraw; 10-14-2009 at 10:25 AM. Reason: Bad poppler version/no xpdf headers
lbattraw is offline   Reply With Quote
Old 10-14-2009, 11:43 AM   #14
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,739
Karma: 22446736
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Are you sure you're using poppler 0.12.0?
kovidgoyal is offline   Reply With Quote
Old 10-16-2009, 09:20 AM   #15
lbattraw
Junior Member
lbattraw began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2009
Location: Indiana, USA
Device: PRS-600, EZReader PPro 5
Quote:
Originally Posted by kovidgoyal View Post
Are you sure you're using poppler 0.12.0?
Positive. I compiled it from source myself. I finally got everything working but it was definitely not a small effort with all the dependencies and the couple adjustments necessary to get it to compile. I was hoping to get better results than the pre-compiled version since I've had a lot of problems with it locking up the KDE task bar such that I can no longer click on any of the icons/active programs and get a response. Have you noticed this?

Thanks-
Larry
lbattraw is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enough already!!! (short rant) Ea Lounge 38 04-12-2010 02:26 PM
Missing Dependencies : Building Cool Reader 3 as libfb2.so biodiesel HanLin eBook 5 01-03-2010 09:33 PM
Re: rant AprilHare Sony Reader 0 11-21-2009 12:12 AM
Sorry Just Have to Rant! jerryleejr Lounge 6 07-05-2008 06:31 AM
Why, Oh Why! [RANT] Vesper Lounge 19 06-19-2008 11:50 AM


All times are GMT -4. The time now is 10:13 PM.


MobileRead.com is a privately owned, operated and funded community.