Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gajim gajim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 227
    • Issues 227
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • gajimgajim
  • gajimgajim
  • Issues
  • #9874

PyGIWarning: Gst was imported without specifying a version first.

On launch when using macOS:

gajim/common/multimedia_helpers.py:19: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.

Possible fix (not sure if this should be here or in common/app.py, so I won't commit anything yet):

diff --git a/gajim/gtk/preferences.py b/gajim/gtk/preferences.py
index 897fef45e..83a0200cb 100644
--- a/gajim/gtk/preferences.py
+++ b/gajim/gtk/preferences.py
@@ -41,6 +41,8 @@ from gajim.gtk.proxies import ManageProxies
 from gajim.gtk.sounds import ManageSounds
 
 try:
+    import gi
+    gi.require_version('Gst', '1.0')
     from gajim.common.multimedia_helpers import AudioInputManager, AudioOutputManager
     from gajim.common.multimedia_helpers import VideoInputManager
     from gi.repository import Gst  # pylint: disable=ungrouped-imports
Assignee
Assign to
Time tracking