Page MenuHomePhabricator

Archivebot error
Closed, InvalidPublic

Description

While I'm running archivebot.py on sd (sindhi) wikipedia this error is showing

Fetching template transclusions...
Processing [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
27 thread(s) found on [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
Looking for: {{واپرائيندڙ:KaleemBot/config}} in [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
ERROR: Missing or malformed template in page [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]: Missing or malformed template

Event Timeline

Restricted Application added a project: Pywikibot. · View Herald TranscriptJun 4 2020, 4:01 AM
Restricted Application added subscribers: pywikibot-bugs-list, Liuxinyu970226, Aklapper. · View Herald Transcript
Kaleem_Bhatti assigned this task to Xqt.Jun 4 2020, 4:52 AM
Xqt added a comment.EditedJun 4 2020, 7:30 AM

This is probably due to the {{واپرائيندڙ:KaleemBot/config}} to be searched for but the template found is {{User:KaleemBot/config}}. What is the command line to start the bot? Please verify the template name given with the bot; either use the template as given in the page or rename the template in the page to be equal to that given by the commnd line.

Xqt removed Xqt as the assignee of this task.Jun 4 2020, 7:31 AM
Xqt added a subscriber: Xqt.

This is probably due to the {{واپرائيندڙ:KaleemBot/config}} to be searched for but the template found is {{User:KaleemBot/config}}. What is the command line to start the bot? Please verify the template name given with the bot; either use the template as given in the page or rename the template in the page to be equal to that given by the commnd line.

@Xqt I'm running this query python pwb.py archivebot User:KaleemBot/config

Xqt added a comment.EditedJun 4 2020, 8:10 AM

Works for me with Python 2.7.18 and 3.8.0:

C:\pwb\GIT\core>py -3 pwb.py archivebot -lang:sd user:KaleemBot/config -simulate
Fetching template transclusions...
Processing [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
27 thread(s) found on [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
Looking for: {{واپرائيندڙ:KaleemBot/config}} in [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
Processing 27 threads
36 thread(s) found on [[sd:واپرائيندڙ بحث:Kaleem Bhatti/آرڪائيو 1]]
Archiving 23 thread(s).
SIMULATION: edit action blocked.
Page [[واپرائيندڙ بحث:Kaleem Bhatti/آرڪائيو 1]] saved
SIMULATION: edit action blocked.
Page [[واپرائيندڙ بحث:Kaleem Bhatti/آرڪائيو 2]] saved
SIMULATION: edit action blocked.
Page [[واپرائيندڙ بحث:Kaleem Bhatti]] saved

C:\pwb\GIT\core>py -2 pwb.py archivebot -lang:sd user:KaleemBot/config -simulate
WARNING: C:\pwb\GIT\core\pywikibot\__init__.py:128: FutureWarning:

Python 2.7.18 will be dropped soon.
It is recommended to use Python 3.5 or above.
See T213287 for further information.

  FutureWarning)  # probably adjust the line no in utils.execute()

Fetching template transclusions...
Processing [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
27 thread(s) found on [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
Looking for: {{واپرائيندڙ:KaleemBot/config}} in [[sd:واپرائيندڙ بحث:Kaleem Bhatti]]
Processing 27 threads
36 thread(s) found on [[sd:واپرائيندڙ بحث:Kaleem Bhatti/آرڪائيو 1]]
Archiving 23 thread(s).
SIMULATION: edit action blocked.
Page [[واپرائيندڙ بحث:Kaleem Bhatti/آرڪائيو 1]] saved
SIMULATION: edit action blocked.
Page [[واپرائيندڙ بحث:Kaleem Bhatti/آرڪائيو 2]] saved
SIMULATION: edit action blocked.
Page [[واپرائيندڙ بحث:Kaleem Bhatti]] saved

C:\pwb\GIT\core>

Is your bot up-to-date? Either "stable" or "master" branch?

This comment was removed by Kaleem_Bhatti.

@Xqt I have python version 2.7

Kaleem_Bhatti closed this task as Resolved.Jun 4 2020, 9:17 AM
JJMC89 changed the task status from Resolved to Invalid.Jun 4 2020, 3:44 PM
Restricted Application removed a subscriber: Liuxinyu970226. · View Herald TranscriptJun 4 2020, 3:44 PM
Dvorapa added a subscriber: Dvorapa.Jun 5 2020, 8:59 AM

Feel free to share how you resolved this

Feel free to share how you resolved this

With Updating master branch