Handle PI import error properly