当我尝试启动时calibre
出现以下错误:
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'
我已经执行了sudo apt-get install libatk-adaptor:i386 libgail-common:i386
,但错误仍然一样。
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)
有什么建议吗?
答案1
根据此链接,这是Calibre的一个bug。
为了解决这个问题,正如那里所建议的,你必须用以下内容替换第 110 行( self._listener._unlink.cancel()
) :/usr/lib/calibre/calibre/utils/ipc/server.py
if self._listener._unlink is not None:
self._listener._unlink.cancel()
替代解决方案是将 Calibre 升级到 4.15(或更新版本)或将您的python3
安装降级到 3.8.3 之前的版本。