xpra icon
Bug tracker and wiki

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

Opened 10 years ago

Closed 10 years ago

Last modified 12 months 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:


$ 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
AttributeError: 'module' object has no attribute 'threads_init'

Change History (4)

comment:1 Changed 10 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()
         return  self.exit_code

comment:2 Changed 10 years ago by ahuillet


comment:3 Changed 10 years ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

applied in r763

comment:4 Changed 12 months 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.