Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
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
Old 01-20-2016, 12:28 PM   #2
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)
It looks like your builtin recipes list failed to properly compile.

I have seen that happen a few times during `python2 setup.py resources`, which occasionally requires multiple tries to successfully run -- but it usually stops the installation...

Try rerunning that step and reinstalling from source.
eschwartz is offline   Reply With Quote
Advert
Old 01-21-2016, 03:12 AM   #3
iomari
Zealot
iomari doesn't litteriomari doesn't litter
 
Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
Quote:
Originally Posted by eschwartz View Post
It looks like your builtin recipes list failed to properly compile.

I have seen that happen a few times during `python2 setup.py resources`, which occasionally requires multiple tries to successfully run -- but it usually stops the installation...

Try rerunning that step and reinstalling from source.
[ZSH_Shell - root@iomari:git-repos/calibre -> python2 setup.py resources Thu, 21-01-16 09:04:40:->

*
* Running kakasi
*

Generating Kanwadict
Generating Itaijidict
Generating kanadict

*
* Running coffee
*


*
* Running resources
*

Creating builtin_recipes.xml
QML debugging is enabled. Only use this in a safe environment.
Creating builtin_recipes.zip
Creating ebook-convert-complete.pickle
Traceback (most recent call last):
File "setup.py", line 99, in <module>
sys.exit(main())
File "setup.py", line 85, in main
command.run_all(opts)
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/setup/__init__.py", line 181, in run_all
self.run_cmd(self, opts)
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/setup/__init__.py", line 178, in run_cmd
cmd.run(opts)
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/setup/resources.py", line 283, in run
from calibre.ebooks.conversion.cli import create_option_parser
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/ebooks/conversion/cli.py", line 45, in <module>
''') + localize_user_manual_link('http://manual.calibre-ebook.com/conversion.html')
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/utils/localization.py", line 417, in localize_user_manual_link
lc = lang_as_iso639_1(get_lang())
File "/mnt/installs/iomari/mystuff/used/git-repos/calibre/src/calibre/utils/localization.py", line 402, in lang_as_iso639_1
code = canonicalize_lang(name_or_code)
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)
cPickle.UnpicklingError: invalid load key, '
iomari is offline   Reply With Quote
Old 01-21-2016, 03:18 AM   #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)
Try deleting /mnt/installs/iomari/mystuff/used/git-repos/calibre/resources/localization/ -- it looks like some of your localizations got borked somehow.

Then rerun the setup with `python2 setup.py bootstrap`

Last edited by eschwartz; 01-21-2016 at 03:40 AM.
eschwartz is offline   Reply With Quote
Old 01-21-2016, 07:14 AM   #5
iomari
Zealot
iomari doesn't litteriomari doesn't litter
 
Posts: 146
Karma: 100
Join Date: Aug 2003
Location: Nigeria
Device: galaxy tab
eschwartz, Thanks. That did it. :-)
iomari is offline   Reply With Quote
Advert
Old 01-21-2016, 11:02 AM   #6
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)
You're welcome. Happy to help.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre 2.21 not loading johnjohn222222 Calibre 4 03-16-2015 03:04 PM
PRS-T1 Continual loading The Hebridean Sony Reader 1 06-06-2012 04:05 PM
Books not Loading Billydog Sony Reader 5 02-17-2011 12:09 AM
PRS-650 Loading time? kurtangle83 Sony Reader 2 12-21-2010 09:47 PM


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


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