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 +