How to use the pypeline.common.console.print_err function in Pypeline

To help you get started, we’ve selected a few Pypeline examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MikkelSchubert / paleomix / pypeline / requirements.py View on Github external
def check_pypeline_requirements():
    for (module, url) in sorted(_REQUIRED_MODULES.items()):
        try:
            __import__(module)
        except ImportError, error:
            print_err("ERROR: Could not import required module '%s':\n\t- %s\n" % (module, error), file = sys.stderr)
            print_err("       If module is not installed, please download from '%s'.\n" % (url,), file = sys.stderr)
            print_err("       A local install may be performed using the following command:\n", file = sys.stderr)
            print_err("       $ python setup.py install --user\n\n", file = sys.stderr)
            return False

    for version in (_PYSAM_VERSION,):
        try:
            version()
        except versions.VersionRequirementError, error:
            print_err(error, file=sys.stderr)
            return False
    return True
github MikkelSchubert / paleomix / pypeline / requirements.py View on Github external
def check_pypeline_requirements():
    for (module, url) in sorted(_REQUIRED_MODULES.items()):
        try:
            __import__(module)
        except ImportError, error:
            print_err("ERROR: Could not import required module '%s':\n\t- %s\n" % (module, error), file = sys.stderr)
            print_err("       If module is not installed, please download from '%s'.\n" % (url,), file = sys.stderr)
            print_err("       A local install may be performed using the following command:\n", file = sys.stderr)
            print_err("       $ python setup.py install --user\n\n", file = sys.stderr)
            return False

    for version in (_PYSAM_VERSION,):
        try:
            version()
        except versions.VersionRequirementError, error:
            print_err(error, file=sys.stderr)
            return False
    return True
github MikkelSchubert / paleomix / pypeline / requirements.py View on Github external
def check_pypeline_requirements():
    for (module, url) in sorted(_REQUIRED_MODULES.items()):
        try:
            __import__(module)
        except ImportError, error:
            print_err("ERROR: Could not import required module '%s':\n\t- %s\n" % (module, error), file = sys.stderr)
            print_err("       If module is not installed, please download from '%s'.\n" % (url,), file = sys.stderr)
            print_err("       A local install may be performed using the following command:\n", file = sys.stderr)
            print_err("       $ python setup.py install --user\n\n", file = sys.stderr)
            return False

    for version in (_PYSAM_VERSION,):
        try:
            version()
        except versions.VersionRequirementError, error:
            print_err(error, file=sys.stderr)
            return False
    return True
github MikkelSchubert / paleomix / pypeline / requirements.py View on Github external
def check_pypeline_requirements():
    for (module, url) in sorted(_REQUIRED_MODULES.items()):
        try:
            __import__(module)
        except ImportError, error:
            print_err("ERROR: Could not import required module '%s':\n\t- %s\n" % (module, error), file = sys.stderr)
            print_err("       If module is not installed, please download from '%s'.\n" % (url,), file = sys.stderr)
            print_err("       A local install may be performed using the following command:\n", file = sys.stderr)
            print_err("       $ python setup.py install --user\n\n", file = sys.stderr)
            return False

    for version in (_PYSAM_VERSION,):
        try:
            version()
        except versions.VersionRequirementError, error:
            print_err(error, file=sys.stderr)
            return False
    return True