[Parti-discuss] xpra start fails: "RuntimeError: could not open display"

Jeremy Fitzhardinge jeremy at goop.org
Sat Sep 6 20:09:58 EDT 2008


I can't start an xpra server, because it fails when importing gtk:

$ ./install/bin/xpra start :13
Traceback (most recent call last):
  File "./install/bin/xpra", line 6, in <module>
    xpra.scripts.main.main(sys.argv)
  File "install/lib/python/xpra/scripts/main.py", line 43, in main
    from xpra.scripts.server import run_server
  File "install/lib/python/xpra/scripts/server.py", line 1, in <module>
    import gtk
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 79, in <module>
    _init()
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 67, in _init
    _gtk.init_check()
RuntimeError: could not open display


xpra.scripts.main.nox() explicitly deletes the DISPLAY from the
environment, and it appears that gtk won't import without a valid
display.  This suggests that xpra needs to be careful to defer importing
gtk until the Xvfb server has been set up.

This is building from parti-all-0.0.4.tar.gz.  The environment is a
current Fedora 9 system, with pygtk2-2.12.1-6.fc9.i386 and
gtk2-2.12.11-1.fc9.i386 installed.

Thanks,
    J



More information about the Parti-discuss mailing list