diff --git a/src/dg-python.cc b/src/dg-python.cc
index 9ffae78cbd2f4d574e162351585f47c282efd415..9bf053760772f07896a30ca7d2da45ee96decb50 100644
--- a/src/dg-python.cc
+++ b/src/dg-python.cc
@@ -27,6 +27,8 @@
 
 #include "dynamic-graph/python/interpreter.hh"
 
+using namespace dynamicgraph;
+
 // Factorize exception catching code.
 #define CATCH_EXCEPTIONS()						\
   catch (std::exception& e)						\