Ask Your Question
0

Calibre will no longer start

asked 2018-12-15 07:04:17 -0500

Steve-V gravatar image

Calibre previously started fine, now it fails to start with the following message:

steve@rosie ~]$ calibre
Traceback (most recent call last):
  File "/usr/bin/calibre", line 19, in <module>
    from calibre.gui_launch import calibre
  File "/usr/lib64/calibre/calibre/__init__.py", line 28, in <module>
    from calibre.startup import winutil, winutilerror
  File "/usr/lib64/calibre/calibre/startup.py", line 93, in <module>
    set_translators()
  File "/usr/lib64/calibre/calibre/utils/localization.py", line 208, in set_translators
    mpath = get_lc_messages_path(lang)
  File "/usr/lib64/calibre/calibre/utils/localization.py", line 107, in get_lc_messages_path
    if lang in available_translations():
  File "/usr/lib64/calibre/calibre/utils/localization.py", line 21, in available_translations
    stats = msgpack_loads(open(stats, 'rb').read())
  File "/usr/lib64/calibre/calibre/utils/serialize.py", line 108, in msgpack_loads
    return msgpack.unpackb(dump, ext_hook=msgpack_decoder, raw=False)
  File "msgpack/_unpacker.pyx", line 100, in msgpack._unpacker.unpackb (msgpack/_unpacker.cpp:102)
TypeError: unpackb() got an unexpected keyword argument 'raw'
/usr/lib64/calibre/calibre/ptempfile.py:29: RuntimeWarning: Parent module 'calibre' not found while handling absolute import
  import shutil

This is a problem with msgpack, but I have the most up-to-date msgpack installed (0.5.6).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-15 07:06:38 -0500

Steve-V gravatar image

It turns out that I also had msgpack-python-0.4.7 installed through pip:

[steve@rosie ~]$ pip list | grep msgpack
msgpack (0.5.6)
msgpack-python (0.4.7)

So the solution was:

[steve@rosie ~]$ pip uninstall msgpack-python
Uninstalling msgpack-python-0.4.7:
  /home/steve/.local/lib/python2.7/site-packages/msgpack/__init__.py
  /home/steve/.local/lib/python2.7/site-packages/msgpack/__init__.pyc
  /home/steve/.local/lib/python2.7/site-packages/msgpack/_packer.so
  /home/steve/.local/lib/python2.7/site-packages/msgpack/_unpacker.so
  /home/steve/.local/lib/python2.7/site-packages/msgpack/_version.py
  /home/steve/.local/lib/python2.7/site-packages/msgpack/_version.pyc
  /home/steve/.local/lib/python2.7/site-packages/msgpack/exceptions.py
  /home/steve/.local/lib/python2.7/site-packages/msgpack/exceptions.pyc
  /home/steve/.local/lib/python2.7/site-packages/msgpack/fallback.py
  /home/steve/.local/lib/python2.7/site-packages/msgpack/fallback.pyc
  /home/steve/.local/lib/python2.7/site-packages/msgpack_python-0.4.7-py2.7.egg-info
Proceed (y/n)? y
  Successfully uninstalled msgpack-python-0.4.7
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-12-15 07:04:17 -0500

Seen: 64 times

Last updated: Dec 15 '18