Skip to content

Can't open *.7z extension on CentOs #46

@leojoubert

Description

@leojoubert

Hi,

I have this code, that work perfectly find in Ubuntu 18.04 :

from mw import xml_dump

# For instance, with frwiki dump in 7z format
files = ["examples/dump.xml.7z"]

def page_info(dump, path):
    for page in dump:

        yield page.id, page.namespace, page.title


for page_id, page_namespace, page_title in xml_dump.map(files, page_info):
    print(" ".join([str(page_id), str(page_namespace), page_title]))

That don't work anymore when I am going to CentOs in my lab.

This problem is solved when I take my dump into XML or even BZ2 format. This tuhs is not a solution for me : given files are much too heavy. I would really need to have 7z format available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions