Openshot in Fedora 40

Hi!,

when I try to run openshot_qt in Fedora 40, I get the followin error:

Loaded modules from: /usr/lib/python3.12/site-packages/openshot_qt
Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 33, in <module>
    sys.exit(load_entry_point('openshot-qt==3.2.1', 'gui_scripts', 'openshot-qt')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/openshot_qt/launch.py", line 189, in main
    sentry.init_tracing()
  File "/usr/lib/python3.12/site-packages/openshot_qt/classes/sentry.py", line 104, in init_tracing
    sdk.init(
  File "/usr/lib/python3.12/site-packages/sentry_sdk/_init_implementation.py", line 41, in _init
    client = sentry_sdk.Client(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/sentry_sdk/client.py", line 245, in __init__
    self._init_impl()
  File "/usr/lib/python3.12/site-packages/sentry_sdk/client.py", line 368, in _init_impl
    self.integrations = setup_integrations(
                        ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/sentry_sdk/integrations/__init__.py", line 150, in setup_integrations
    for integration_cls in iter_default_integrations(
  File "/usr/lib/python3.12/site-packages/sentry_sdk/integrations/__init__.py", line 47, in iter_default_integrations
    yield getattr(import_module(module), cls)
                  ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'sentry_sdk.integrations.cohere'

Does anybody know how to solve the problem?

Thanks,
Rafel Amer

I am getting the same error. I have filed a Bugzilla report:
https://bugzilla.redhat.com/show_bug.cgi?id=2306156

Hi!,
I have found that if I change the line

 auto_enabling_integrations=True,  # type: bool

by

 auto_enabling_integrations=False,  # type: bool

in the file /usr/lib/python3.12/site-packages/sentry_sdk/consts.py
then openshot_qt works correctly.
But this file belongs to the package python3-sentry-sdk-2.11.0-1.fc40.noarch

I don’t know which file in package openshot-3.2.1-1.fc40.noarch has to be modified to solve the problem.

Best regards,
Rafel Amer

Installing python3-sentry-sdk should solve the missing module

$ sudo dnf repoquery -ql python3-sentry* |grep cohere
/usr/lib/python3.13/site-packages/sentry_sdk/integrations/__pycache__/cohere.cpython-313.opt-1.pyc
/usr/lib/python3.13/site-packages/sentry_sdk/integrations/__pycache__/cohere.cpython-313.pyc
/usr/lib/python3.13/site-packages/sentry_sdk/integrations/cohere.py
$ sudo dnf provides /usr/lib/python3.13/site-packages/sentry_sdk/integrations/cohere.py
Updating and loading repositories:
Repositories loaded.
python3-sentry-sdk-2.13.0-1.fc41.noarch : The new Python SDK for Sentry.io
Repo         : @System
Matched From : 
Filename     : /usr/lib/python3.13/site-packages/sentry_sdk/integrations/cohere.py

python3-sentry-sdk-2.13.0-1.fc41.noarch : The new Python SDK for Sentry.io
Repo         : fedora
Matched From : 
Filename     : /usr/lib/python3.13/site-packages/sentry_sdk/integrations/cohere.py

Hi!

but in Fedora 40 I don’t have installed python3.13 and the installed version of
python3-sentry-sdk is 2.11, not 2.13. The 2.13 version for Fedora 40 is in f40-updates-testing

I will try to install it to see if this change solves thr problem.

Best regards,
Rafel Amer

Hi!,

installing the package python3-sentry-sdk-2.13.0-2.fc40.noarch.rpm solves the problem and openshot runs correctly.

I think that this package must be moved from f40-updates-testing to f40-updates

Best regards,
Rafel Amer

Have you tried the flatpak?

Hi!,

I have only tried the RPM version.

Best regards,
Rafel Amer