Raise an import error when import_string fails on get_buffer