4

When I try to launch calibre I get the following error:

calibre
qt5ct: using qt5ct plugin
Gtk-Message: 14:55:04.251: Failed to load module "atk-bridge"
Traceback (most recent call last):
  File "/usr/bin/calibre", line 20, in <module>
    sys.exit(calibre())
  File "/usr/lib/calibre/calibre/gui_launch.py", line 73, in calibre
    main(args)
  File "/usr/lib/calibre/calibre/gui2/main.py", line 543, in main
    listener = create_listener()
  File "/usr/lib/calibre/calibre/gui2/main.py", line 514, in create_listener
    return Listener(address=gui_socket_address())
  File "/usr/lib/calibre/calibre/utils/ipc/server.py", line 110, in __init__
    self._listener._unlink.cancel()
AttributeError: 'NoneType' object has no attribute 'cancel'

I have executed sudo apt-get install libatk-adaptor:i386 libgail-common:i386 but the error remains the same.

lsb_release -a
LSB Version:    core-11.1.0ubuntu2-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal

/usr/bin/calibre --version calibre (calibre 4.99.4)

Suggestions?

dariofac
  • 1,042
Hermit
  • 63

1 Answers1

5

According to this link, it is a bug of Calibre.

To solve it, as suggested there, you have to replace line 110 (self._listener._unlink.cancel()) of /usr/lib/calibre/calibre/utils/ipc/server.py with the following content:

if self._listener._unlink is not None:
    self._listener._unlink.cancel()

Alternative solutions are to upgrade Calibre to 4.15 (or newer) or downgrade your python3 installation to a version prior to 3.8.3.

dariofac
  • 1,042
  • Followed the above instructions from dariofac.

    Removed installed version and installed latest version.

    Works perfectly.

    Thanks to all for the advice!

    Have upvoted the answer.

    – Hermit Dec 31 '20 at 05:46
  • In Ubuntu it is known as https://bugs.launchpad.net/ubuntu/+source/calibre/+bug/1898904 . – N0rbert Dec 31 '20 at 07:16
  • Thanks @N0rbert, I updated the answer with the correct link – dariofac Dec 31 '20 at 08:56