Giter Club home page Giter Club logo

gedcomtools's Introduction

gedcomTools

gedcomTools contains a set of scripts to manipulate gedcom files.

Dependencies, defined in file requirements.txt can be installed with pip with the following command:

python -m pip install -r requirements.txt

gedcom2gexf

gedcom2gexf allows to import genealogical data stored in Gephi, an open-source network analysis and visualization software.

The gedcom2gexf script converts a gedcom file to a gexf file.

A gedcom file contains genealogical data, that can be created with many softwares, like Gramps.

A gexf file contains graph data, that can be imported in Gephi.

gedcomAddLatLon

gedcomAddLatLon reads a gedcom file and adds latitude and longitude to all places without these informations. The result is written in a new gedcom file. This script uses geopy to find the latitude and longitude of locations.

gedcomtools's People

Contributors

0burner avatar gjacquenot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gedcomtools's Issues

parsing GEDCOM file is not very stable

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>

AttributeError: 'Namespace' object has no attribute 'outputGephi'

Bonjour,

Je ne suis pas super expérimenté en Python. J'ai réussi à installer les modules requis mais lorsque je lance le script avec mes deux arguments (gedcom en entrée et gefx à créer en sortie) j'ai le message d'erreur suivant :

Traceback (most recent call last): File "gedcom2gexf.py", line 37, in <module> gedcom2gephi(gedcomFilename = args.gedcom, gephiFilename = args.outputGephi) AttributeError: 'Namespace' object has no attribute 'outputGephi'

Je ne sais pas bien quoi faire :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.