Page MenuHomePhabricator

title of ml-site not found in list retrieved via API
Closed, DeclinedPublic

Description

Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1421/
Reported by: xqt
Created on: 2012-03-11 12:59:40
Subject: title of ml-site not found in list retrieved via API
Original description:
Retrieving pages from ml-wikipedia results in that BUG

Getting 52 pages via API from wikipedia:ml...
BUG>> title ????? ??????? \(\[\[ml:????? ???????\]\]\) not found in list
Expected one of: \[\[ml:????????\]\],\[\[ml:????\]\],\[\[ml:??????????\]\],\[\[ml:?????? ?????
\]\],\[\[ml:???????\]\],\[\[ml:???????\]\],\[\[ml:???????\]\],\[\[ml:???????????\]\],\[\[ml:????\]\],\[
\[ml:????\]\],\[\[ml:??????\]\],\[\[ml:?????? 25\]\],\[\[ml:?????\]\],\[\[ml:????????\]\],\[\[ml:????
????\]\],\[\[ml:??????:?????????\]\],\[\[ml:?????\]\],\[\[ml:?????????\]\],\[\[ml:???????\]\],\[\[ml
:???????????\]\],\[\[ml:?????????????? ??????????? ??? ?????\]\],\[\[ml:??????\]\],\[\[ml:??
??????\]\],\[\[ml:????\]\],\[\[ml:????\]\],\[\[ml:??????\]\],\[\[ml:?????????\]\],\[\[ml:????????\]\],
\[\[ml:????-????\]\],\[\[ml:???????????? ????\]\],\[\[ml:???????\]\],\[\[ml:?????????\]\],\[\[ml:?
?????????????\]\],\[\[ml:????\]\],\[\[ml:???????\]\],\[\[ml:???????????\]\],\[\[ml:?????????????
\]\],\[\[ml:????????\]\],\[\[ml:??????? ?????????\]\],\[\[ml:?? ????????\]\],\[\[ml:??????????\]\]
,\[\[ml:??????????? ???\]\],\[\[ml:?????????\]\],\[\[ml:?????\]\],\[\[ml:?????? ???\]\],\[\[ml:???
???? ????????\]\],\[\[ml:??? ??????????\]\],\[\[ml:???????\]\],\[\[ml:???????????????????\]\],
\[\[ml:???????? ??????????\]\],\[\[ml:?????? ????????\]\],\[\[ml:?????? ???\]\]
Traceback \(most recent call last\):
File "C:\pwb\trunk\pagegenerators.py", line 1200, in \_\_iter\_\_
for loaded\_page in self.preload\(somePages\):
File "C:\pwb\trunk\pagegenerators.py", line 1223, in preload
pywikibot.getall\(site, pagesThisSite\)
File "C:\pwb\trunk\wikipedia.py", line 4472, in getall
else:
File "C:\pwb\trunk\wikipedia.py", line 4098, in run
self.oneDoneApi\(vals\)
File "C:\pwb\trunk\wikipedia.py", line 4375, in oneDoneApi
raise PageNotFound
PageNotFound

C:\pwb\trunk
Pywikipedia trunk/pywikipedia/ \(r10009, 2012/03/11, 12:13:26\)
Python 2.7.2 \(default, Jun 12 2011, 14:24:46\) \[MSC v.1500 64 bit \(AMD64\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: ok


Version: compat-(1.0)
Severity: normal
See Also:
https://sourceforge.net/p/pywikipediabot/bugs/1421

Details

Reference
bz55207

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:26 AM
bzimport set Reference to bz55207.
bzimport added a subscriber: Unknown Object (????).

Can you provide exact steps to reproduce?

I can't. This depends on compat only and is the reason why compat retrieves pages via "old API" special:export and not via API request with query.py The code is already there. I suggest to close as WONTFIX because compat is defacto deprecated and it is time consuming to investigate into this matter for an old system whereas we have a new one and the old code still works with old API.

I guess there might be a spelling difference somewhere and the page titles aren't normalized in the right form.