#1110263 openshot-qt: does not start at all -- AttributeError: type object 'GreenSocket' has no attribute 'sendmsg'

#1110263#5
Date:
2025-08-02 11:41:15 UTC
From:
To:
Dear Maintainers,

I tried openshot-qt today and it does not start at all.

There are so many libraries involved I don't know
where to send to bug, please reassign accordingly.

Greetings,

Alexandre


/usr/lib/python3/dist-packages/sentry_sdk/__init__.py
 python3-sentry-sdk

/usr/lib/python3/dist-packages/eventlet/__init__.py
 python3-eventlet

/usr/lib/python3/dist-packages/trio/_socket.py
 python3-trio

$ openshot-qt
Loaded modules from: /usr/lib/python3/dist-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.1.1', 'gui_scripts', 'openshot-qt')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/openshot_qt/launch.py", line 183, in main
    from classes import sentry
  File "/usr/lib/python3/dist-packages/openshot_qt/classes/sentry.py", line 42, in <module>
    import sentry_sdk as sdk
  File "/usr/lib/python3/dist-packages/sentry_sdk/__init__.py", line 1, in <module>
    from sentry_sdk.scope import Scope
  File "/usr/lib/python3/dist-packages/sentry_sdk/scope.py", line 12, in <module>
    from sentry_sdk.attachments import Attachment
  File "/usr/lib/python3/dist-packages/sentry_sdk/attachments.py", line 4, in <module>
    from sentry_sdk.envelope import Item, PayloadRef
  File "/usr/lib/python3/dist-packages/sentry_sdk/envelope.py", line 5, in <module>
    from sentry_sdk.session import Session
  File "/usr/lib/python3/dist-packages/sentry_sdk/session.py", line 4, in <module>
    from sentry_sdk.utils import format_timestamp
  File "/usr/lib/python3/dist-packages/sentry_sdk/utils.py", line 1381, in <module>
    HAS_REAL_CONTEXTVARS, ContextVar = _get_contextvars()
                                       ~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/sentry_sdk/utils.py", line 1351, in _get_contextvars
    if not _is_contextvars_broken():
           ~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/sentry_sdk/utils.py", line 1292, in _is_contextvars_broken
    from eventlet.patcher import is_monkey_patched  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/eventlet/__init__.py", line 6, in <module>
    from eventlet import convenience
  File "/usr/lib/python3/dist-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/usr/lib/python3/dist-packages/eventlet/green/socket.py", line 21, in <module>
    from eventlet.support import greendns
  File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 78, in <module>
    setattr(dns, pkg, import_patched('dns.' + pkg))
                      ~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/eventlet/support/greendns.py", line 60, in import_patched
    return patcher.import_patched(module_name, **modules)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/eventlet/patcher.py", line 136, in import_patched
    return inject(
        module_name, None, *additional_modules + tuple(kw_additional_modules.items())
    )
  File "/usr/lib/python3/dist-packages/eventlet/patcher.py", line 113, in inject
    module = __import__(module_name, {}, {}, module_name.split(".")[:-1])
  File "/usr/lib/python3/dist-packages/dns/asyncquery.py", line 34, in <module>
    import dns.quic
  File "/usr/lib/python3/dist-packages/dns/quic/__init__.py", line 39, in <module>
    import trio
  File "/usr/lib/python3/dist-packages/trio/__init__.py", line 25, in <module>
    from . import abc, from_thread, lowlevel, socket, to_thread
  File "/usr/lib/python3/dist-packages/trio/socket.py", line 16, in <module>
    from . import _socket
  File "/usr/lib/python3/dist-packages/trio/_socket.py", line 542, in <module>
    class SocketType:
    ...<221 lines>...
                raise NotImplementedError
  File "/usr/lib/python3/dist-packages/trio/_socket.py", line 755, in SocketType
    @_wraps(_stdlib_socket.socket.sendmsg, assigned=(), updated=())
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'GreenSocket' has no attribute 'sendmsg'

#1110263#10
Date:
2025-08-03 14:55:36 UTC
From:
To:
Hi Alexandre,

Paul

paul@toba ~ $ sudo apt install openshot-qt
Installing:
   openshot-qt

Installing dependencies:
   fonts-cantarell  libjsoncpp26         libopenshot-audio9t64
python3-openshot
   libjs-angularjs  libmagick++-7.q16-5  libopenshot25t64

Suggested packages:
   blender  inkscape  openshot-qt-doc

Summary:
   Upgrading: 0, Installing: 8, Removing: 0, Not Upgrading: 0
   Download size: 80.8 MB
   Space needed: 158 MB / 113 GB available

Continue? [Y/n]
[...]
Get:8 http://deb.debian.org/debian trixie/main amd64 openshot-qt all
3.1.1+dfsg1-3 [78.0 MB]
[...]
Setting up openshot-qt (3.1.1+dfsg1-3) ...
/usr/lib/python3/dist-packages/openshot_qt/language/generate_translations.py:25:
SyntaxWarning: invalid escape sequence '\;'
   $ find -iname "*.po" -exec msgfmt {} -o {}.mo \;
/usr/lib/python3/dist-packages/openshot_qt/language/generate_translations.py:106:
SyntaxWarning: invalid escape sequence '\;'
   subprocess.call('find %s -iname "*.py" -exec xgettext -j -o %s
--keyword=_ {} \;' % (
[...]

paul@toba ~ $ openshot-qt 2> /dev/null
Loaded modules from: /usr/lib/python3/dist-packages/openshot_qt
Screen eDP-1
    devicePixelRatio: 2.0
    logicalDotsPerInch: 96.0
    physicalDotsPerInch: 126.19216605289589
    availableSizes: PyQt5.QtCore.QSize(1536, 864)
paul@toba ~ $ echo $?
0

#1110263#15
Date:
2025-08-07 19:46:19 UTC
From:
To:
control: severity -1 important

Hi,

It works indeed too on another system with only "trixie" source activated.

I cannot reproduce it there.

Greetings

Le dim. 3 août 2025 à 16:55, Paul Gevers <elbrus@debian.org> a écrit :