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 12-15-2010, 07:36 PM   #1
bgcamroux
Junior Member
bgcamroux began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2010
Device: HTC Desire Z
Exclamation [Old Thread] Problem installing on Ubuntu Linux

Hello,

I'm running Crunchbang Linux on my Asus EeePC, and am attempting to get Calibre installed and running. When I use the command line python script,
Code:
sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()"
I get the following:

Code:
Enter the installation directory for calibre [/opt]: 
Will download and install calibre-0.7.33-i686.tar.bz2
                    Downloading calibre-0.7.33-i686.tar.bz2                     
100% [======================================================================]
                                                                                Downloaded 42569064 bytes
Checking downloaded file integrity...
Extracting files to /opt/calibre ...
Extracting application files...
Traceback (most recent call last):
  File "site.py", line 48, in main
  File "site.py", line 37, in set_qt_plugin_path
ImportError: cannot import name QCoreApplication

Run "calibre" to start calibre
brad@bgc-eee:/opt$
Any idea what I can do to fix this? I cannot find where site.py is located in the install tree

I really want to get going with using Calibre - it'd be great for managing school documents as well as ebooks.

Thank you,

Brad Camroux
bgcamroux is offline   Reply With Quote
Old 12-15-2010, 08:54 PM   #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: 26,359
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
this will be caused by some missing/conflicting system library. Do this this to get debug output about which library:

LD_DEBUG=libs calibre-debug -c "print 1" 2>&1 | less

SCroll through the resulting output till you find the errors
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 02-17-2011, 06:51 AM   #3
wahid
Junior Member
wahid began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2011
Device: iPhone
Question Same issue on Debian Lenny !

Hi Kovid and Brad,

I've been googling for the same error message "ImportError: cannot import name QCoreApplication" and for the same reasons, as I came across your thread.

I have a Debian Lenny 5.0.8 Server and would like to deploy my Calibre-Library onto it. After I read about the "calibre-server" feature, I was more excited.

So first I should first to ensure that my system fulfills the prequisites. Specially the GLIBC. I checked through Aptitude and found a preinstalled one "libc6 Version: 2.7-18lenny7". So I was in doubt, since the version no. is totally different from the requested noted. Anyway I execute
Code:
python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()
and get exactly the same errors mentioned by Brad.

@Kovid
At this step, it's still not possible to run any calibre-command.

@Brad
did you find meanwhile a solution to this?

Greetings
Wahid
wahid is offline   Reply With Quote
Old 08-16-2011, 05:48 PM   #4
Sardog
Junior Member
Sardog began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2011
Location: Comox, BC
Device: Galaxy Tab 2
This is still an issue for me

Any update on this thread... I am trying to get calibre working on Debian Lenny and I am not having any luck getting past this error. I find it strange that I can have calibre working just fine instantly on Windows XP and on a portable stick but can't get it to work on Lenny. I am not an a "compile from source" kinda guy but I can download and move around files. I would be willing to bet that my problem is with the glibc that keeps getting thrown around in the forums but I don't see a step by step guide to installing calibre on lenny and getting it running properly. If anyone has any help on this please let me know.
Sardog is offline   Reply With Quote
Old 08-17-2011, 05:02 AM   #5
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,818
Karma: 1216136
Join Date: Jan 2010
Location: France
Device: Many android devices
Calibre won't install on stock lenny. The glibc libraries are too old. You need squeeze.

I made it work quite some time ago by creating a chroot'ed partition, installing sid (squeeze didn't yet exist) libraries into that partition, then installing calibre. This was a royal bother and in the end I gave it up, but if you want to go down that road, then see http://www.mobileread.com/forums/sho...92#post1185292.

You could also go the backport route to get the newer glibc. The problem is that glibc is used by *everything*. I started down this route and came close to bricking my server, so I don't recommend it. Better would be to upgrade to squeeze.
chaley is offline   Reply With Quote
Old 08-17-2011, 05:14 PM   #6
Sardog
Junior Member
Sardog began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2011
Location: Comox, BC
Device: Galaxy Tab 2
Ok, so if I upgrade to squeeze then I take it all the problems go away and i can just use the linux binary install from calibre.... no other changes need to be made? Thanks for you help. I will look and if upgrading won't wreck any other functions that I like to have (like remote desktop) then I will give it a try.
Sardog is offline   Reply With Quote
Old 05-23-2012, 03:30 AM   #7
kindleren
Member
kindleren began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2012
Device: kindle 4
I've been googling for the same error message "ImportError: cannot import name QCoreApplication". My system is centos5.6 Linux. I want to know who has solved the problem. Any one can tell me how to solved it?
Think you!
@Sardog
@chaley
@wahid
@kovidgoyal
kindleren 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
Python not installing on Ubuntu Robotech_Master Calibre 1 01-05-2011 08:08 AM
Installing latest Calibre in Ubuntu 10.04 maitrayei Calibre 4 09-10-2010 03:48 AM
Install problem on Linux (Ubuntu 9.10) hmonster Calibre 8 03-25-2010 06:08 AM
Problems Installing on Lunix Ubuntu machine Snackb0y11 Calibre 2 12-28-2009 12:04 PM
Problem Installing Calibre on EeePC 901 (Ubuntu Jaunty) andavane Calibre 4 11-08-2009 03:05 PM


All times are GMT -4. The time now is 02:24 AM.


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