Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-22-2011, 12:38 PM   #1
csiebert
Junior Member
csiebert began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2011
Device: nook
ImportError: cannot import name QVariant

I am trying to compile calbrie 0.7.46 and I have hacked my way through all of the pre reqs but now I cant get past this error. Could someone point me to a clue?

root@debian:/calibre# python setup.py install

*
* Running build
*


####### Building extension icu #######

####### Building extension sqlite_custom #######

####### Building extension chmlib #######

####### Building extension chm_extra #######

####### Building extension magick #######

####### Building extension pdfreflow #######

####### Building extension lzx #######

####### Building extension fontconfig #######

####### Building extension msdes #######

####### Building extension cPalmdoc #######

####### Building extension podofo #######

####### Building extension pictureflow #######

####### Building extension progress_indicator #######

*
* Running gui
*

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 "/calibre/setup/__init__.py", line 159, in run_all
self.run_cmd(self, opts)
File "/calibre/setup/__init__.py", line 152, in run_cmd
self.run_cmd(scmd, opts)
File "/calibre/setup/__init__.py", line 155, in run_cmd
cmd.run(opts)
File "/calibre/setup/gui.py", line 36, in run
self.build_forms()
File "/calibre/setup/gui.py", line 59, in build_forms
from calibre.gui2 import build_forms
File "/calibre/src/calibre/gui2/__init__.py", line 8, in <module>
from PyQt4.Qt import QVariant, QFileInfo, QObject, SIGNAL, QBuffer, Qt, \
ImportError: cannot import name QVariant

Thanks for your help

P.S. Kovid ROCKS!!
csiebert is offline   Reply With Quote
Old 02-22-2011, 12:39 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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Are you using python 3?
kovidgoyal is online now   Reply With Quote
Advert
Old 02-22-2011, 12:56 PM   #3
csiebert
Junior Member
csiebert began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2011
Device: nook
when I do this at the shell prompt I get:

root@debian:/calibre# python --version
Python 2.6.6
root@debian:/calibre#
csiebert is offline   Reply With Quote
Old 02-22-2011, 01:05 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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then you either have a damaged PyQt installation or your PyQt is setup to disable the QVariant API which calibre requires.

I suggest you install the calibre binary instead of trying to install from source. calibre has so many dependencies that trying to install from source is hard.

Note that you can install the binary and still run from source, instructions for doing that are in the User Manual under the development environment section.
kovidgoyal is online now   Reply With Quote
Old 02-22-2011, 01:19 PM   #5
csiebert
Junior Member
csiebert began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2011
Device: nook
Thanks Kovid, but now its a quest!! . and besides, I am installing this on an ARM processor with Debian.

I did have issues getting the PyQt4 to install. what should be installed here and do I do the devel or just the regular stuff?

thanks

Cliff
csiebert is offline   Reply With Quote
Advert
Old 02-22-2011, 01:25 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: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You will need the dev libraries
kovidgoyal is online now   Reply With Quote
Old 02-22-2011, 01:25 PM   #7
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,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
The deveopment packages are required to build. Once built only the regular packages are needed.
user_none is offline   Reply With Quote
Old 02-22-2011, 01:32 PM   #8
csiebert
Junior Member
csiebert began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2011
Device: nook
thanks guys. I will start from scratch. damn that was a lot of work hacking my way through all of the pre-reqs!! .
csiebert is offline   Reply With Quote
Reply

Tags
compile qvariant


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
import mixmax11 Calibre 5 11-19-2010 09:15 PM
Error on import Amalthia Calibre 8 03-23-2010 03:04 PM
ImportError: No module named profiles ould Calibre 11 02-28-2009 07:25 PM
Import Tax garygibsonsf Sony Reader 2 12-19-2008 08:14 AM
ImportError: No module named pkg_resources erik80 Calibre 3 08-02-2008 09:33 AM


All times are GMT -4. The time now is 03:01 AM.


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