version = '1.0.113',
        gramps_target_version = "5.1",
        status = STABLE,
        fname = 'graphview.py',
        authors = ["Gary Burton"],
        authors_email = ["*****@*****.**"],
        viewclass = 'GraphView',
        stock_icon = 'gramps-graph',
    )

from gramps.gen.config import logging
if not _GOO:
    warn_msg = _("Graphview Warning:  Goocanvas 2 "
                 "(https://wiki.gnome.org/action/show/Projects/GooCanvas)"
                 " is required for this view to work")
    logging.log(logging.WARNING, warn_msg)
if not _DOT:
    warn_msg = _("Graphview Warning:  GraphViz "
                 "(http://www.graphviz.org) is "
                 "required for this view to work")
    logging.log(logging.WARNING, warn_msg)
# don't start GUI if in CLI mode, just ignore
if not (_GOO and _DOT) and locals().get('uistate'):
    from gramps.gui.dialog import QuestionDialog2
    if 'graphviewwarn' not in sects:
        yes_no = QuestionDialog2(
            _("Graphview Failed to Load"),
            _("\n\nGraphview is missing python modules or programs.\n"
              "%smust be installed.\n\n"
              "For now, it may be possible to install the files manually."
              " See\n<a href=\"https://gramps-project.org/wiki/index.php?"
            'life_line_chart',
            life_line_chart_version_required_str,
            'https://pypi.python.org/packages/source/l/'
            'life_line_chart/life_line_chart-' +
            life_line_chart_version_required_str + '.tar.gz'
        )

        fname = os.path.join(USER_PLUGINS, 'LifeLineChartView')
        icons = Gtk.IconTheme().get_default()
        icons.append_search_path(fname)
        some_import_error = life_line_chart is None or svgwrite is None

except Exception as e:
    some_import_error = True
    import_error_message = traceback.format_exc()
    logging.log(logging.ERROR, 'Failed to load LifeLineChartView plugin.\n' +
                import_error_message)


if locals().get('uistate') is None or locals().get('uistate'):
    # Right after the download the plugin is loaded without uistate
    # If the gui is available, then the error message is shown anyway
    # so here we can import to avoid additional messages.
    register(VIEW,
             id='lifelinechartancestorview',
             name=_("Life Line Ancestor Chart"),
             category=("Ancestry", _("Charts")),
             description=_("Persons and their relation in a time based chart"),
             version = '1.3.17',
             gramps_target_version="5.1",
             status=STABLE,
             fname='lifelinechartview.py',
             description=_('PostgreSQL Database'),
             version = '1.0.5',
             gramps_target_version='5.0',
             status=STABLE,
             fname='postgresql.py',
             databaseclass='PostgreSQL',
             authors=['Doug Blank'],
             authors_email=['*****@*****.**']
    )
elif locals().get('uistate'):  # don't start GUI if in CLI mode, just ignore
    from gramps.gen.config import config
    from gramps.gui.dialog import QuestionDialog2
    from gramps.gen.config import logging
    if not module1:
        warn_msg = _("PostgreSQL Warning:  Python psycopg2 module not found.")
        logging.log(logging.WARNING, warn_msg)
    inifile = config.register_manager("postgresqlwarn")
    inifile.load()
    sects = inifile.get_sections()
    if 'postgresqlwarn' not in sects:
        yes_no = QuestionDialog2(_("PostgreSQL Failed to Load"),
            _("\n\nPostgreSQL is missing the psycopg2 python module.\n"
              "For now, it may be possible to install the files manually. See\n\n"
              "https://gramps-project.org/wiki/index.php?title=PostgreSQL \n\n"
              "To dismiss all future PostgreSQL warnings click Dismiss."),
            _(" Dismiss "),
            _("Continue"), parent=uistate.window)
        prompt = yes_no.run()
        if prompt is True:
            inifile.register('postgresqlwarn.MissingModules', "")
            inifile.set('postgresqlwarn.MissingModules', "True")