Fix Value Error The 'archive' attribute has no file associated with it