Bugs item #2926171, was opened at 2010-01-05 11:16
Message generated for change (Comment added) made by nobody
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: Nobody/Anonymous (nobody)
Date: 2010-01-09 10:53
Message:
Me again ;)
I searched a bit in the folder structure of our server and found something
interesting: There is a folder called "/w" (as for the standard folder of
our wiki is "/wiki"). So I talked to our Server-admin and he told me that
he created the folder and an api.php which redirects to the api.php in the
/wiki folder. The reason was: login.py always tries to call a non
existing /w/api.php, even
def path(self, code):
return '/wiki'
is enabled in the _family.py
But I guess this should be solved in a separate thread, so this one could
be marked as "solved" - sorry for that!
----------------------------------------------------------------------
Comment By: Yr Wyddfa (yrwyddfa)
Date: 2010-01-05 23: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 17: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 #2928470, was opened at 2010-01-08 11:37
Message generated for change (Tracker Item Submitted) made by dischead
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2928470&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: Larry Gilbert (dischead)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch I submitted for djvutext.py was not applied correctly
Initial Comment:
In ID 2927811, I submitted a patch to djvutext.py so that it would call DjVuLibre's djvutxt binary with correct command-line options.
A change was checked into Subversion (r7865). However, this change was incorrect. It's possible that the edit was made by hand rather than applying the patch I provided.
The "--page" option to djvutxt must have a space instead of an equals sign between itself and the page number. If an equals sign is there, djvutxt will ignore the option and dump ALL text in the given DjVu file. This is likely to cause incorrect behavior in djvutext.py.
So all that's needed is to change the equals sign to a space. I'm attaching a new patch, but I think this can be done by hand. ;-)
Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2928470&group_…
Bugs item #2928239, was opened at 2010-01-08 12:39
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2928239&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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: unwarranted SectionError
Initial Comment:
> python version.py
Pywikipedia [http] trunk/pywikipedia (r7865, 2010/01/08, 07:29:30)
Python 2.5.2 (r252:60911, Jan 4 2009, 17:40:26)
[GCC 4.3.2]
On en.wikisource.org, this link:
[[Energy Independence and Security Act of 2007/Title XII#Sec. 1201.]]
generates a SectionError, making page.exists() return False, despite the section being good (try pasting the link into the search line an press "Go"). Possibly pywikipedia is confused by the long and short section IDs (the generated HTML code contains both
<span class="mw-headline" id="Sec._1201._Express_Loans_for_Renewable_Energy_and_Energy_Efficiency.">
and
<span id="Sec._1201.">
where the second span element is a subelement of the first one, so the CSS attribute class="mw-headline" still applies).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2928239&group_…
Patches item #2927811, was opened at 2010-01-07 21:46
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2927811&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Larry Gilbert (dischead)
>Assigned to: xqt (xqt)
Summary: djvutext.py: options to djvutxt have changed slightly
Initial Comment:
djvutext.py calls the djvutxt binary from the DjVuLibre package. I am using DjVuLibre version 3.5.19, and it expects a different command-line option to specify an individual page: "--page <num>" instead of "-page=<num>".
See attached patch.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-08 08:33
Message:
done in r7865
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2927811&group_…
Patches item #2927811, was opened at 2010-01-07 12:46
Message generated for change (Tracker Item Submitted) made by dischead
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2927811&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: Larry Gilbert (dischead)
Assigned to: Nobody/Anonymous (nobody)
Summary: djvutext.py: options to djvutxt have changed slightly
Initial Comment:
djvutext.py calls the djvutxt binary from the DjVuLibre package. I am using DjVuLibre version 3.5.19, and it expects a different command-line option to specify an individual page: "--page <num>" instead of "-page=<num>".
See attached patch.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2927811&group_…
Patches item #2927474, was opened at 2010-01-07 12:38
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2927474&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: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: aindrij Bondarenko (paleozavr)
Assigned to: xqt (xqt)
Summary: Translate description to Ukrainian language
Initial Comment:
Hi! I would like to translate descriptions in some scritps. For example I've added ukrainian lines to category.py file (added in attachment). The question is - is it possible to apply changes to make them available for using by all piwikedia-users?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-07 16:42
Message:
Done in r7864.
But give us a patch file next time if possible
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2927474&group_…
Patches item #2927474, was opened at 2010-01-07 12:38
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2927474&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: aindrij Bondarenko (paleozavr)
>Assigned to: xqt (xqt)
Summary: Translate description to Ukrainian language
Initial Comment:
Hi! I would like to translate descriptions in some scritps. For example I've added ukrainian lines to category.py file (added in attachment). The question is - is it possible to apply changes to make them available for using by all piwikedia-users?
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-07 16:42
Message:
Done in r7864.
But give us a patch file next time if possible
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2927474&group_…
Support Requests item #2927474, was opened at 2010-01-07 13:38
Message generated for change (Tracker Item Submitted) made by paleozavr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2927474&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: Open
Priority: 5
Private: No
Submitted By: aindrij Bondarenko (paleozavr)
Assigned to: Nobody/Anonymous (nobody)
Summary: Translate description to Ukrainian language
Initial Comment:
Hi! I would like to translate descriptions in some scritps. For example I've added ukrainian lines to category.py file (added in attachment). The question is - is it possible to apply changes to make them available for using by all piwikedia-users?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2927474&group_…
Bugs item #2927337, was opened at 2010-01-07 05:12
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2927337&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: General
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 8
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: xqt (xqt)
Summary: Interwiki run terminates with KeyError in _getEditPage
Initial Comment:
This now happens every time I try to restart my autonomous interwiki run:
>interwiki.py -autonomous -lang:fi -namespace:0 -start:"Steffi Graf"
...
Updating links on page [[sv:Stena Line]].
No changes needed
Getting 2 pages from wikipedia:tg...
Getting 2 pages from wikipedia:nds-nl...
Getting 2 pages from wikipedia:bar...
Traceback (most recent call last):
File "c:\svn\pywikipedia\pagegenerators.py", line 860, in __iter__
for loaded_page in self.preload(somePages):
File "c:\svn\pywikipedia\pagegenerators.py", line 879, in preload
wikipedia.getall(site, pagesThisSite)
File "c:\svn\pywikipedia\wikipedia.py", line 4158, in getall
_GetAll(site, pages, throttle, force).run()
File "c:\svn\pywikipedia\wikipedia.py", line 3837, in run
xml.sax.parseString(data, handler)
File "C:\Python25\lib\xml\sax\__init__.py", line 49, in parseString
parser.parse(inpsrc)
File "C:\Python25\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Python25\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Python25\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "C:\Python25\lib\xml\sax\expatreader.py", line 304, in end_element
self._cont_handler.endElement(name)
File "c:\svn\pywikipedia\xmlreader.py", line 182, in endElement
text, self.username,
AttributeError: MediaWikiXmlHandler instance has no attribute 'username'
MediaWikiXmlHandler instance has no attribute 'username'
Dump fi (wikipedia) appended.
Traceback (most recent call last):
File "C:\svn\pywikipedia\interwiki.py", line 2370, in <module>
main()
File "C:\svn\pywikipedia\interwiki.py", line 2344, in main
bot.run()
File "C:\svn\pywikipedia\interwiki.py", line 2104, in run
self.queryStep()
File "C:\svn\pywikipedia\interwiki.py", line 2077, in queryStep
self.oneQuery()
File "C:\svn\pywikipedia\interwiki.py", line 2073, in oneQuery
subject.batchLoaded(self)
File "C:\svn\pywikipedia\interwiki.py", line 1240, in batchLoaded
if not page.exists():
File "c:\svn\pywikipedia\wikipedia.py", line 996, in exists
self.get()
File "c:\svn\pywikipedia\wikipedia.py", line 684, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "c:\svn\pywikipedia\wikipedia.py", line 767, in _getEditPage
self._userName = pageInfo['revisions'][0]['user']
KeyError: 'user'
>python version.py
Pywikipedia [http] trunk/pywikipedia (r7862, 2010/01/06, 10:53:08)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-07 11:21
Message:
maybe solved in r7863
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-01-07 08:27
Message:
I've learned there are some pages with hidden usernames.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2927337&group_…
Bugs item #2927337, was opened at 2010-01-07 05:12
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2927337&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: General
Group: None
Status: Open
Resolution: None
Priority: 8
Private: No
Submitted By: Mikko Silvonen (silvonen)
>Assigned to: xqt (xqt)
Summary: Interwiki run terminates with KeyError in _getEditPage
Initial Comment:
This now happens every time I try to restart my autonomous interwiki run:
>interwiki.py -autonomous -lang:fi -namespace:0 -start:"Steffi Graf"
...
Updating links on page [[sv:Stena Line]].
No changes needed
Getting 2 pages from wikipedia:tg...
Getting 2 pages from wikipedia:nds-nl...
Getting 2 pages from wikipedia:bar...
Traceback (most recent call last):
File "c:\svn\pywikipedia\pagegenerators.py", line 860, in __iter__
for loaded_page in self.preload(somePages):
File "c:\svn\pywikipedia\pagegenerators.py", line 879, in preload
wikipedia.getall(site, pagesThisSite)
File "c:\svn\pywikipedia\wikipedia.py", line 4158, in getall
_GetAll(site, pages, throttle, force).run()
File "c:\svn\pywikipedia\wikipedia.py", line 3837, in run
xml.sax.parseString(data, handler)
File "C:\Python25\lib\xml\sax\__init__.py", line 49, in parseString
parser.parse(inpsrc)
File "C:\Python25\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Python25\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\Python25\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "C:\Python25\lib\xml\sax\expatreader.py", line 304, in end_element
self._cont_handler.endElement(name)
File "c:\svn\pywikipedia\xmlreader.py", line 182, in endElement
text, self.username,
AttributeError: MediaWikiXmlHandler instance has no attribute 'username'
MediaWikiXmlHandler instance has no attribute 'username'
Dump fi (wikipedia) appended.
Traceback (most recent call last):
File "C:\svn\pywikipedia\interwiki.py", line 2370, in <module>
main()
File "C:\svn\pywikipedia\interwiki.py", line 2344, in main
bot.run()
File "C:\svn\pywikipedia\interwiki.py", line 2104, in run
self.queryStep()
File "C:\svn\pywikipedia\interwiki.py", line 2077, in queryStep
self.oneQuery()
File "C:\svn\pywikipedia\interwiki.py", line 2073, in oneQuery
subject.batchLoaded(self)
File "C:\svn\pywikipedia\interwiki.py", line 1240, in batchLoaded
if not page.exists():
File "c:\svn\pywikipedia\wikipedia.py", line 996, in exists
self.get()
File "c:\svn\pywikipedia\wikipedia.py", line 684, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "c:\svn\pywikipedia\wikipedia.py", line 767, in _getEditPage
self._userName = pageInfo['revisions'][0]['user']
KeyError: 'user'
>python version.py
Pywikipedia [http] trunk/pywikipedia (r7862, 2010/01/06, 10:53:08)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-01-07 08:27
Message:
I've learned there are some pages with hidden usernames.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2927337&group_…