Replace import warning with RuntimeError