The raw in _archive_entry_sourcepath could be None. The application of decode is then invalid. In my use case, sourcepath is the only one returned None. Cheers.