Page MenuHomePhabricator

archivebot -simulate fails on testwiki
Closed, ResolvedPublic

Description

py -3.13 -m pwb -simulate -site:wikipedia:test archivebot -page:"User talk:Ultraexactzz"

No template was specified, using default {{User:MiszaBot/config}}.

>>> [[test:User talk:Ultraexactzz]] <<<
34 thread(s) found on [[test:User talk:Ultraexactzz]]
14 thread(s) found on [[test:User talk:Ultraexactzz/Archive:5]]
ERROR: Error occurred while processing page [[test:User talk:Ultraexactzz]]
Traceback (most recent call last):
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 425, in load_page
    text = self.get()
  File "C:\pwb\GIT\core\pywikibot\page\_basepage.py", line 383, in get
    self._getInternals()
    ~~~~~~~~~~~~~~~~~~^^
  File "C:\pwb\GIT\core\pywikibot\page\_basepage.py", line 431, in _getInternals
    self.site.loadrevisions(self, content=True)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "C:\pwb\GIT\core\pywikibot\site\_generators.py", line 863, in loadrevisions
    raise NoPageError(page)
pywikibot.exceptions.NoPageError: Page [[test:User talk:Ultraexactzz/Archive:6]] doesn't exist.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 933, in process_page
    archiver.run()
    ~~~~~~~~~~~~^^
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 850, in run
    whys = self.analyze_page()
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 821, in analyze_page
    while archive.is_full(max_arch_size):
          ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 477, in is_full
    self_size = self.size()
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 502, in size
    if not (self.exists() or self.threads):
                             ^^^^^^^^^^^^
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 379, in __getattr__
    self.load_page()
    ~~~~~~~~~~~~~~^^
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 428, in load_page
    self.get_header_template())
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "C:\pwb\GIT\core\scripts\archivebot.py", line 409, in get_header_template
    raise NotImplementedError(
        'Archive header is not localized on your site')
NotImplementedError: Archive header is not localized on your site

See https://github.com/wikimedia/pywikibot/actions/runs/16539262559/job/46779202211

Details

Related Changes in Gerrit:

Event Timeline

Xqt triaged this task as High priority.Jul 26 2025, 1:44 PM
Xqt changed the task status from Open to In Progress.Jul 26 2025, 2:59 PM
Xqt claimed this task.

Change #1172806 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] Fix: Use {{talkarchive}} template by default

https://gerrit.wikimedia.org/r/1172806

Change #1172806 merged by jenkins-bot:

[pywikibot/core@master] Fix: Use {{talkarchive}} template by default

https://gerrit.wikimedia.org/r/1172806