Error with basic backup and restore

Asked by Douglas Stivison

Under Windows XP, I am completely unable to restore from a backup. I can create a backup without any problem, but when I go to restore from the backup nothing happens but this is what the log file reads:

2012-01-17T16:06:15: DEBUG: Griffith(griffith:1469): config file used: C:\Documents and Settings\Administrator\Application Data\griffith\griffith.cfg
2012-01-17T16:06:15: INFO: Griffith(initialize:101): Using Griffith directory: C:\Documents and Settings\Administrator\Application Data\griffith
C:\Program Files\Griffith\lib\initialize.py:140: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
2012-01-17T16:06:16: DEBUG: Griffith(sql:279): SELECT movies.number, movies.o_title, movies.title, movies.director, movies.poster_md5, movies.genre, movies.seen, movies.year, movies.runtime, movies.rating, movies.created, movies.updated
FROM movies ORDER BY movies.number ASC
2012-01-17T16:06:16: INFO: Griffith(initialize:873): Spellchecker is not available
 ('C:\\Documents and Settings\\Administrator\\Desktop\\griffith_backup_2012-01-16.zip', 'C:\\Documents and Settings\\Administrator\\Desktop')
 2012-01-17T16:10:19: ERROR: Griffith(backup:291):
Traceback (most recent call last):
  File "C:\Program Files\Griffith\lib\backup.py", line 215, in restore
AttributeError: 'tuple' object has no attribute 'lower'
 Traceback (most recent call last):
   File "griffith", line 1014, in restore
   File "C:\Program Files\Griffith\lib\backup.py", line 215, in restore
      if filename.lower().endswith('.zip'):
 AttributeError : 'tuple' object has no attribute 'lower'
 ('C:\\Documents and Settings\\Administrator\\Desktop\\griffith_backup_2012-01-16.zip', 'C:\\Documents and Settings\\Administrator\\Desktop')
 2012-01-17T16:10:32: ERROR: Griffith(backup:291):
Traceback (most recent call last):
  File "C:\Program Files\Griffith\lib\backup.py", line 215, in restore
AttributeError: 'tuple' object has no attribute 'lower'
 Traceback (most recent call last):
   File "griffith", line 1014, in restore
   File "C:\Program Files\Griffith\lib\backup.py", line 215, in restore
      if filename.lower().endswith('.zip'):
 AttributeError : 'tuple' object has no attribute 'lower'

What do I need to change or do to be able to back up and restore successfully?

Thanks for your help.

Doug

Question information

Language:
English Edit question
Status:
Answered
For:
Griffith Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Piotr Ożarowski (piotr) said :
#1

it's a bug, fixed with this one liner: http://svn.berlios.de/viewvc/griffith/trunk/lib/backup.py?r1=1539&r2=1610

replace your backup.py file with this one: http://svn.berlios.de/viewvc/griffith/trunk/lib/backup.py or wait for new release

Can you help with this problem?

Provide an answer of your own, or ask Douglas Stivison for more information if necessary.

To post a message you must log in.