Skip to content

PatoolError when running the ETL example #35

Description

@neelasha23

On running this pipeline: https://github.com/ploomber/projects/tree/master/templates/etl , got the following error:

PatoolError: patool can not unpack
patool error: error extracting ../ploomber/templates/etl/output/data.7z: could not find an executable program to extract format 7z; candidates are (7z,7za,7zr),

Fixed it by replacing extractall in preprocess/download.py by :

shutil.register_unpack_format('7zip', ['.7z'], unpack_7zarchive)
shutil.unpack_archive(product['zipped'], product['extracted'])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions