From: John H. <jdh...@ac...> - 2004-05-13 13:04:59
|
>>>>> "Nils" == Nils Wagner <nw...@me...> writes: Nils> Now python setup.py build works fine. However Nils> python setup.py install Nils> as root failed with the following messages Nils> Xlib: connection to ":0.0" refused by server Xlib: No Nils> protocol specified Nils> Traceback (most recent call last): File "setup.py", line 75, Nils> in ? try: import gtk File Nils> "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", Nils> line 43, in ? from _gtk import * RuntimeError: could not Nils> open display Nils> Any hint is appreciated A couple of areas in the build process currently require an X connection. This should probably be fixed. Are you building on a local or remote machine? * If you are building on a remote machine, you need to set the display or use automatic X forwarding with ssh -X. * If you are building on a local machine, I think the problem is that when you go to install you are root and root doesn't have access to the display. You can verify this by trying to do root> xterm& and see if you can get a window to pop up. If not, you need to tell the windowing system to allow connections from root. Unix gurus please advise here. Something like user> python setup.py build user> xhost + user> su root> python setup.py install root> exit user> xhost - Let me know! JDH |