![]() |
#1 |
Junior Member
![]() 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!! |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Are you using python 3?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() 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# |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2011
Device: nook
|
Thanks Kovid, but now its a quest!!
![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You will need the dev libraries
|
![]() |
![]() |
![]() |
#7 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() 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!!
![]() |
![]() |
![]() |
![]() |
Tags |
compile qvariant |
|
![]() |
||||
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 |