xpra icon
Bug tracker and wiki

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#116 closed defect (fixed)

Xpra doesn't start on CentOS 5

Reported by: ahuillet Owned by: ahuillet
Priority: major Milestone: 0.3
Component: android Version: 0.1.0
Keywords: Cc:

Description

Hello,

Traceback (most recent call last):
  File "/usr/bin/xpra", line 6, in ?
    xpra.scripts.main.main(__file__, sys.argv)
  File "/usr/lib64/python2.4/site-packages/xpra/scripts/main.py", line 263, in main
  File "/usr/lib64/python2.4/site-packages/xpra/scripts/server.py", line 256, in run_server
AttributeError: 'module' object has no attribute 'fchmod'

This is with Python 2.4.3.

Change History (11)

comment:1 Changed 7 years ago by Antoine Martin

Status: newaccepted

If this is enough to fix it, I can re-spin the CentOS 5 packages:

### Eclipse Workspace Patch 1.0
#P Xpra
Index: src/xpra/scripts/server.py
===================================================================
--- src/xpra/scripts/server.py	(revision 764)
+++ src/xpra/scripts/server.py	(working copy)
@@ -253,7 +253,10 @@
     # Unix is a little silly sometimes:
     umask = os.umask(0)
     os.umask(umask)
-    os.fchmod(scriptfile.fileno(), o0700 & ~umask)
+    if hasattr(os, "fchmod"):
+        os.fchmod(scriptfile.fileno(), o0700 & ~umask)
+    else:
+        os.chmod(scriptpath, o0700 & ~umask)
     scriptfile.write(xpra_runner_shell_script(xpra_file, starting_dir))
     scriptfile.close()
 

comment:2 Changed 7 years ago by ahuillet

This makes it go further... but it crashes later:

Traceback (most recent call last):
  File "/usr/bin/xpra", line 6, in ?
    xpra.scripts.main.main(__file__, sys.argv)
  File "/usr/lib64/python2.4/site-packages/xpra/scripts/main.py", line 263, in main
  File "/usr/lib/python2.4/site-packages/xpra/scripts/server.py", line 319, in run_server
    from xpra.server import can_run_server, XpraServer
  File "/usr/lib64/python2.4/site-packages/xpra/server.py", line 20, in ?
ImportError: No module named uuid
FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.

(xpra:15331): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
Segmentation fault

comment:3 Changed 7 years ago by Antoine Martin

The python-uuid module was meant to be pulled in as a dependency, see %define requires_extra , python-uuid

If not, we will need to deal with that too, but installing it by hand should fix that. Not sure about the segfault though...

Last edited 7 years ago by Antoine Martin (previous) (diff)

comment:4 Changed 7 years ago by Antoine Martin

Got it, the static build section was overriding EL5 options, fixed in r768

Re-spinning the packages now.

comment:5 Changed 7 years ago by ahuillet

Better - but not solved. I think you need to add python-ctypes as a dependency.

Traceback (most recent call last):
  File "/usr/bin/xpra", line 6, in ?
    xpra.scripts.main.main(__file__, sys.argv)
  File "/usr/lib64/python2.4/site-packages/xpra/scripts/main.py", line 263, in main
  File "/usr/lib64/python2.4/site-packages/xpra/scripts/server.py", line 322, in run_server
  File "/usr/lib64/python2.4/site-packages/xpra/server.py", line 27, in ?
ImportError: No module named ctypes
FreeFontPath: FPE "unix/:7100" refcount is 2, should be 1; fixing.

(xpra:20648): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed
Segmentation fault
Last edited 7 years ago by ahuillet (previous) (diff)

comment:6 Changed 7 years ago by Antoine Martin

Yes, I'll add ptthon-ctypes as a dependency for centos 5.x only and re-spin the packages, does this prevent the segfault ?
Or is there another issue still?

comment:7 Changed 7 years ago by ahuillet

It prevents the segfault, however I still get something strange:

glib is missing, cannot set the application name, please install glib's python bindings: No module named glib

And I can't find the name of the package I'm supposed to install!

comment:8 Changed 7 years ago by Antoine Martin

You can safely ignore this one, centos 5 is so outdated you just can't get the glib bindings for it, afaik.

comment:9 Changed 7 years ago by Antoine Martin

Owner: changed from Antoine Martin to ahuillet
Status: acceptedassigned

new CentOS 5.x packages have the fix from r769 - please confirm and close this ticket.

comment:10 Changed 7 years ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

works for me - closing

comment:11 Changed 7 years ago by ahuillet

Sorry for not closing earlier. I confirm that it works.

Note: See TracTickets for help on using tickets.