Import error with Gramps 6.0.3

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

I no longer have Gramps v6.0.3 running on Windows 11 so I can’t test.

However, I can’t recreate the error if Gramps v6.0.5 is not running and I double click on a .gramps file. My installation of v6.0.5 behaves as you describe, Gramps opens and loads a tree with the same name as the .gramps file.

2 Likes

The error line that draws my attention is the JSON portion.

JSON being the new element in Gramps also makes it the most suspect.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.