pitivi crashed with AttributeError in add_limited_log_handler(): module 'collections' has no attribute 'Callable'

Bug #1963800 reported by Fabio Marconi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pitivi (Ubuntu)
Fix Released
Medium
Erich Eickmeyer

Bug Description

Crash at start
Missing soft dependency:
- GSound not found on the system
    -> enables sound notifications when rendering is complete
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/application.py", line 135, in do_startup
    loggable.init('PITIVI_DEBUG', enable_color, enable_crack_output)
  File "/usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/utils/loggable.py", line 651, in init
    add_limited_log_handler(print_handler)
  File "/usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/utils/loggable.py", line 738, in add_limited_log_handler
    if not isinstance(func, collections.Callable):
AttributeError: module 'collections' has no attribute 'Callable'
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/application.py", line 203, in do_activate
    self.create_main_window()
  File "/usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/application.py", line 209, in create_main_window
    self.gui = MainWindow(self)
  File "/usr/lib/x86_64-linux-gnu/pitivi/python/pitivi/mainwindow.py", line 108, in __init__
    self.app.settings.connect("useDarkThemeChanged",
AttributeError: 'NoneType' object has no attribute 'connect'
njin@Fluid:~/UWBridge/Network$

ProblemType: Crash
DistroRelease: Ubuntu 22.04
Package: pitivi 2021.05-1
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu78
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sun Mar 6 10:40:50 2022
ExecutablePath: /usr/bin/pitivi
InstallationDate: Installed on 2021-04-18 (322 days ago)
InstallationMedia: Ubuntu 20.04.2.0 LTS "Focal Fossa" - Release amd64 (20210209.1)
InterpreterPath: /usr/bin/python3.10
ProcCmdline: /usr/bin/python3 /usr/bin/pitivi
Python3Details: /usr/bin/python3.10, Python 3.10.2, python3-minimal, 3.10.1-0ubuntu1
PythonArgs: ['/usr/bin/pitivi']
PythonDetails: N/A
SourcePackage: pitivi
Title: pitivi crashed with AttributeError in add_limited_log_handler(): module 'collections' has no attribute 'Callable'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :
information type: Private → Public
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote (last edit ):

I'm more than willing to bet this is a Python 3.10 compatibility issue, which means it's 100% upstream.

Looks like it was fixed (https://gitlab.gnome.org/GNOME/pitivi/-/issues/2571), but no release.

Changed in pitivi (Ubuntu):
status: New → Triaged
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

This should do the trick.

Changed in pitivi (Ubuntu):
status: Triaged → In Progress
importance: Undecided → Medium
assignee: nobody → Erich Eickmeyer  (eeickmeyer)
tags: added: patch
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Fabio,

Try installing the pitivi package in https://launchpad.net/~eeickmeyer/+archive/ubuntu/ppa2 and see if that fixes this problem. If you can confirm that the problem is fixed there, I can upload this to Jammy.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Nevermind, found some time to verify it myself. :)

Changed in pitivi (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pitivi - 2021.05-1ubuntu1

---------------
pitivi (2021.05-1ubuntu1) jammy; urgency=medium

  * Patch to update collections import in Python 3.10 (LP: #1963800)

 -- Erich Eickmeyer <email address hidden> Sun, 06 Mar 2022 08:44:14 -0800

Changed in pitivi (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Checked now, fix confirmed. sorry late but had a hand surgery.
Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.