View Single Post
Old 01-20-2016, 12:08 PM   #1
iomari
Zealot
iomari doesn't litteriomari doesn't litter
 
Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
2.49 not loading

Grreetings,
I've been using calibre for many years now. I've successfully used the standard download, compiling from git source and the development download.
I'm using opensuse 13.2 that is always updated.
I've been currently using the git source for the last couple of calibre updates with no problem until 2.49 today. I use the git source because the standard download does not reflect my kde theme which is dark but the git source does.
After an almost successful compilation of git source, it ended with the following:

Installing bash completion to: /usr/local/share/bash-completion/completions/calibre [1/117]

____________________ WARNING ____________________
Setting up completion failed with error:
__________________________________________________
Traceback (most recent call last):
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/linux.py", line 748, in setup_completion
write_completion(bash_comp_dest, zsh)
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/linux.py", line 507, in write_completion
from calibre.gui2.tweak_book.main import option_parser as tweak_op
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/gui2/tweak_book/__init__.py", line 13, in <module>
from calibre.spell.dictionary import Dictionaries, parse_lang_code
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/spell/dictionary.py", line 84, in <module>
ul = parse_lang_code(get_system_locale() or 'en-US')
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/spell/__init__.py", line 28, in parse_lang_code
lc = canonicalize_lang(parts[0])
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/utils/localization.py", line 353, in canonicalize_lang
iso639 = _load_iso639()
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/utils/localization.py", line 308, in _load_iso639
_iso639 = cPickle.load(f)
UnpicklingError: invalid load key, '
'.

Setting up desktop integration...

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________
Traceback (most recent call last):
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/linux.py", line 849, in setup_desktop_integration
translators = dict(get_all_translators())
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/utils/localization.py", line 106, in get_all_translators
with ZipFile(P('localization/locales.zip', allow_user_override=False), 'r') as zf:
File "/usr/lib64/python2.7/zipfile.py", line 770, in __init__
self._RealGetContents()
File "/usr/lib64/python2.7/zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file

Creating un-installer: /usr/local/bin/calibre-uninstall
Installing calibre environment module: /usr/local/lib/python2.7/site-packages/init_calibre.py


calibre successfully installed. You can start it by running the command calibre

There were 2 warning(s):

* Setting up completion failed with error:

* Setting up desktop integration failed with error:


So I tried to launch it anyway and after waiting for a good 3 or 4 minutes, I get a dialog box with a "show details" button.

The details are as follows:

calibre, version 2.49.0
ERROR: Startup error: There was an error during calibre startup. Parts of calibre may not function. Click Show details to learn more.

Traceback (most recent call last):
File "/usr/local/lib/calibre/calibre/gui2/main.py", line 276, in initialize_db_stage2
self.start_gui(db)
File "/usr/local/lib/calibre/calibre/gui2/main.py", line 216, in start_gui
main.initialize(self.library_path, db, self.listener, self.actions)
File "/usr/local/lib/calibre/calibre/gui2/ui.py", line 238, in initialize
MainWindowMixin.init_main_window_mixin(self, db)
File "/usr/local/lib/calibre/calibre/gui2/layout.py", line 288, in init_main_window_mixin
self.iactions['Fetch News'].init_scheduler(db)
File "/usr/local/lib/calibre/calibre/gui2/actions/fetch_news.py", line 31, in init_scheduler
self.scheduler = Scheduler(self.gui, db)
File "/usr/local/lib/calibre/calibre/gui2/dialogs/scheduler.py", line 439, in __init__
self.recipe_model = RecipeModel()
File "/usr/local/lib/calibre/calibre/web/feeds/recipes/model.py", line 144, in __init__
self.builtin_recipe_collection = get_builtin_recipe_collection()
File "/usr/local/lib/calibre/calibre/web/feeds/recipes/collection.py", line 99, in get_builtin_recipe_collection
return etree.parse(P('builtin_recipes.xml', allow_user_override=False)).getroot()
File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src/lxml/lxml.etree.c:69970)
File "parser.pxi", line 1749, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:102081)
File "parser.pxi", line 1775, in lxml.etree._parseDocumentFromURL (src/lxml/lxml.etree.c:102345)
File "parser.pxi", line 1679, in lxml.etree._parseDocFromFile (src/lxml/lxml.etree.c:101380)
File "parser.pxi", line 1110, in lxml.etree._BaseParser._parseDocFromFile (src/lxml/lxml.etree.c:96832)
File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:91290)
File "parser.pxi", line 683, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:92476)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:91737)
IOError: Error reading file '/usr/local/share/calibre/builtin_recipes.xml': failed to load external entity "/usr/local/share/calibre/builtin_recipes.xml"


SO the obvious question is how can I resolve this?

Thanks
iomari

btw: the standard download works for 2.49 but without my kde theme which I'm not happy with.
iomari is offline   Reply With Quote