Skip to content

parsing GEDCOM file is not very stable #4

@hartenthaler

Description

@hartenthaler

After installing python and the missing modules (networkx, gedcompy, six) I was able to use gedcom2gexf.py for one of my GEDCOM files. But all the other files couldn't be used because there are several parsing errors when reading these files because they contain "wrong" UTF8 characters. Is there a possibility to make the parsing a bit more robust? Is the source for this error in the module gedcompy?
Traceback (most recent call last): File "C:\Users\herma\AppData\Local\Programs\Python\Python39\gedcom2gexf.py", line 48, in <module> gedcom2gephi(gedcomFilename=args.gedcom, gephiFilename=args.outputGexf) File "C:\Users\herma\AppData\Local\Programs\Python\Python39\gedcom2gexf.py", line 24, in gedcom2gephi g = gedcom.parse(gedcomFilename) File "C:\Users\herma\AppData\Local\Programs\Python\Python39\lib\site-packages\gedcom\__init__.py", line 739, in parse return parse_filename(obj) File "C:\Users\herma\AppData\Local\Programs\Python\Python39\lib\site-packages\gedcom\__init__.py", line 704, in parse_filename return __parse(fp.readlines()) File "C:\Users\herma\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 1222: character maps to <undefined>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions