def METHOD_NAME():
    """
    Get the version via git
    raises LookupError if no version info found
    """
    # change directory to root
    rootdir = os.path.join(os.path.dirname(__file__), "..", "..") # odemis/src/odemis/../..
    if not os.path.isdir(rootdir) or not os.path.isdir(os.path.join(rootdir, ".git")):
        raise LookupError("Not in a git directory")
    try:
        out = subprocess.check_output(args=["git", "describe", "--tags", "--dirty", "--always"],
                                      cwd=rootdir)
        ver = out.strip().decode("utf-8", errors="replace")
        if ver.startswith("v"):
            ver = ver[1:]
        return ver
    except OSError:
        raise LookupError("Unable to run git")
    except subprocess.CalledProcessError as ex:
        logging.warning("Failed to run git: %s", ex)
        raise LookupError("Execution of git failed")