xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 9 years ago

Closed 9 years ago

Last modified 6 weeks ago

#114 closed defect (fixed)

Can't "xpra stop" on CentOS 6

Reported by: ahuillet Owned by: ahuillet
Priority: critical Milestone: 0.2
Component: server Version: 0.1.0
Keywords: Cc:

Description

$ xpra stop :2
Traceback (most recent call last):
  File "/usr/bin/xpra", line 6, in <module>
    xpra.scripts.main.main(__file__, sys.argv)
  File "/usr/lib/python2.6/site-packages/xpra/scripts/main.py", line 268, in main
    run_stop(parser, options, args)
  File "/usr/lib/python2.6/site-packages/xpra/scripts/main.py", line 460, in run_stop
    e = app.run()
  File "/usr/lib/python2.6/site-packages/xpra/client_base.py", line 199, in run
    glib.threads_init()
AttributeError: 'module' object has no attribute 'threads_init'

Change History (4)

comment:1 Changed 9 years ago by Antoine Martin

Owner: changed from Antoine Martin to ahuillet
Priority: majorcritical
Status: newassigned

Does this workaround the problem:

### Eclipse Workspace Patch 1.0
#P Xpra
Index: src/xpra/client_base.py
===================================================================
--- src/xpra/client_base.py	(revision 751)
+++ src/xpra/client_base.py	(working copy)
@@ -196,8 +196,16 @@
 
     def run(self):
         import glib
-        glib.threads_init()
-        gobject.threads_init()
+        try:
+            glib.threads_init()
+        except AttributeError:
+            #old versions of glib may not have this method
+            pass
+        try:
+            gobject.threads_init()
+        except AttributeError:
+            #old versions of gobject may not have this method
+            pass
         self.glib_mainloop = glib.MainLoop()
         self.glib_mainloop.run()
         return  self.exit_code

comment:2 Changed 9 years ago by ahuillet

Works.

comment:3 Changed 9 years ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

applied in r763

comment:4 Changed 6 weeks ago by migration script

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

Note: See TracTickets for help on using tickets.