Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-05-2019, 12:22 AM   #1
markcrew
Junior Member
markcrew began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2019
Location: Boise, Idaho USA
Device: Kindle Paperwhite
calibre won't start after editing tweak

I've been using calibre on Windows for a few years to manage a 500+ book library for my Kindle. Today I was editing the tweak to change the initial sort order displayed and I apparently specified an invalid sort key name (series_sort). It saved my change with no error, but when I restarted calibre it died. It displays the splash screen and then shuts down. I'm running version 3.35. I ran a calibre-debug -g and the output is in the attached file.

How do I fix this? The traceback looks like it's failing with a key error in a function called sort_key_func. I can't fix the sort key because I can't get calibre to run so I can edit the tweak. Is there another way to edit it or to reset it?
Attached Files
File Type: txt debug_dump.txt (2.5 KB, 20 views)
markcrew is offline   Reply With Quote
Old 01-05-2019, 02:12 AM   #2
BetterRed
null operator
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: 11,858
Karma: 10633600
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try this
  • Open the config folder: click the Preferences->Miscellaneous->Open... button.
  • Close calibre
  • copy the file tweaks.py to tweaks_save.py, in case you make things worser
  • open the tweaks.py file in a text editor (my choices would be Notepad++ for Windows, TextWrangler for MacOS, Emacs for Linux)
  • look for sort_columns_at_startup = set it to None
  • save tweaks .py
  • start calibre
  • should be OK
  • don't forget to delete tweaks_save.py
BR
BetterRed is offline   Reply With Quote
Advert
Old 01-05-2019, 04:41 PM   #3
markcrew
Junior Member
markcrew began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2019
Location: Boise, Idaho USA
Device: Kindle Paperwhite
I couldn't open the config folder the way you suggested because I couldn't start calibre, but I was able to do a file search and found the tweaks.py file (in \AppData\Roaming\calibre\). I edited it as you suggested and calibre is now running again - THANKS!!!

At one point in my struggles last night I removed & reinstalled calibre and it didn't fix my problem, so apparently the Remove option in the installation msi removes the application but doesn't clean out the calibre stuff from the AppData areas. I'm guessing that's intentional to save a user's settings, customizations, etc so they're not starting over from scratch if they re-install. For files like this tweaks file that can crash the app if they're corrupted, it might be better to rename & replace them with the standard files on either the removal or re-installation of the app.

Thanks again for the help!

Mark
markcrew is offline   Reply With Quote
Old 01-05-2019, 05:01 PM   #4
BetterRed
null operator
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: 11,858
Karma: 10633600
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by markcrew View Post
I couldn't open the config folder the way you suggested because I couldn't start calibre,
Oops, sorry about that

Quote:
Originally Posted by markcrew View Post
. . .

For files like this tweaks file that can crash the app if they're corrupted, it might be better to rename & replace them with the standard files on either the removal or re-installation of the app.
Yours is the first instance I can recall of a mistake in a tweak crashing calibre. I suggest you report it as bug, attaching the debug text and referencing this thread.

This is the bug tracking site ==>> Bugs : calibre

BR
BetterRed is offline   Reply With Quote
Old 01-05-2019, 11:40 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: 33,920
Karma: 10254168
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
its already fixed.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-06-2019, 12:12 AM   #6
BetterRed
null operator
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: 11,858
Karma: 10633600
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
its already fixed.
BetterRed 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
Calibre Won't Start Spydarr Calibre 0 06-23-2015 10:14 PM
Calibre won't start Odyssee Calibre 24 05-01-2015 02:27 AM
Calibre 0.7.9 won't start HarryC Calibre 4 07-20-2010 05:45 PM
Calibre won't start nathancabopino Calibre 14 06-30-2009 12:40 PM
Calibre 0.4.89 won't start ould Calibre 3 10-02-2008 10:21 PM


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


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