Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-22-2014, 06:29 AM   #1
hairybiker
Banned
hairybiker began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Aug 2009
Device: Tolino Shine 3
V2 new error : pyqt4

On trying to install:
Code:
hairybiker@duo:~$ get_calibre
2014-08-22 11:18:46 URL:https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py [25619/25619] -> "-" [1]
Installing to /opt/calibre
Downloading tarball signature securely...
Using previously downloaded calibre-2.0.0-x86_64.txz
Extracting files to /opt/calibre ...
Extracting application files... 
Failed to unpickle stored object:
Traceback (most recent call last):
  File "site-packages/calibre/utils/config.py", line 215, in refresh
ImportError: ('No module named PyQt4.QtCore', <built-in function _unpickle_type>, ('PyQt4.QtCore', 'QByteArray', ('\x01\xd9\xd0\xcb\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x002\x00\x00\x05\x9f\x00\x00\x03\x82\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xfe\xff\xff\xff\xfe\x00\x00\x00\x00\x02\x00',)))
Creating symlinks...
	Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata
	Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs
	Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert
It seems to install but opening it gives errors again

Code:
hairybiker@duo:~$ calibre
Failed to unpickle stored object:
Traceback (most recent call last):
  File "site-packages/calibre/utils/config.py", line 215, in refresh
ImportError: ('No module named PyQt4.QtCore', <built-in function _unpickle_type>, ('PyQt4.QtCore', 'QByteArray', ('\x01\xd9\xd0\xcb\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x002\x00\x00\x05\x9f\x00\x00\x03\x82\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xfe\xff\xff\xff\xfe\x00\x00\x00\x00\x02\x00',)))
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 163, in __init__
  File "site-packages/calibre/gui2/ui.py", line 177, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 582, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.ebook_cleaner.ui", line 11, in <module>
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.ebook_cleaner.main", line 14, in <module>
ImportError: No module named PyQt4
But it IS installed
Code:
hairybiker@duo:~$ sudo apt-get install python-qt4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-qt4 is already the newest version.
So is it a version conflict ?
hairybiker is offline   Reply With Quote
Old 08-22-2014, 06:32 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: 45,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Its installed, the error comes from some plugin you have that has not been ported to Qt 5. Simply ignore it and run calibre as usual.
kovidgoyal is offline   Reply With Quote
Advert
Old 08-22-2014, 06:41 AM   #3
hairybiker
Banned
hairybiker began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Aug 2009
Device: Tolino Shine 3
Cheers
hairybiker is offline   Reply With Quote
Old 08-25-2014, 04:12 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Forgive the proselytizing but have you seen my thread?

Sticky: Fully automatic calibre installer/updater for linux
eschwartz is offline   Reply With Quote
Old 08-25-2014, 04:59 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,662
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@hairybiker - FYI ==>> Stats for porting of calibre plugins to Qt 5

BR
BetterRed is offline   Reply With Quote
Advert
Old 10-06-2014, 05:43 AM   #6
odinokij
Enthusiast
odinokij began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Jul 2012
Device: Kindle 3
I get the same error when I try to update data calling from an external program to calibredb.exe. (Windows 7 - Calibre 2.4)

Examples:

calibredb.exe set_custom --library-path "F:\Biblioteca\CalibreLibrary" "year" 89133 2014

calibredb.exe set_metadata --library-path "F:\Biblioteca\CalibreLibrary" 89133 "F:\Biblioteca\Calibre2\NewMetadata.opf"


Calibredb gives me the error:
"Failed to unpickle stored object:
Python function terminated unexpectedly
[Errno 9] Bad file descriptor (Error Code: 1)"

If I execute these commands through the cmd the error log has more info, saying:
"Traceback (most recent call last):
File "site-packages\calibre\utils\config.py" line 215, in refresh
ImportError: No module named PyQt4.QtCore [...]"

Thanks in advance,
Odinokij
odinokij is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running recipe error: Python function terminated unexpectedly (Error Code: 1) jpassarella Recipes 0 10-05-2012 12:54 PM
calibre, version 0.8.8 ERROR: Error: Error communicating with device no such column: e-bookuser Devices 1 07-03-2011 04:09 PM
Error on install: No module named PyQt4 good_man Calibre 4 02-18-2011 03:10 PM
ERROR: Error: Error communicating with device JWood Calibre 10 04-20-2010 07:28 PM


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


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