diff --git a/scapy/utils6.py b/scapy/utils6.py
index 647efa8a3e475f63334cc59b9e70b0a2836db4f6..8e08872a182f3dcc9a3703ae50a24f9583870538 100644
--- a/scapy/utils6.py
+++ b/scapy/utils6.py
@@ -390,6 +390,7 @@ def in6_getLocalUniquePrefix():
     j = int((tod - i)*(2**32))
     tod = struct.pack("!II", i,j)
     # TODO: Add some check regarding system address gathering
+    from scapy.arch import get_if_raw_hwaddr
     rawmac = get_if_raw_hwaddr(conf.iface6)[1]
     mac = ":".join(map(lambda x: "%.02x" % ord(x), list(rawmac)))
     # construct modified EUI-64 ID