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 02-03-2010, 08:53 AM   #1
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
I seem to have broken my calibre installation :(

Hi,

My laptop seems to have overheated whilst downloading some newspapers. This caused the laptop to immidiately power down. Since then I've been unable to use calibre normally. After reboot, when I tried to run calibre again, it came up with the install screen where you select your e-reader device. i selected sony prs 500 as it was the closest to the one I actually have, the prs 600.

If it makes any difference, the reader device was connected to the laptop throughout.

Now when I start calibre, it very very briefly looks like it's about to draw a screen, then it dies. Well, the GUI dies, but the process still appears in ps:

Code:
john@john-laptop:~$ ps waux|grep calibre
john      4744  0.0  0.0   4004   580 pts/0    S    13:34   0:00 /bin/sh /opt/calibre/calibre-parallel
john      4747  0.1  0.8 226192 25944 pts/0    S    13:34   0:00 /opt/calibre/loader
john      4749  0.0  0.0   4004   576 pts/0    S    13:34   0:00 /bin/sh /opt/calibre/calibre-parallel
john      4752  0.1  0.8 226192 25940 pts/0    S    13:34   0:00 /opt/calibre/loader
john      4908  0.0  0.0   7340   892 pts/1    R+   13:43   0:00 grep --color=auto calibre
john@john-laptop:~$
So I killed all processes and went looking in my home dir for lock files, core files, that kind of thing and deleted them. $HOME/Calibre Library is intact and unchanged. Then I went looking in /tmp - it looks like this - after a reboot, and just firing up calibre:

Code:
drwxrwxrwt 14 root root 20480 2010-02-03 13:46 .
drwxr-xr-x 23 root root  4096 2010-02-03 13:31 ..
-rw-------  1 john john     0 2010-02-03 13:34 calibre_0.6.37_czHCYJ_worker_redirect.log
-rw-------  1 john john     0 2010-02-03 13:34 calibre_0.6.37_NU201M_worker_redirect.log
drwx------  2 john john  4096 2010-02-03 13:31 .esd-1000
drwx------  2 gdm  gdm   4096 2010-02-03 13:31 .esd-114
drwxrwxrwt  2 root root  4096 2010-02-03 13:31 .ICE-unix
srwxr-xr-x  1 john john     0 2010-02-03 13:34 john-calibre-gui.socket
drwx------  2 john john  4096 2010-02-03 13:31 keyring-kVZLC9
drwx------  2 gdm  gdm   4096 2010-02-03 13:31 orbit-gdm
drwx------  2 john john  4096 2010-02-03 13:35 orbit-john
drwx------  2 gdm  gdm   4096 2010-02-03 13:31 pulse-PKdhtXMmr18n
drwx------  2 john john  4096 2010-02-03 13:31 pulse-rii9k28bzgbh
drwx------  2 john john  4096 2010-02-03 13:34 pymp-J5MXMM
drwx------  2 john john  4096 2010-02-03 13:31 ssh-JRXHZf4015
drwx------  2 john john  4096 2010-02-03 13:31 virtual-john.RyRut6
-r--r--r--  1 root root    11 2010-02-03 13:29 .X0-lock
drwxrwxrwt  2 root root  4096 2010-02-03 13:29 .X11-unix
So I rebooted again and this time just reinstalled over the top of my old installation, like when one does an upgrade. It didn't fix the problem, but maybe you might find the output useful as it contains a number of errors:

Code:
john@john-laptop:~$ sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()"
[sudo] password for john: 
Enter the installation directory for calibre [/opt]: 
Will download and install calibre-0.6.37-x86_64.tar.bz2
                   Downloading calibre-0.6.37-x86_64.tar.bz2                    
100% [======================================================================]
                                                                                Extracting files to /opt/calibre ...
Extracting application files...
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
	Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta
	Symlinking /opt/calibre/pdfmanipulate to /usr/bin/pdfmanipulate
	Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer
	Symlinking /opt/calibre/calibre to /usr/bin/calibre
	Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre
	Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug
	Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel
	Symlinking /opt/calibre/web2disk to /usr/bin/web2disk
	Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server
	Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize
	Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer
	Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp
	Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf
	Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device
	Symlinking /opt/calibre/librarything to /usr/bin/librarything
	Symlinking /opt/calibre/calibredb to /usr/bin/calibredb
Setting up bash completion...
Installing bash completion to /etc/bash_completion.d/calibre
Trying to setup udev rules...
Installing MAN pages...
	Installing MAN page for ebook-meta
	Installing MAN page for ebook-convert
	Installing MAN page for web2disk
	Installing MAN page for calibre-server
	Installing MAN page for lrf2lrs
	Installing MAN page for lrs2lrf
	Installing MAN page for librarything
	Installing MAN page for calibre-debug
	Installing MAN page for calibredb
	Installing MAN page for calibre-customize
	Installing MAN page for pdfmanipulate
	Installing MAN page for fetch-ebook-metadata
	Installing MAN page for calibre-smtp
Setting up desktop integration...

Run "calibre" to start calibre
john@john-laptop:~$ calibre

** (<unknown>:4734): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed
link  hasn't been detected!
link  hasn't been detected!
Traceback (most recent call last):
  File "/tmp/init.py", line 48, in <module>
  File "/home/kovid/build/calibre/src/calibre/gui2/main.py", line 139, in main
  File "/home/kovid/build/calibre/src/calibre/gui2/main.py", line 55, in run_gui
  File "/home/kovid/build/calibre/src/calibre/gui2/ui.py", line 579, in __init__
  File "/home/kovid/build/calibre/src/calibre/gui2/dialogs/scheduler.py", line 207, in __init__
  File "/home/kovid/build/calibre/src/calibre/web/feeds/recipes/model.py", line 129, in __init__
  File "/home/kovid/build/calibre/src/calibre/web/feeds/recipes/collection.py", line 128, in __init__
  File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266)
  File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
  File "parser.pxi", line 1415, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70514)
  File "parser.pxi", line 938, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:67438)
  File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
  File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
  File "parser.pxi", line 576, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64256)
