From 770f2d2846dda8e70765df0acf174f83d03eae64 Mon Sep 17 00:00:00 2001 From: Driss Lahlou Date: Fri, 9 Dec 2016 18:39:10 +0100 Subject: [PATCH] add check for modules import --- examples/python/check_dependencies.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/python/check_dependencies.py b/examples/python/check_dependencies.py index 5fb891af0e..1184637bc2 100644 --- a/examples/python/check_dependencies.py +++ b/examples/python/check_dependencies.py @@ -81,4 +81,12 @@ if __name__ == '__main__': logging.error(wrong_module(ortools_module_file, "ortools")) raise SystemExit + # Check if python can load the libraries' modules + # this is useful when the library architecture is not compatbile with the python executable, + # or when the library's dependencies are not available or not compatible. + from ortools.constraint_solver import _pywrapcp + from ortools.linear_solver import _pywraplp + from ortools.algorithms import _pywrapknapsack_solver + from ortools.graph import _pywrapgraph +