Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-02-2015, 03:52 AM   #1
indigene
Member
indigene began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2010
Device: Various
Can't add books!

This just happened suddenly, I am not able to add books. Calibre just hangs everytime I try to add a book. Have to terminate the process and restart Caibre.

Have tried with all formats, obviously it has nothing to do with format.

I'm on 2.29 on a Kubuntu 15.04.
indigene is offline   Reply With Quote
Old 06-02-2015, 03:59 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,347
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run it in debug mode

calibre-debug -g
kovidgoyal is offline   Reply With Quote
Advert
Old 06-02-2015, 04:09 AM   #3
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,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
First thing I'd do is backup the library as it is now, to another device or the cloud.

Did you check the drive - is it full, do the h/w manufacturer diagnostics report any problems?

Try this - copy the library in its entirety to another drive, and use that instance of the library - what happens when you do an Add? If you still have problems I suspect the database is corrupt - try dong a Library Maintenance->Restore database..

If you can add then its probably the other drive. Maybe the the Ext directory tables are corrupt, I assume Kubuntu has fdsk try running it to see if there any errors.

BR
BetterRed is offline   Reply With Quote
Old 06-02-2015, 04:34 AM   #4
indigene
Member
indigene began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2010
Device: Various
Took time to open in debug mode. But when I tried to add a book it hung again. The debug code till the point it hung is here. BTW, I am able to change meta-data, merge, delete etc. but just not able to add.

Quote:
calibre 2.29 isfrozen: True is64bit: True
Linux-4.0.0-040000-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '4.0.0-040000-generic', '#201504121935 SMP Sun Apr 12 23:36:33 UTC 2015')
Python 2.7.9
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: Find Duplicates && Annotations && Copy Cover To Device && Read MP3 AudioBook metadata && Sony PRS-T1 notes plugin && Extract ISBN
Starting up...
kf5.kiconthemes: "Theme tree: (Breeze)"
Traceback (most recent call last):
File "site-packages/calibre/gui2/ui.py", line 151, in __init__
File "site-packages/calibre/gui2/ui.py", line 165, 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.prst1_notes.ui", line 12, in <module>
File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
File "calibre_plugins.prst1_notes.main", line 12, in <module>
ImportError: No module named PyQt4.Qt
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Traceback (most recent call last):
File "site-packages/calibre/gui2/ui.py", line 399, in initialize
File "calibre_plugins.annotations.action", line 729, in initialization_complete
File "calibre_plugins.annotations.action", line 1078, in rebuild_menus
File "calibre_plugins.annotations.action", line 158, in create_menu_item
File "site-packages/calibre/gui2/actions/__init__.py", line 202, in create_action
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2026' in position 5: ordinal not in range(256)
ERROR:dbus.proxies:Introspect error on :1.8:/org/freedesktop/NetworkManager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
INFO:cherrypy.error:[02/Jun/2015:13:54:22] ENGINE Bus STARTED
Started up in 211.27 seconds with 36423 books
kf5.kservice.sycoca: Trying to open ksycoca from "/home/XXXXX/.cache/ksycoca5"
KSambaShare: Could not find smb.conf!
kf5.kio.core: KLocalSocket(0x16578500) Jumbo packet of 122086 bytes
indigene is offline   Reply With Quote
Old 06-02-2015, 05:18 AM   #5
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
That looks like the KDE file dialog is hanging, try setting the

CALIBRE_NO_NATIVE_FILEDIALOGS=1

environment variable
kovidgoyal is offline   Reply With Quote
Advert
Old 06-02-2015, 08:33 AM   #6
indigene
Member
indigene began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2010
Device: Various
I ran calibre as CALIBRE_NO_NATIVE_FILEDIALOGS=1 but still it hung on adding a book. Log below shows process till it was killed.

BTW, I also moved /usr/lib/x86_64-linux-gnu/qt4/plugins/bearer to /tmp

