Adam Riesse asked on Facebook about how to restore a xxx.gramps backup. He is using 6.0.3 on Windows 11
I suggested:
The easy way is to start with the Gramps application NOT running. Then ‘open’ (double-click) the xxx.gramps file from your OS.
This will start the application, create a new blank tree, name it in the pattern of the xxx file, load the tree, and import the xxx.gramps backup file.
(If you have the Gramps application running, you must do all those steps manually.)
Adam responded that this caused the following error (transcribed below screen capture) :
Gramps Error Report
An unexpected error has occurred in Gramps
Your data is safe, but it would be wise to restart Gramps immediately. If you would like to report the problem to the Gramps team, please click Report and the Error Reporting Wizard will help you create an error report.
Error Details
Error Details
6128: ERROR: grampsapp.py: line 188: Unhandled exception
Traceback (most recent call last):
File "C:\Program Files\GrampsAIO64-6.0.3\gramps\gui grampsgui.py", line 773, in do_activate Gramps(self.argparser, self)
File "C:\Program Files\GrampsAIO64-6.0.3\gramps\guilgrampsgui.py", line 590, in_init__ arg_h.handle_args_gui()
File "C:\Program Files\GrampsAIO64-6.0.3\gramps\cli\arghandler.py", line 389, in handle_args_gui db_path, title = self.dbman.import_new_db(self.open_gui, self.user)
File "C:\Program Files\GrampsAIO64-6.0.3\gramps\cli\clidbman.py", line 409, in import_new_db dbase.load(new_path, user.callback)
File "C:\Program Files\GrampsAIO64-6.0.3\gramps\gen\db\generic.py", line 740, in load
if self.use json_data():
File "C:\Program Files\GrampsAIO64-6.0.3\gramps\plugins\db\dbapi\dbapi.py", line 91, in usejson dal return self.dbapi.column_exists("metadata", "json_data")
File "C:\Program Files\GrampsAIO64-6.0.3\gramps\plugins\db\dbapi\sqlite.py", line 204, in column exi self.execute(
File "C:\Program Files\GrampsAIO64-6.0.3\gramps\plugins\db\dbapi\sqlite.py", line 139, in execute self. cursor.execute("args, **kwargs)
sqlite3.DatabaseError file is not a database
