Xpra: Ticket #1795: freshly install xpra error following example

I just installed xpra on a remote server followed the example on the website:

Executed the below command on the server

xpra start ssh:hostname --start=xterm

Getting the following error:

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
/usr/lib/python2.7/dist-packages/xpra/client/gtk2/__init__.py:7: GtkWarning: IA__gdk_screen_get_root_window: assertion 'GDK_IS_SCREEN (screen)' failed
  from xpra.x11.gtk_x11 import gdk_display_source
/usr/lib/python2.7/dist-packages/xpra/gtk_common/gtk_util.py:172: GtkWarning: IA__gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
  default_Cursor          = gdk.Cursor(gdk.X_CURSOR)
xpra main error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xpra/scripts/main.py", line 130, in main
    return run_mode(script_file, err, options, args, mode, defaults)
  File "/usr/lib/python2.7/dist-packages/xpra/scripts/main.py", line 867, in run_mode
    return run_remote_server(error_cb, options, args, mode, defaults)
  File "/usr/lib/python2.7/dist-packages/xpra/scripts/main.py", line 1346, in run_remote_server
    app = make_client(error_cb, opts)
  File "/usr/lib/python2.7/dist-packages/xpra/scripts/main.py", line 1283, in make_client
    toolkit_module = __import__(client_module, globals(), locals(), ['XpraClient'])
  File "/usr/lib/python2.7/dist-packages/xpra/client/gtk2/client.py", line 24, in <module>
    from xpra.gtk_common.gtk_util import gtk_main, color_parse
  File "/usr/lib/python2.7/dist-packages/xpra/gtk_common/gtk_util.py", line 172, in <module>
    default_Cursor          = gdk.Cursor(gdk.X_CURSOR)
RuntimeError: could not create GdkCursor object


Fri, 30 Mar 2018 02:58:29 GMT - Antoine Martin: status, description changed; resolution set

That command is meant to be used on the client, not the server. It requires a display for the client to run.

If your client is headless or if you don't want to connect immediately, you can use "--attach=no".


Sat, 23 Jan 2021 05:33:59 GMT - migration script:

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