Bug 2007132

Summary: Pitivi cannot be started on Fedora 35 because of changes in python 3.10
Product: [Fedora] Fedora Reporter: frank
Component: pitiviAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: gwync, igor.raits, philip.wyett, wtaymans
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pitivi-2021.05.0-4.fc35 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-29 00:17:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description frank 2021-09-23 08:19:42 UTC
Description of problem:
Pitivi crashes when launched with the following error:

Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/pitivi/application.py", line 135, in do_startup
    loggable.init('PITIVI_DEBUG', enable_color, enable_crack_output)
  File "/usr/lib64/python3.10/site-packages/pitivi/utils/loggable.py", line 651, in init
    add_limited_log_handler(print_handler)
  File "/usr/lib64/python3.10/site-packages/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/lib64/python3.10/site-packages/pitivi/application.py", line 203, in do_activate
    self.create_main_window()
  File "/usr/lib64/python3.10/site-packages/pitivi/application.py", line 209, in create_main_window
    self.gui = MainWindow(self)
  File "/usr/lib64/python3.10/site-packages/pitivi/mainwindow.py", line 108, in __init__
    self.app.settings.connect("useDarkThemeChanged",
AttributeError: 'NoneType' object has no attribute 'connect'


Version-Release number of selected component (if applicable):
Latest available in Fedora 35

How reproducible:


Steps to Reproduce:
1. Install pitivi
2.  Run pitivi in a terminal

Actual results:
Crash

Expected results:
Normal working program

Additional info:
A fix is available upstream: https://gitlab.gnome.org/GNOME/pitivi/-/merge_requests/403/diffs

Comment 1 Fedora Update System 2021-09-23 14:36:03 UTC
FEDORA-2021-cbc6361b4e has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-cbc6361b4e

Comment 2 Fedora Update System 2021-09-24 02:51:36 UTC
FEDORA-2021-cbc6361b4e has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-cbc6361b4e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-cbc6361b4e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2021-09-29 00:17:34 UTC
FEDORA-2021-cbc6361b4e has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.