Xpra: Ticket #867: xpra start fails on OS X

Looks like a missing library.

OS X 10.10.3, xpra v0.14.24

inky:~ mg5$ xpra start ssh:example.com:336 --start-child=xterm
** (Xpra:94026): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
** (Xpra:94026): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
** (Xpra:94026): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
xpra main error:
Traceback (most recent call last):
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/scripts/main.py", line 103, in main
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/scripts/main.py", line 756, in run_mode
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/scripts/main.py", line 1243, in run_remote_server
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/scripts/main.py", line 1183, in make_client
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/client/gtk2/client.py", line 25, in <module>
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/gtk_common/gtk_util.py", line 10, in <module>
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/platform/gui.py", line 70, in <module>
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/platform/__init__.py", line 114, in platform_import
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/platform/darwin/gui.py", line 7, in <module>
  File "/Users/MacAdmin/gtk/inst/lib/python2.7/site-packages/xpra/platform/darwin/osx_menu.py", line 8, in <module>
ImportError: cannot import name scaled_image


Thu, 21 May 2015 12:17:15 GMT - Antoine Martin: owner changed

That's an import loop: the client import gtk_util, which does gui_init(), which imports the platform stuf... and on osx, that involves loading the custom osx_menu class, which imports gtk_util again. At that point it is only partially loaded, and is missing scaled_image.

r9468 fixes that. I have uploaded a 0.14.25 beta build with this fix here: http://xpra.org/beta (note: there are many other 0.15.x builds in there too, those were not affected because gtk_util no longer does the gui_init)

If that also works for you, please close the ticket.


Thu, 21 May 2015 12:43:38 GMT - pyther: status changed; resolution set

This fix does the trick, thanks!


Sat, 23 Jan 2021 05:08:18 GMT - migration script:

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