← Back to team overview

edubuntu-bugs team mailing list archive

[Bug 1898904] Re: Calibre crashes at startup with AttributeError: 'NoneType' object has no attribute 'cancel'

 

Attached is a debdiff with the minimal fix for this issue. I've uploaded
an updated package for processing by the SRU team also.

** Patch added: "calibre_4.99.4+dfsg+really4.12.0-1ubuntu1.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/calibre/+bug/1898904/+attachment/5446311/+files/calibre_4.99.4+dfsg+really4.12.0-1ubuntu1.debdiff

** Changed in: calibre (Ubuntu Focal)
       Status: Confirmed => In Progress

** Description changed:

- On Ubuntu 20.04 few months ago I installed Calibre from Ubuntu Store
- official repository.
+ [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.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()
+   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'
  ============
  
  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+dfsg+really4.12.0-1build1
  ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
  Uname: Linux 5.4.0-48-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.9
  Architecture: amd64
  CasperMD5CheckResult: skip
  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)
  PackageArchitecture: all
  SourcePackage: calibre
  UpgradeStatus: Upgraded to focal on 2020-08-14 (54 days ago)
  modified.conffile..etc.default.apport: [modified]
  mtime.conffile..etc.default.apport: 2020-04-29T17:08:03.553351

-- 
You received this bug notification because you are a member of Edubuntu
Bugsquad, which is subscribed to calibre in Ubuntu.
https://bugs.launchpad.net/bugs/1898904

Title:
  Calibre crashes at startup with AttributeError: 'NoneType' object has
  no attribute 'cancel'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/calibre/+bug/1898904/+subscriptions


References