yfix / flyback

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

flyback fails to run on Kubuntu 9.10 amd64 #79

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.python /usr/share/flyback/flyback.py 

What is the expected output? What do you see instead?

usr/share/flyback/flyback.py:36: Warning: g_set_prgname() called multiple times
  gnome.init( settings.PROGRAM_NAME, settings.PROGRAM_VERSION )
/usr/share/flyback
starting dbus-monitor...
gvfs_dir /home/ardy/.gvfs
Traceback (most recent call last):
  File "/usr/share/flyback/flyback.py", line 39, in <module>
    launch_select_backup_gui()
  File "/usr/share/flyback/flyback.py", line 23, in launch_select_backup_gui
    register_gui( select_backup_gui.GUI(register_gui, unregister_gui) )
  File "/usr/share/flyback/select_backup_gui.py", line 139, in __init__
    self.refresh_device_list()
  File "/usr/share/flyback/select_backup_gui.py", line 75, in
refresh_device_list
    known_backups = backup.get_known_backups()
  File "/usr/share/flyback/backup.py", line 11, in get_known_backups
    for uuid in get_all_devices():
  File "/usr/share/flyback/backup.py", line 70, in get_all_devices
    return get_local_devices() + get_gvfs_devices()
  File "/usr/share/flyback/backup.py", line 51, in get_gvfs_devices
    return [ x[0] for x in get_gvfs_devices_and_paths() ]
  File "/usr/share/flyback/backup.py", line 57, in get_gvfs_devices_and_paths
    for x in os.listdir(gvfs_dir):
OSError: [Errno 2] No such file or directory: '/home/ardy/.gvfs'

What version of the product are you using? On what operating system?
Kubuntu 9.10 amd64

Please provide any additional information below.

Original issue reported on code.google.com by ArdyFa...@gmail.com on 17 Jan 2010 at 11:25

GoogleCodeExporter commented 8 years ago
This can be fixed by changing the function in get_gvfs_devices_and_paths() in 
backup.py to the following...

def get_gvfs_devices_and_paths():
    l = []
    gvfs_dir = os.path.join( os.path.expanduser('~'), '.gvfs')
    try:
        for x in os.listdir(gvfs_dir):
            mount_point = os.path.join( gvfs_dir, x )
            uuid = str(uuidlib.uuid5(UUID_GVFS, mount_point))
            l.append( (uuid, mount_point) )
    except OSError:
        os.mkdir( gvfs_dir )
        pass            
    return l

Original comment by ArdyFa...@gmail.com on 24 Jan 2010 at 6:45

GoogleCodeExporter commented 8 years ago
This issue was closed by revision a61c78a863.

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