raise import exception after printing an error