xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 3 years ago

Closed 3 years ago

Last modified 16 months ago

#2365 closed defect (fixed)

macos python2 sound query failures

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 3.0
Component: platforms Version: 2.5.x
Keywords: Cc:


This triggers during the unit tests with python2.

We want "gtk3" (actually the gi bindings) to use gstreamer, but the code first loads the default xpra config which in turn loads the gtkosx_application module and uses the non-gi version... then we can't load gi:

xpra initialization error:
 cannot set gtk3=True, already set to False
  File "/Users/osx/gtk/inst/lib/python2.7/site-packages/xpra/scripts/main.py", line 106, in main
    return run_mode(script_file, err, options, args, mode, defaults)
  File "/Users/osx/gtk/inst/lib/python2.7/site-packages/xpra/scripts/main.py", line 481, in run_mode
    return run_sound(mode, error_cb, options, args)
  File "/Users/osx/gtk/inst/lib/python2.7/site-packages/xpra/sound/wrapper.py", line 147, in run_sound
  File "/Users/osx/gtk/inst/lib/python2.7/site-packages/xpra/gtk_common/gobject_compat.py", line 43, in want_gtk3
    assert (_is_gtk3 is None or _is_gtk3==v), "cannot set gtk3=%s, already set to %s" % (v, _is_gtk3)

Change History (2)

comment:1 Changed 3 years ago by Antoine Martin

Resolution: fixed
Status: newclosed

The gi bindings are imported when we call get_xpra_defaults_dirs, which uses the app dir...
r23272 forces the gi bindings early (fugly workaround)

comment:2 Changed 16 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2365

Note: See TracTickets for help on using tickets.