msanger / flyback

Automatically exported from code.google.com/p/flyback
0 stars 0 forks source link

flyback does not run on Debian Lenny #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I installed flyback_0.6.1_r111-1_all.deb on Debian Lenny.  Unfortunately I
cannot get it to run at all.  When running it with python flyback.py, I get
the following error:

(flyback.py:5646): libglade-WARNING **: unknown property `orientation' for
class `GtkVBox'

(flyback.py:5646): 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/local/src/flyback/flyback-read-only/src/select_backup_gui.py",
line 138, in __init__
    util.register_device_added_removed_callback(self.refresh_device_list)
  File "/usr/local/src/flyback/flyback-read-only/src/util.py", line 75, in
register_device_added_removed_callback
    if not device_monitor_thread.is_alive():
AttributeError: 'DeviceMonitorThread' object has no attribute 'is_alive'

Original issue reported on code.google.com by nomo...@gmail.com on 11 Dec 2009 at 3:04

GoogleCodeExporter commented 9 years ago
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?)

Original comment by pub...@kered.org on 19 Feb 2010 at 3:59

GoogleCodeExporter commented 9 years ago

Original comment by pub...@kered.org on 19 Feb 2010 at 4:53

GoogleCodeExporter commented 9 years ago
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

Original comment by joseluis...@gmail.com on 25 Feb 2010 at 10:32

GoogleCodeExporter commented 9 years ago
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.

Original comment by apimarke...@googlemail.com on 28 Feb 2010 at 11:55

GoogleCodeExporter commented 9 years ago
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

Original comment by public.k...@gmail.com on 1 Mar 2010 at 7:28

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 52e3831be6.

Original comment by pub...@kered.org on 1 Mar 2010 at 8:31

GoogleCodeExporter commented 9 years ago
checked in.  can someone confirm this worked for them?

Original comment by pub...@kered.org on 1 Mar 2010 at 8:33

GoogleCodeExporter commented 9 years ago
yea. that works on debian lenny and although on knoppix 6.2

Original comment by germar.r...@gmail.com on 5 Apr 2010 at 10:14

GoogleCodeExporter commented 9 years ago
This issue exists on Ubuntu 8.04 LTS also. The checked in fix for util.py works
(thanks) but the latest .deb available doesn't include the fix so you may see 
more
people with this issue.

Original comment by pcana...@gmail.com on 26 Apr 2010 at 10:17