diff --git a/callback_plugins/logdetail.py b/callback_plugins/logdetail.py
index 1edd0abb66..944c9396bb 100644
--- a/callback_plugins/logdetail.py
+++ b/callback_plugins/logdetail.py
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see .
+from __future__ import absolute_impor
+
import os
import time
import json
diff --git a/callback_plugins/logdetail2.py b/callback_plugins/logdetail2.py
index d746b8eb2b..90f713048b 100644
--- a/callback_plugins/logdetail2.py
+++ b/callback_plugins/logdetail2.py
@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see .
+from __future__ import absolute_import
+
import os
import time
import json