not sure what could cause this. what version of python are you running?
in util.py, could you add the following:
print 'device_monitor_thread', device_monitor_thread
after this line:
device_monitor_thread = DeviceMonitorThread()
and rerun? (and give me the output?)
Comment #2 on issue 77 by pub...@kered.org: flyback does not run on Debian
Lenny
http://code.google.com/p/flyback/issues/detail?id=77
(No comment was entered for this change.)
Hello
With your indications, the result is this.
debian:/usr/share/flyback# python flyback.py
device_monitor_thread <DeviceMonitorThread(Thread-1, initial)>
/usr/share/flyback
(flyback.py:3977): libglade-WARNING **: unknown property `orientation' for
class
`GtkVBox'
(flyback.py:3977): libglade-WARNING **: unknown property `orientation' for
class
`GtkVBox'
Traceback (most recent call last):
File "flyback.py", line 72, in <module>
launch_select_backup_gui()
File "flyback.py", line 43, in launch_select_backup_gui
register_gui( select_backup_gui.GUI(register_gui, unregister_gui) )
File "/usr/share/flyback/select_backup_gui.py", line 138, in __init__
util.register_device_added_removed_callback(self.refresh_device_list)
File "/usr/share/flyback/util.py", line 81, in
register_device_added_removed_callback
if not device_monitor_thread.is_alive():
AttributeError: 'DeviceMonitorThread' object has no attribute 'is_alive'
debian:/usr/share/flyback#
debian:/usr/share/flyback# python flyback.py
device_monitor_thread <DeviceMonitorThread(Thread-1, initial)>
/usr/share/flyback
(flyback.py:3992): libglade-WARNING **: unknown property `orientation' for
class
`GtkVBox'
(flyback.py:3992): libglade-WARNING **: unknown property `orientation' for
class
`GtkVBox'
Traceback (most recent call last):
File "flyback.py", line 72, in <module>
launch_select_backup_gui()
File "flyback.py", line 43, in launch_select_backup_gui
register_gui( select_backup_gui.GUI(register_gui, unregister_gui) )
File "/usr/share/flyback/select_backup_gui.py", line 138, in __init__
util.register_device_added_removed_callback(self.refresh_device_list)
File "/usr/share/flyback/util.py", line 81, in
register_device_added_removed_callback
if not device_monitor_thread.is_alive():
AttributeError: 'DeviceMonitorThread' object has no attribute 'is_alive'
Regards
This is because you use python2.5 on Lenny which has no is_alive() method
on the
threading object.
On Debian SID with python2.6 it works very well.
bummer. didn't know that is_alive() is new in 2.6. (usually the docs will
hint at
such...)
googling leads me to the following fix:
if not hasattr(threading.Thread, "is_alive"):
threading.Thread.is_alive = threading.Thread.isAlive
Comment #6 on issue 77 by pub...@kered.org: flyback does not run on Debian
Lenny
http://code.google.com/p/flyback/issues/detail?id=77
This issue was closed by revision 52e3831be6.
checked in. can someone confirm this worked for them?
yea. that works on debian lenny and although on knoppix 6.2