lxml.etree.XMLSyntaxError: None
uname -a
Linux john-laptop 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 17:01:44 UTC 2009 x86_64 GNU/Linux

The OS is updated daily.

Any idea how to fix this would be most welcome

thanks
booksonthemove is offline   Reply With Quote
Old 02-03-2010, 09:43 AM   #2
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
Shortly after this, i tarred up the old calibre installation in /opt and deleted the dir, then dropped to single user mode and cleared out the cruft in /tmp and /var/tmp, rebooted, reinstalled, tried to run the program and although I get the same error, ps waux| grep calibre shows no calibre process now, so it's not starting at all.
booksonthemove is offline   Reply With Quote
Old 02-03-2010, 12:34 PM   #3
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: 25,931
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run

calibre-debug -g

in a terminal and post the output
kovidgoyal is offline   Reply With Quote
Old 02-03-2010, 01:09 PM   #4
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
here's the output:

Code:
john@john-laptop:/opt/calibre$ calibre-debug -g

** (<unknown>:4515): CRITICAL **: atk_object_set_name: assertion `name != NULL' failed
link  hasn't been detected!
link  hasn't been detected!
Traceback (most recent call last):
  File "/tmp/init.py", line 48, in <module>
  File "/home/kovid/build/calibre/src/calibre/debug.py", line 100, in main
  File "/home/kovid/build/calibre/src/calibre/gui2/main.py", line 137, in main
  File "/home/kovid/build/calibre/src/calibre/gui2/main.py", line 55, in run_gui
  File "/home/kovid/build/calibre/src/calibre/gui2/ui.py", line 579, in __init__
  File "/home/kovid/build/calibre/src/calibre/gui2/dialogs/scheduler.py", line 207, in __init__
  File "/home/kovid/build/calibre/src/calibre/web/feeds/recipes/model.py", line 129, in __init__
  File "/home/kovid/build/calibre/src/calibre/web/feeds/recipes/collection.py", line 128, in __init__
  File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266)
  File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
  File "parser.pxi", line 1415, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70514)
  File "parser.pxi", line 938, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:67438)
  File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
  File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
  File "parser.pxi", line 576, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64256)
lxml.etree.XMLSyntaxError: None
john@john-laptop:/opt/calibre$
Additionally, these are now running:
Code:
john@john-laptop:/opt/calibre$ ps waux|grep calibre
john      4495  0.0  0.0   4004   580 pts/0    S    18:07   0:00 /bin/sh /opt/calibre/calibre-parallel
john      4498  0.5  0.8 226168 25912 pts/0    S    18:07   0:00 /opt/calibre/loader
john      4500  0.0  0.0   4004   580 pts/0    S    18:07   0:00 /bin/sh /opt/calibre/calibre-parallel
john      4503  0.5  0.8 226172 25908 pts/0    S    18:07   0:00 /opt/calibre/loader
john      4524  0.0  0.0   4004   576 pts/0    S    18:08   0:00 /bin/sh /opt/calibre/calibre-parallel
john      4527  0.6  0.8 226168 25908 pts/0    S    18:08   0:00 /opt/calibre/loader
john      4601  0.0  0.0   7340   888 pts/0    R+   18:10   0:00 grep --color=auto calibre
but the GUI isn't

Last edited by booksonthemove; 02-03-2010 at 01:12 PM. Reason: ps waux | grep calibre
booksonthemove is offline   Reply With Quote
Old 02-03-2010, 07:07 PM   #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: 25,931
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
is the file resources/builtin_recipes.xml in the calibre install dir empty?
kovidgoyal is offline   Reply With Quote
Old 02-04-2010, 03:45 AM   #6
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
no that file is full of stuff:
Code:
john@john-laptop:/opt/calibre$ ls -l resources/builtin_recipes.xml
-rw-r--r-- 1 john john 74210 2010-02-01 06:48 resources/builtin_recipes.xml
john@john-laptop:/opt/calibre$
booksonthemove is offline   Reply With Quote
Old 02-04-2010, 10:31 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: 25,931
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
WHat does the following command output

Code:
calibre-debug -c "from lxml import etree; print etree.fromstring(P('builtin_recipes.xml', data=True))"
kovidgoyal is offline   Reply With Quote
Old 02-04-2010, 11:02 AM   #8
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
That produces the following:
Code:
<Element {http://calibre-ebook.com/recipe_collection}recipe_collection at 17be418>
booksonthemove is offline   Reply With Quote
Old 02-04-2010, 11:32 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: 25,931
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
delete ~/.config/calibre/scheduler.xml
kovidgoyal is offline   Reply With Quote
Old 02-04-2010, 12:02 PM   #10
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
YOU'RE A STAR!!!

how did you suss that one out?

thanks again!!
booksonthemove 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
Infinite Calibre 0.7.4 Installation Midas Calibre 2 06-22-2010 02:03 PM
Calibre Installation on opensuse 11.1 michaelbn Calibre 11 02-17-2010 03:01 PM
installation of calibre tblackt Calibre 2 11-01-2009 07:25 PM
Error on installation of calibre 0.6.13 sleepyDragon Calibre 5 09-22-2009 04:37 AM
My installation of calibre crashes dynabook Calibre 1 06-02-2008 05:04 PM


All times are GMT -4. The time now is 04:29 PM.


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