

def _CheckPyTSK():
    'Checks the availability of pytsk.\n\n  Returns:\n    True if the pytsk Python module is available, False otherwise.\n  '
    module_name = 'pytsk3'
    minimum_version_libtsk = '4.1.2'
    minimum_version_pytsk = '20140506'
    module_object = _ImportPythonModule(module_name)
    if (not module_object):
        print('[FAILURE]\tmissing: {0:s}.'.format(module_name))
        return False
    module_version = module_object.TSK_VERSION_STR
    module_version_map = list(map(int, module_version.split('.')))
    minimum_version_map = list(map(int, minimum_version_libtsk.split('.')))
    if (module_version_map < minimum_version_map):
        print('[FAILURE]\tSleuthKit (libtsk) version: {0:s} is too old, {1:s} or later required.'.format(module_version, minimum_version_libtsk))
        return False
    print('[OK]\t\tSleuthKit version: {0:s}'.format(module_version))
    if (not hasattr(module_version, 'get_version')):
        print('[FAILURE]\t{0:s} is too old, {1:s} or later required.'.format(module_name, minimum_version_pytsk))
        return False
    module_version = module_object.get_version()
    if (module_version < minimum_version_pytsk):
        print('[FAILURE]\t{0:s} version: {1:s} is too old, {2:s} or later required.'.format(module_name, module_version, minimum_version_pytsk))
        return False
    print('[OK]\t\t{0:s} version: {1:s}'.format(module_name, module_version))
    return True

dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/dependencies.py _CheckPyTSK/VarMisuse@132/334 `module_object`->`module_version`