From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4 Description of problem: When starting a python app like yumex I get the following error: [root@srv12 ~]# yumex Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Traceback (most recent call last): File "yumex.py", line 23, in ? File "yumWrapper.py", line 26, in ? File "/usr/src/build/535819-i386/install/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ? RuntimeError: could not open display Looks like pygtk2 was built with the %{buildroot} prepended in hardcoded paths. pygtk2 version is 2.6.0-2 on FC4. The Xlib error is solved with Alexander Dalloz's suggestion to do xhost +local:root before starting yumex. Version-Release number of selected component (if applicable): pygtk2-2.6.0-2 How reproducible: Always Steps to Reproduce: 1. start yumex 2. read error message/traceback 3. Actual Results: Traceback (most recent call last): File "yumex.py", line 23, in ? File "yumWrapper.py", line 26, in ? File "/usr/src/build/535819-i386/install/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ? Expected Results: no traceback, yumex starts properly Additional info:
Created attachment 115980 [details] patch for pygtk2-2.6.0-2 The buildroot in the compiled Python files has nothing to do with your display problem. But the fix is attached. Upstream ought to update py-compile and use --destdir appropriately.
Created attachment 115981 [details] spec changes
I was able to start yumex successfully with the current pygtk2 release (2.10.3), so I'm closing this bug. Please feel free to reopen it if you still encounter the reported problem.