Gramps Version 5.1.6 and Operating System is Fedora Linux Version 39
I am having a problem importing any gedcom file. I first attempted to import a gedcom file created in Family Tree Maker 2014 but got the error message “could not open file akibufamilytree.ged” “file type ‘ged’ is unknown to Gramps.” “Valid types are: Gramps database, Gramps XML, Gramps package, GEDCOM, and others.”
I then thought the perhaps it was a problem with the encoding from Family Tree Maker, so I exported a Gramps test family tree to the GEDCOM format. Then I attempted to import that same file into a test Gramps family tree but I got the same error message.
Any idea what might be happening?
One thing that I have noticed if it helps is that on the import screen in the select file type for import dialog box (default is ‘Automatically detected’), if I use the drop down menu to attempt to specifically select GEDCOM, there is no entry for GEDCOM. The only possible selections are CSV, GeneWeb, Gramps Package (portable XML), Gramps 2.x database, Pro-Gen, and vCard.
Note, I have uninstalled and reinstalled the program. Also, I have installed the flatpak version of program to see if that would work for the import to no avail.
In addition, I tested out exporting to the Gramps XML (family tree) format and then importing that into a separate test Gramps family tree and it imported fine. So it does appear that the issue is specific to the import of GEDCOM files. The GEDCOM version of the files are 5.5 and 5.5.1.
Thanks for the quick response. To answer your question, I have not added, customized nor disabled any plugins. I merely installed Gramps with whatever default options existed.
I just looked under the ‘Registered Plugins’ tab under Plugin Manager and the GEDCOM Importer Plugin is listed as Visible. However, under the ‘Loaded Plugins’ tab I only see the 'exportgedcom.py file as Loaded and Visible. I don’t actually see a corresponding importgedcom.py file listed. Is there supposed to be one listed on that tab? Thanks in advance.
I also just checked the “/usr/lib/python3.12/site-packages/gramps/plugins/importer” directory and I do see an ‘importgedcom.glade’ file as well as an ‘importgedcom.py’ file along with others, eg. importcsv.py, etc.
As an aside, Is there supposed to be an ‘import’ subdirectory under the plugins directory like there is an ‘export’ subdirectory thereunder or is the ‘importer’ subdirectory serving that purpose?
Can you start Gramps from the command line and then attempt the GEDCOM import and see if the terminal has the full error that you can paste here please?
A quick search shows that it most likely related to Python 3.12 deprecating “imp” see:
How do I migrate from imp? that starts " We are upgrading to Python 3.12 in Fedora and I need to port various packages I haven’t written from imp to importlib."
@Patsyblefebre Thank you for responding. I ran gramps from the terminal and then tried to import the gedcom file and I received two warnings in the terminal listed below the second of which is the same as that listed in journalctl.
“WARNING: dummydb.py: line 1420: database is closed”
“WARNING: _manager.py: line 307: Plugin error (from ‘importdegcom’): No module named ‘imp’”
I will check out the link you sent and advise all of progress.
Checking Fedora’s page on Gramps you can see that Fedora 40 already has Gramps 5.2 and that about 22 hours ago Fedora 39 had Gramps 5.2 moved into testing, noidea how long it will be till available for you?
In the mean time I’d suggest preparing by backing up all your family trees and media.
@Nick-Hall Understood re the cause being running Gramps with Python 3.12 and v5.1.6 needing to have a few patches applied. Thanks for the confirmation!!
As for my own situation, I was able to import the GEDCOM file using the Gramps v5.2 version from Windows and then exporting as a Gramps xml back to my Fedora 5.16 Gramps installation… so I am all sorted with the initial problem.
Should I mark this as problem as having a solution… with that solution being to upgrade one’s version to Gramps v5.2.0 or above (with the caveat that if using the command line, a certain patch might be needed)?