Page MenuHomePhabricator

Update wikipedia_family.py at PAWS
Closed, ResolvedPublic

Description

Current PAWS installation of Pywikibot is not up-to date, as noted here: https://meta.wikimedia.org/wiki/Talk:List_of_Wikipedias_by_expanded_sample_of_articles#Languages_without_a_result. It should be updated to current wikipedia_family.py.

Event Timeline

Hello could the link in the ticket be updated to a hyperlink?

Hello could the link in the ticket be updated to a hyperlink?

Done, sorry!

Spot checking I'm seeing those languages listed in 'codes' in the /srv/paws/pwb/pywikibot/families/wikipedia_family.py file, should they be somewhere else in the file?

We do seem to be on the latest version:

@PAWS:/srv/paws/pwb$ pwb.py --version
Pywikibot: [https] r-pywikibot-core.git (07c9b4e, g1, 2024/12/13, 09:51:50, OUTDATED)
Release version: 9.6.1

How are you running your pwb commands?

I'm using pwb.py ListExpandedSample, no other command added. The source code is here: https://meta.wikimedia.org/wiki/List_of_Wikipedias_by_expanded_sample_of_articles/Source_code and lists 323 languages, which seems correct.

Looking right to me too. @Xqt any thoughts?

Theklan claimed this task.

I think that the problem is that the list at the source code was outdated. I'm checking again, but it is loading now some other languages. Thanks for checking that the family declaration was up to date.

The issue wans't at the family declaration, but was interesting: the script couldn't read a wiki I haven't visited before. Just opening each of the neglected wikis solved the issue.