From f8662ae4da83e3bfeb879c90c6546cc3e0c88b68 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.anjos@idiap.ch> Date: Tue, 20 May 2014 16:59:27 +0200 Subject: [PATCH] Fix import of C-API --- xbob/ip/flandmark/version.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xbob/ip/flandmark/version.cpp b/xbob/ip/flandmark/version.cpp index d130894..30c3798 100644 --- a/xbob/ip/flandmark/version.cpp +++ b/xbob/ip/flandmark/version.cpp @@ -158,7 +158,12 @@ static PyObject* create_module (void) { if (!externals) return 0; if (PyModule_AddObject(m, "externals", externals) < 0) return 0; - if (import_xbob_blitz() < 0) return 0; + /* imports dependencies */ + if (import_xbob_blitz() < 0) { + PyErr_Print(); + PyErr_Format(PyExc_ImportError, "cannot import `%s'", XBOB_EXT_MODULE_NAME); + return 0; + } Py_INCREF(m); return m; -- GitLab