Opened 12 years ago

Closed 12 years ago

#233 closed defect (fixed)

distros without glib bindings - Attribute Error: 'module' object has no attribute 'threads_init' — at Version 1

Reported by: https://me.yahoo.com/a/msXW47MQzuezDUZYqMTw_BZuM5gRRrQ-#7be22 Owned by:
Priority: blocker Milestone: 0.12
Component: Server Keywords: Broken Code, Doesn't Work, winswitch_server
Cc:

Description (last modified by Antoine Martin)

When I install winswitch on Centos 6.4, I get the following error. Installation went fine, no issues. (Windows version worked fine too, no issues.) I'm assuming it needs something similar to the following added:

        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

Here is the actual error message I'm getting:

$ winswitch_server
[DD] 2013/13/03 16:34:58.449676 main_loop.loop_init(False)
Traceback (most recent call last):
  File "/usr/bin/winswitch_server", line 5, in <module>
    server_wrapper.main()
  File "/usr/lib/python2.6/site-packages/winswitch/server/server_wrapper.py", line 50, in main
    from winswitch.server.controller import WinSwitchServer
  File "/usr/lib/python2.6/site-packages/winswitch/server/controller.py", line 20, in <module>
    reactor = loop_init(False)
  File "/usr/lib/python2.6/site-packages/winswitch/util/main_loop.py", line 21, in loop_init
    glib.threads_init()
AttributeError: 'module' object has no attribute 'threads_init'

Change History (1)

comment:1 Changed 12 years ago by Antoine Martin

Description: modified (diff)
Milestone: 0.12
Resolution: fixed
Status: newclosed
Summary: Winswitch Broken - Attribute Error: 'module' object has no attribute 'threads_init'distros without glib bindings - Attribute Error: 'module' object has no attribute 'threads_init'

Should be fixed in r5154 - feel free to re-open if not.

Note: See TracTickets for help on using tickets.