Calibre crashes at startup with AttributeError: 'NoneType' object has no attribute 'cancel'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Calibre crashes on startup with Ubuntu 20.04.
[Test Case]
- install new package
- see if Calibre launches or crashes immediately on startup
[Where problems could occur]
This update contains an upstream commit which corrects the specific error which is happening on Ubuntu 20.04. It simply skips calling cancel() when it is not available. The only regression I can think of is if this patch is incomplete, but it seems to work fine.
Original report:
On Ubuntu 20.04 few months ago I installed Calibre from Ubuntu Store official repository.
I have been using Calibre for months, but today opening it from Ubuntu Launcher and nothing happens, no error.
Executing:
calibre
from terminal and the output is:
============
Traceback (most recent call last):
File "/usr/bin/calibre", line 20, in <module>
sys.
File "/usr/lib/
main(args)
File "/usr/lib/
listener = create_listener()
File "/usr/lib/
return Listener(
File "/usr/lib/
self.
AttributeError: 'NoneType' object has no attribute 'cancel'
============
Command:
calibre --version
outputs:
calibre (calibre 4.99.4)
I tried:
sudo apt purge calibre
sudo apt autoremove
sudo apt install calibre
but the problem is the same.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: calibre 4.99.4+
ProcVersionSign
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 7 18:07:57 2020
InstallationDate: Installed on 2019-10-23 (350 days ago)
InstallationMedia: Ubuntu 18.04.3 LTS "Bionic Beaver" - Release amd64 (20190805)
PackageArchitec
SourcePackage: calibre
UpgradeStatus: Upgraded to focal on 2020-08-14 (54 days ago)
modified.
mtime.conffile.
summary: |
- Calibre does not start anymore + Calibre crashes at startup with "/usr/bin/calibre, line 20" error |
Changed in calibre (Ubuntu): | |
status: | Confirmed → Fix Released |
tags: |
added: verification-done verification-done-focal removed: verification-needed verification-needed-focal |
Status changed to 'Confirmed' because the bug affects multiple users.