Quote:
$ CALIBRE_NO_NATIVE_FILEDIALOGS=1 calibrekf5.kiconthemes: "Theme tree: (Breeze)"
Traceback (most recent call last):
File "site-packages/calibre/gui2/ui.py", line 151, in __init__
File "site-packages/calibre/gui2/ui.py", line 165, 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.prst1_notes.ui", line 12, in <module>
File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
File "calibre_plugins.prst1_notes.main", line 12, in <module>
ImportError: No module named PyQt4.Qt
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Traceback (most recent call last):
File "site-packages/calibre/gui2/ui.py", line 399, in initialize
File "calibre_plugins.annotations.action", line 729, in initialization_complete
File "calibre_plugins.annotations.action", line 1078, in rebuild_menus
File "calibre_plugins.annotations.action", line 158, in create_menu_item
File "site-packages/calibre/gui2/actions/__init__.py", line 202, in create_action
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2026' in position 5: ordinal not in range(256)
kf5.kio.core: KLocalSocket(0x146030d0) Jumbo packet of 122086 bytes
Killed
indigene is offline   Reply With Quote
Old 06-02-2015, 09:05 AM   #7
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
At what point exactly in the process is it hanging? When you press OK in the file dialog?
kovidgoyal is offline   Reply With Quote
Old 06-02-2015, 09:38 AM   #8
indigene
Member
indigene began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2010
Device: Various
Yes, when I press OK in the file dialog.
indigene is offline   Reply With Quote
Old 06-02-2015, 09:44 AM   #9
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
And when you use CALIBRE_NO_NATIVE_FILEDIALOGS

does the file dialog look different?
kovidgoyal is offline   Reply With Quote
Old 06-02-2015, 10:35 AM   #10
indigene
Member
indigene began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2010
Device: Various
I have only launched Calibre from the terminal as
Quote:
Quote:
$ CALIBRE_NO_NATIVE_FILEDIALOGS=1 calibre
And after launch Calibre hangs after i select OK in the file dialog while selecting an ebook to add.
indigene is offline   Reply With Quote
Old 06-02-2015, 11:02 AM   #11
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
Yes, but does the file dialog you see look different with and without that setting?
kovidgoyal is offline   Reply With Quote
Old 06-02-2015, 11:41 AM   #12
indigene
Member
indigene began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2010
Device: Various
Yes, they are different. Essentially the left panel and the file filter are different.

The file dialog from the launching-from-GUI looked more like the elaborate layout a la Dolphin, while the launching-with-CALIBRE_NO_NATIVE_FILEDIALOGS is far simpler.
indigene is offline   Reply With Quote
Old 06-02-2015, 11:57 AM   #13
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
Hmm, in that case I am out of ideas, the only thing suspicous in the debug log is output from KDE's KIO subsytem, which should not be getting involved at all, when using the NON_NATIVE file dialog.

You can always workaround it by adding book susing the command line

calibredb add "path_to_book_file"
kovidgoyal is offline   Reply With Quote
Old 06-02-2015, 11:14 PM   #14
indigene
Member
indigene began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Aug 2010
Device: Various
Silly of me perhaps! As I mentioned I was using this to launch

Quote:
$ CALIBRE_NO_NATIVE_FILEDIALOGS=1 calibre
I changed it to

Quote:
$ calibre CALIBRE_NO_NATIVE_FILEDIALOGS=1
and now file dialog is same as that when I launch calibre from the GUI.

So do I see some hope here, Kovid?
indigene is offline   Reply With Quote
Old 06-02-2015, 11:28 PM   #15
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
No, the first way is correct. The file dialog is supposed to be different.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
add books - author FN/ LN issue - kindle books cybmole Calibre 2 01-29-2014 03:07 PM
Trying to add large library of books - add books seems to have hung nicknefarious Library Management 1 06-18-2012 09:32 AM
Cannot Add Books skidawayme Calibre 7 03-08-2012 03:33 PM
[Enhancement suggestion] Folders when save books in "Add Books" function simonbcn Calibre 1 08-30-2009 12:59 PM
I was told ya can use itunes to get audio books, so how do ya add the books to the K? Dragoro Amazon Kindle 27 04-16-2009 12:17 AM


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


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