forked from madprime/python-gedcom
-
-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Milestone
Description
I've download and installed python-gedcom v.0.2.0.dev
I run it as follows:
from gedcom import Gedcom
file_path = '7q4425_661384sh82b72570424am5.ged' # Path to your `.ged` file
gedcom = Gedcom(file_path)
print(gedcom.element_list())
This GEDCOM file starts with
0 HEAD
1 GEDC
2 VERS 5.5.1
2 FORM LINEAGE-LINKED
and I get the following error:
Traceback (most recent call last):
File "script.py", line 4, in <module>
gedcom = Gedcom(file_path)
File "C:\Python3\lib\site-packages\gedcom\__init__.py", line 148, in __init__
self.__parse(file_path)
File "C:\Python3\lib\site-packages\gedcom\__init__.py", line 224, in __parse
last_element = self.__parse_line(line_number, line.decode('utf-8'), last_element)
File "C:\Python3\lib\site-packages\gedcom\__init__.py", line 263, in __parse_line
raise SyntaxError(error_message)
SyntaxError: Line `1` of document violates GEDCOM format
See: http://homepages.rootsweb.ancestry.com/~pmcbride/gedcom/55gctoc.htm
What am I doing wrong? This GEDCOM file has been exported from MyHeritage recently
UPD: this is with Python 3.6 under Windows 10 x64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request