Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leojoubert opened this issue Jan 12, 2019 · 0 comments
Open

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

leojoubert opened this issue Jan 12, 2019 · 0 comments

Comments

@leojoubert
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant