what is your command line to invoke the not script? Xqt
----- Ursprüngliche Nachricht ----- Von: Bojan Kalkan Gesendet: 02.04.2013 19:04 An: Pywikipedia discussion list Betreff: [Pywikipedia-l] Archivebot
I constrantly get MissingConfigError: Missing or malformed template. Where is the problem? This is our archive temlate
http://sr.wikipedia.org/wiki/%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%B...
Thanks.
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On 4/3/2013 8:41 AM, info@gno.de wrote:
what is your command line to invoke the not script? Xqt
Von: Bojan Kalkan Gesendet: 02.04.2013 19:04 An: Pywikipedia discussion list Betreff: [Pywikipedia-l] Archivebot
I constrantly get MissingConfigError: Missing or malformed template. Where is the problem? This is our archive temlate
http://sr.wikipedia.org/wiki/%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%B...
Thanks.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I typed:
archivebot User:MickiBot/archive
this is what I get:
WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows Fetching template transclusions... Getting references to [[Korisnik:MickiBot/archive]] via API... Processing [[sr:Razgovor sa korisnikom:BokicaK]] 66 Threads found on [[sr:Razgovor sa korisnikom:BokicaK]] Looking for: {{user:MickiBot/archive}} in [[sr:Razgovor sa korisnikom:BokicaK]] Error occured while processing page [[sr:Razgovor sa korisnikom:BokicaK]] Traceback (most recent call last): File "C:\pywikipedia\archivebot.py", line 610, in main Archiver = PageArchiver(pg, a, salt, force) File "C:\pywikipedia\archivebot.py", line 384, in __init__ self.loadConfig() File "C:\pywikipedia\archivebot.py", line 426, in loadConfig raise MissingConfigError(u'Missing or malformed template') MissingConfigError: Missing or malformed template
You have two problems. One of them is written exactly: "transliteration_target is not set". This is a warning, not an error until you want to work with Cyrillic or other non-English characters. The other one is also written: Missing or malformed template on page [[sr:Razgovor sa korisnikom:BokicaK]]. I think the first line should be "{{MickiBot/archive" instead of currenthttps://sr.wikipedia.org/w/index.php?title=%D0%A0%D0%B0%D0%B7%D0%B3%D0%BE%D0%B2%D0%BE%D1%80_%D1%81%D0%B0_%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%BA%D0%BE%D0%BC:BokicaK&action=edit"{{User:MickiBot/archive". That's why it is not recognized by bot and stated as missing template.
2013/4/5 Bojan Kalkan bokicak@gmail.com
On 4/3/2013 8:41 AM, info@gno.de wrote:
what is your command line to invoke the not script? Xqt
Von: Bojan Kalkan Gesendet: 02.04.2013 19:04 An: Pywikipedia discussion list Betreff: [Pywikipedia-l] Archivebot
I constrantly get MissingConfigError: Missing or malformed template. Where is the problem? This is our archive temlate
http://sr.wikipedia.org/wiki/%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%B...
Thanks.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing listPywikipedia-l@lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I typed:
archivebot User:MickiBot/archive
this is what I get:
WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows Fetching template transclusions... Getting references to [[Korisnik:MickiBot/archive]] via API... Processing [[sr:Razgovor sa korisnikom:BokicaK]] 66 Threads found on [[sr:Razgovor sa korisnikom:BokicaK]] Looking for: {{user:MickiBot/archive}} in [[sr:Razgovor sa korisnikom:BokicaK]] Error occured while processing page [[sr:Razgovor sa korisnikom:BokicaK]] Traceback (most recent call last): File "C:\pywikipedia\archivebot.py", line 610, in main Archiver = PageArchiver(pg, a, salt, force) File "C:\pywikipedia\archivebot.py", line 384, in __init__ self.loadConfig() File "C:\pywikipedia\archivebot.py", line 426, in loadConfig raise MissingConfigError(u'Missing or malformed template') MissingConfigError: Missing or malformed template
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On 4/5/2013 7:38 PM, Bináris wrote:
You have two problems. One of them is written exactly: "transliteration_target is not set". This is a warning, not an error until you want to work with Cyrillic or other non-English characters. The other one is also written: Missing or malformed template on page [[sr:Razgovor sa korisnikom:BokicaK]]. I think the first line should be "{{MickiBot/archive"instead of current https://sr.wikipedia.org/w/index.php?title=%D0%A0%D0%B0%D0%B7%D0%B3%D0%BE%D0%B2%D0%BE%D1%80_%D1%81%D0%B0_%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%BA%D0%BE%D0%BC:BokicaK&action=edit "{{User:MickiBot/archive". That's why it is not recognized by bot and stated as missing template.
2013/4/5 Bojan Kalkan <bokicak@gmail.com mailto:bokicak@gmail.com>
On 4/3/2013 8:41 AM, info@gno.de <mailto:info@gno.de> wrote:
what is your command line to invoke the not script? Xqt ------------------------------------------------------------------------ Von: Bojan Kalkan Gesendet: 02.04.2013 19:04 An: Pywikipedia discussion list Betreff: [Pywikipedia-l] Archivebot I constrantly get MissingConfigError: Missing or malformed template. Where is the problem? This is our archive temlate http://sr.wikipedia.org/wiki/%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%BA:MickiBot/archive Thanks. _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org <mailto:Pywikipedia-l@lists.wikimedia.org> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org <mailto:Pywikipedia-l@lists.wikimedia.org> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I typed: archivebot User:MickiBot/archive this is what I get: WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows Fetching template transclusions... Getting references to [[Korisnik:MickiBot/archive]] via API... Processing [[sr:Razgovor sa korisnikom:BokicaK]] 66 Threads found on [[sr:Razgovor sa korisnikom:BokicaK]] Looking for: {{user:MickiBot/archive}} in [[sr:Razgovor sa korisnikom:BokicaK]] Error occured while processing page [[sr:Razgovor sa korisnikom:BokicaK]] Traceback (most recent call last): File "C:\pywikipedia\archivebot.py", line 610, in main Archiver = PageArchiver(pg, a, salt, force) File "C:\pywikipedia\archivebot.py", line 384, in __init__ self.loadConfig() File "C:\pywikipedia\archivebot.py", line 426, in loadConfig raise MissingConfigError(u'Missing or malformed template') MissingConfigError: Missing or malformed template _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org <mailto:Pywikipedia-l@lists.wikimedia.org> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Bináris
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
There is some progres, but still it doesn't work.
I copied parameters of few Misza's examples, for example
{{Archive |archiveheader = {{Automatic archive navigator}} |maxarchivesize = 100K |counter = 10 |minthreadsleft = 4 |algo = old(30d) |archive = Разговор:Деда Мраз/Архива %(counter)d }}
and this is what I get:
C:\pywikipedia>archivebot.py Archive WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows Fetching template transclusions... Getting references to [[Shablon:Archive]] via API... Processing [[sr:Razgovor sa korisnikom:BokicaK]] 66 Threads found on [[sr:Razgovor sa korisnikom:BokicaK]] Looking for: {{Archive}} in [[sr:Razgovor sa korisnikom:BokicaK]] Processing 66 threads There are only 0 Threads. Skipping Processing [[sr:Razgovor sa korisnikom:Raskoyu]] 0 Threads found on [[sr:Razgovor sa korisnikom:Raskoyu]] Looking for: {{Archive}} in [[sr:Razgovor sa korisnikom:Raskoyu]] Processing 0 threads There are only 0 Threads. Skipping Processing [[sr:Razgovor:Operacija Potkovica]] 12 Threads found on [[sr:Razgovor:Operacija Potkovica]] Looking for: {{Archive}} in [[sr:Razgovor:Operacija Potkovica]] Processing 12 threads There are only 0 Threads. Skipping
Ceck the date format recognition in the code. I think that is not internationalized, so wont't work with Serbic date format without some transformation.
2013/4/6 Bojan Kalkan bokicak@gmail.com
On 4/5/2013 7:38 PM, Bináris wrote:
You have two problems. One of them is written exactly: "transliteration_target is not set". This is a warning, not an error until you want to work with Cyrillic or other non-English characters. The other one is also written: Missing or malformed template on page [[sr:Razgovor sa korisnikom:BokicaK]]. I think the first line should be "{{MickiBot/archive" instead of currenthttps://sr.wikipedia.org/w/index.php?title=%D0%A0%D0%B0%D0%B7%D0%B3%D0%BE%D0%B2%D0%BE%D1%80_%D1%81%D0%B0_%D0%BA%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%BA%D0%BE%D0%BC:BokicaK&action=edit"{{User:MickiBot/archive". That's why it is not recognized by bot and stated as missing template.
2013/4/5 Bojan Kalkan bokicak@gmail.com
On 4/3/2013 8:41 AM, info@gno.de wrote:
what is your command line to invoke the not script? Xqt
Von: Bojan Kalkan Gesendet: 02.04.2013 19:04 An: Pywikipedia discussion list Betreff: [Pywikipedia-l] Archivebot
I constrantly get MissingConfigError: Missing or malformed template. Where is the problem? This is our archive temlate
http://sr.wikipedia.org/wiki/%D0%9A%D0%BE%D1%80%D0%B8%D1%81%D0%BD%D0%B8%D0%B...
Thanks.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing listPywikipedia-l@lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
I typed:
archivebot User:MickiBot/archive
this is what I get:
WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows Fetching template transclusions... Getting references to [[Korisnik:MickiBot/archive]] via API... Processing [[sr:Razgovor sa korisnikom:BokicaK]] 66 Threads found on [[sr:Razgovor sa korisnikom:BokicaK]] Looking for: {{user:MickiBot/archive}} in [[sr:Razgovor sa korisnikom:BokicaK]] Error occured while processing page [[sr:Razgovor sa korisnikom:BokicaK]] Traceback (most recent call last): File "C:\pywikipedia\archivebot.py", line 610, in main Archiver = PageArchiver(pg, a, salt, force) File "C:\pywikipedia\archivebot.py", line 384, in __init__ self.loadConfig() File "C:\pywikipedia\archivebot.py", line 426, in loadConfig raise MissingConfigError(u'Missing or malformed template') MissingConfigError: Missing or malformed template
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Bináris
Pywikipedia-l mailing listPywikipedia-l@lists.wikimedia.orghttps://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
There is some progres, but still it doesn't work.
I copied parameters of few Misza's examples, for example
{{Archive |archiveheader = {{Automatic archive navigator}} |maxarchivesize = 100K |counter = 10 |minthreadsleft = 4 |algo = old(30d) |archive = Разговор:Деда Мраз/Архива %(counter)d }}
and this is what I get:
C:\pywikipedia>archivebot.py Archive
WARNING: Running on Windows and transliteration_target is not set. Please see http://www.mediawiki.org/wiki/Manual:Pywikipediabot/Windows Fetching template transclusions... Getting references to [[Shablon:Archive]] via API...
Processing [[sr:Razgovor sa korisnikom:BokicaK]] 66 Threads found on [[sr:Razgovor sa korisnikom:BokicaK]] Looking for: {{Archive}} in [[sr:Razgovor sa korisnikom:BokicaK]] Processing 66 threads There are only 0 Threads. Skipping Processing [[sr:Razgovor sa korisnikom:Raskoyu]] 0 Threads found on [[sr:Razgovor sa korisnikom:Raskoyu]] Looking for: {{Archive}} in [[sr:Razgovor sa korisnikom:Raskoyu]] Processing 0 threads There are only 0 Threads. Skipping Processing [[sr:Razgovor:Operacija Potkovica]] 12 Threads found on [[sr:Razgovor:Operacija Potkovica]] Looking for: {{Archive}} in [[sr:Razgovor:Operacija Potkovica]] Processing 12 threads There are only 0 Threads. Skipping
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On 4/6/2013 6:15 AM, Bináris wrote:
Ceck the date format recognition in the code. I think that is not internationalized, so wont't work with Serbic date format without some transformation.
I did that few days ago.
this is code I added
if not TM: TM = re.search(r'(\d\d):(\d\d), (\d\d?). (\S+) (\d\d\d\d). (.*?)', line)
for serbian format 05:48, 6. април 2013. (CEST)
and still doesn't work
pywikipedia-l@lists.wikimedia.org