Bugs item #2926171, was opened at 2010-01-05 12:16
Message generated for change (Comment added) made by yrwyddfa
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Yr Wyddfa (yrwyddfa)
Assigned to: xqt (xqt)
Summary: Errorkey: query
Initial Comment:
Hi!
I've got a problem activating pywikipediabot - scripts at our private wiki, and since today, the same error message while logging in.
I'm using Linux ubuntu 9.04 and MediaWiki 1.14.0
Here is the terminal output:
/pywikipedia$ python login.py
Password for user weBot on Dairpedia:de:
Logging in to Dairpedia:de as weBot
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5897, in postData
self._getUserDataOld(text, sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 6168, in _getUserDataOld
blocked = self._getBlock(sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5500, in _getBlock
data = query.GetData(params, self)['query']['userinfo']
KeyError: 'query'
This KeyError also occured, when the login was successful and I tried to start any script.
Please tell me if you need any additional data.
Thanks a lot in advance!
----------------------------------------------------------------------
Comment By: Yr Wyddfa (yrwyddfa)
Date: 2010-01-06 00:06
Message:
Using the -verbose option the terminal gives back these informations:
/pywikipedia$ python login.py -verbose
Pywikipediabot [http] trunk/pywikipedia (r7850, 2010/01/02, 12:59:20)
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
Password for user weBot on Dairpedia:de:
Logging in to Dairpedia:de as weBot
==== API action:query ====
meta: userinfo
uiprop: blockinfo
----------------
Requesting API query from Dairpedia:de
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address,
self.site.urlEncode(predata), sysop=self.sysop)
File
"/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line
5897, in postData
self._getUserDataOld(text, sysop = sysop)
File
"/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line
6168, in _getUserDataOld
blocked = self._getBlock(sysop = sysop)
File
"/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line
5500, in _getBlock
data = query.GetData(params, self)['query']['userinfo']
KeyError: 'query'
I added your suggested lines into my user_config.py to disable API.
Unfortunately the terminal output was exactly the same.
Could the version of my python (v. 2.6.2) be the problem? I heard about
several compatibility problems with python 3.0 so I didn't install that
version.
Thanx for your time!
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-05 18:51
Message:
migth be a bug. Please try again with -verbose option to get more
information about this. It seems the structure has been changed after mw
1.14
You also could try to run your bot with api disabled. Just put the
following statements in your user-config.py:
use_api = False
use_api_login = False
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171&group_…
Patches item #2926428, was opened at 2010-01-05 20:38
Message generated for change (Settings changed) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926428&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Translations
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: +pl for category.py
Initial Comment:
add missing pl messages for category.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926428&group_…
Patches item #2926457, was opened at 2010-01-05 21:28
Message generated for change (Settings changed) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926457&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Translations
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: +pl for category_redirect.py
Initial Comment:
add pl translation for category_redirect.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926457&group_…
Patches item #2926489, was opened at 2010-01-05 22:23
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926489&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Translations
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: +pl/szl for wikipedia_family
Initial Comment:
removal of old unused Disambig templates for pl.wiki
add Disambig template and kategory for szl.wiki
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926489&group_…
Bugs item #2926481, was opened at 2010-01-05 22:12
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926481&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: disambredir crashes on pl.wiki
Initial Comment:
pwpl]$ python pywikipedia/disambredir.py
Getting [[Kategoria:Strony ujednoznaczniające]] list starting at !...
Getting 60 pages from wikipedia:pl...
Getting 55 pages from wikipedia:pl...
Sleeping for 4.6 seconds, 2010-01-05 22:04:48
>>> 1 Armia <<<
>>> 1 Armia Pancerna <<<
>>> 1 Batalion Ciężkich Karabinów Maszynowych <<<
Traceback (most recent call last):
File "pywikipedia/disambredir.py", line 165, in <module>
main()
File "pywikipedia/disambredir.py", line 159, in main
workon(page,links)
File "pywikipedia/disambredir.py", line 121, in workon
text = treat(text, page2, target)
File "pywikipedia/disambredir.py", line 38, in treat
linkR = re.compile(r'\[\[(?P<title>[^\]\|#]*)(?P<section>#[^\]\|]*)?(\|(?P<label>[^\]]*))?\]\](?P<linktrail>' + linktrail + ')')
NameError: global name 'linktrail' is not defined
Pywikipedia (r7857 (wikipedia.py), 2010/01/05, 17:43:13)
Python 2.6.2 (r262:71600, Aug 21 2009, 12:22:21)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926481&group_…
Bugs item #2618858, was opened at 2009-02-20 01:39
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2618858&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: NicDumZ — Nicolas Dumazet (nicdumz)
Assigned to: Russell Blau (russblau)
Summary: logfiles format
Initial Comment:
output created in pagegenerators log after running "python pywikibot/pagegenerators.py -cat:1918 -debug" contains control characters :
2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT Grippe de 1918
[0m
2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT 1918 en bande dessinée
[0m
2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT Armistice de Moudros
[0m
2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT Déclaration d'indépendance de la Lituanie
[0m
2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT Guerre d'indépendance lettone
[0m
2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT 1918
[0m
and so on...
Also, I find it strange to have terminal_interface logging STDOUT, when in fact pagegenerators is calling output() =)
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2010-01-05 15:28
Message:
r7858
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-02-26 05:27
Message:
oh, are you developing under XP ?
For me (and I suppose, Unix users...) r6441 didn't change a thing:
* python pywikibot/pagegenerators.py -cat:1918 -debug -> no new
lines
* python pywikibot/pagegenerators.py -cat:1918 -> output
is okay
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-02-25 16:37
Message:
> Well, the logs are okay since that rev, but the terminal output is
broken
> now :P
OK, this was really weird. At least on Windows XP, a line written to
sys.stdout that ends with "\n" instead of "\r\n" doesn't print a newline on
the terminal (in cmd.exe), but the same line written to sys.stderr *does*
print a newline. Hopefully fixed in r6441, but needs to be tested on other
platforms.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-02-24 23:06
Message:
To clarify my unclear "I find it strange to have terminal_interface logging
STDOUT, when in
fact pagegenerators is calling output()":
Is it possible to have, instead of :
2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT
2009-02-20 15:28:59 pagegenerators.py, xxx: STDOUT ? I believe that the
file and line calling output() would be more relevant here than the line
calling logging.log !
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-02-24 23:01
Message:
Well, the logs are okay since that rev, but the terminal output is broken
now :P
$python pywikibot/pagegenerators.py -cat:1918 -debug
Found 1 wikipedia:fr processes running, including this one.
Password for user DumZiBoT on wikipedia:fr:
Logging in to wikipedia:fr as DumZiBoT
Should be logged in now
Grippe de 19181918 en bande dessinéeArmistice de MoudrosDéclaration
d'indépendance de la LituanieGuerre d'indépendance lettone19181918 en
Suisse1918 dans les parcs d'attractions1918 en littérature1918 en musique
classiqueInsurrection de Grande-Pologne (1918-1919)Guerres d'indépendance
lituaniennesRéforme d'OctobreGrève générale de 1918 en Suisse1918 dans
les chemins de fer1918 (Chronologie de Dada et du surréalisme)1918 au
théâtreQuébec, Printemps 19181918 en architectureRévolution
allemande1918 en France1918 en science1918 en aéronautiqueIl tritticoSuor
AngelicaTraité de Brest-LitovskAmerican Expeditionary Force1918 en
musiqueTraité de Bucarest (1918)Guerre polono-ukrainienne1918 au Québec$
It seems that the ending lines are stripped for terminal output :)
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-02-23 15:32
Message:
This should be fixed after r6431; please advise if the problem is resolved
on your machine.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2618858&group_…
Patches item #2926457, was opened at 2010-01-05 21:28
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926457&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: +pl for category_redirect.py
Initial Comment:
add pl translation for category_redirect.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926457&group_…
Patches item #2926428, was opened at 2010-01-05 20:38
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926428&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: +pl for category.py
Initial Comment:
add missing pl messages for category.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2926428&group_…
Bugs item #2926171, was opened at 2010-01-05 12:16
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Yr Wyddfa (yrwyddfa)
Assigned to: xqt (xqt)
Summary: Errorkey: query
Initial Comment:
Hi!
I've got a problem activating pywikipediabot - scripts at our private wiki, and since today, the same error message while logging in.
I'm using Linux ubuntu 9.04 and MediaWiki 1.14.0
Here is the terminal output:
/pywikipedia$ python login.py
Password for user weBot on Dairpedia:de:
Logging in to Dairpedia:de as weBot
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5897, in postData
self._getUserDataOld(text, sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 6168, in _getUserDataOld
blocked = self._getBlock(sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5500, in _getBlock
data = query.GetData(params, self)['query']['userinfo']
KeyError: 'query'
This KeyError also occured, when the login was successful and I tried to start any script.
Please tell me if you need any additional data.
Thanks a lot in advance!
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-05 18:51
Message:
migth be a bug. Please try again with -verbose option to get more
information about this. It seems the structure has been changed after mw
1.14
You also could try to run your bot with api disabled. Just put the
following statements in your user-config.py:
use_api = False
use_api_login = False
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171&group_…
Bugs item #2926171, was opened at 2010-01-05 12:16
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Yr Wyddfa (yrwyddfa)
>Assigned to: xqt (xqt)
Summary: Errorkey: query
Initial Comment:
Hi!
I've got a problem activating pywikipediabot - scripts at our private wiki, and since today, the same error message while logging in.
I'm using Linux ubuntu 9.04 and MediaWiki 1.14.0
Here is the terminal output:
/pywikipedia$ python login.py
Password for user weBot on Dairpedia:de:
Logging in to Dairpedia:de as weBot
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5897, in postData
self._getUserDataOld(text, sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 6168, in _getUserDataOld
blocked = self._getBlock(sysop = sysop)
File "/home/heiko/Dokumente/DairAlainn/Dairpedia/pywikipedia/wikipedia.py", line 5500, in _getBlock
data = query.GetData(params, self)['query']['userinfo']
KeyError: 'query'
This KeyError also occured, when the login was successful and I tried to start any script.
Please tell me if you need any additional data.
Thanks a lot in advance!
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-05 18:51
Message:
migth be a bug. Please try again with -verbose option to get more
information about this. It seems the structure has been changed after mw
1.14
You also could try to run your bot with api disabled. Just put the
following statements in your user-config.py:
use_api = False
use_api_login = False
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2926171&group_…