Bugs item #3489453, was opened at 2012-02-19 13:47
Message generated for change (Tracker Item Submitted) made by hiw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3489453&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: hiw (hiw)
Assigned to: Nobody/Anonymous (nobody)
Summary: Commonscat.py puts template in wrong location
Initial Comment:
http://en.wikipedia.org/w/index.php?title=%27Asir_Province&diff=prev&oldid=…
Template should be placed under external links or last section of the page
Pywikipedia trunk/pywikipedia/ (r9911, 2011/03/13, 10:14:47)
Python 2.7.2 (default, Jun 24 2011, 12:21:10) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3489453&group_…
Bugs item #3488668, was opened at 2012-02-17 12:37
Message generated for change (Tracker Item Submitted) made by snaevar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3488668&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: Snaevar (snaevar)
Assigned to: Nobody/Anonymous (nobody)
Summary: Namespace 104 and 105 on wikibooks
Initial Comment:
Namespaces 104 and 105 do not exist on the following Wikibooks and should be removed from the family file: gl, sk mk, bg, fo, is, fi, cs, ko, ja, uk, sr, nl, az, el.
Output of version.py:
Pywikipedia trunk/pywikipedia <r9900, 2011/10/30, 15:03:29>
Python 2.7.2 <default, Jun 12 2011, 15:08:59> [MSC v.1500 32 bit <Intel>]
config settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3488668&group_…
Bugs item #3488657, was opened at 2012-02-17 11:16
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3488657&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: Yevhen Movsesov ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Cosmetic: Sign "_" replaced with space for [[http://links]]
Initial Comment:
1. In some article you can find incorrect hyperlink formatting, like this one - [[http://google.com/some_page]]
2. In this case cosmtetic_changes.py replaces this link as [[http://google.com/some page]] (space instead underscore)
3. I think it's incorrect, even if article has incorrect formatted hyperlinks
4. Example you can find in this edit as a result
python cosmetic_changes.py -lang:ru -always -page:"Микаелян, Сергей Абгарович"
http://ru.wikipedia.org/w/index.php?title=%D0%9C%D0%B8%D0%BA%D0%B0%D0%B5%D0…
5. It lloks, that you can avoid this situation just with moving string
text = self.cleanUpLinks(text)
under
text = self.fixSyntaxSave(text)
6. So, it looks, that correct calls should be
text = self.fixSelfInterwiki(text)
text = self.standardizePageFooter(text)
text = self.cleanUpSectionHeaders(text)
text = self.putSpacesInLists(text)
text = self.translateAndCapitalizeNamespaces(text)
text = self.replaceDeprecatedTemplates(text)
text = self.resolveHtmlEntities(text)
text = self.validXhtml(text)
text = self.removeUselessSpaces(text)
text = self.removeNonBreakingSpaceBeforePercent(text)
text = self.fixSyntaxSave(text)
text = self.cleanUpLinks(text)
text = self.fixHtml(text)
text = self.fixStyle(text)
text = self.fixTypo(text)
text = self.fixArabicLetters(text)
7.
Pywikipedia [http] trunk/pywikipedia (r9901, 2012/02/16, 22:44:36)
Python 2.6.7 (r267:88850, Sep 19 2011, 13:25:28)
[GCC 4.5.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3488657&group_…
Bugs item #3488331, was opened at 2012-02-16 13:39
Message generated for change (Tracker Item Submitted) made by mga73
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3488331&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: MGA73 (mga73)
Assigned to: Nobody/Anonymous (nobody)
Summary: Change edit description of commonscat.py
Initial Comment:
When commonscat.py adds a template it uses a description like "Robot: Adding {{Commons category|Disney people}}" http://en.wikipedia.org/w/index.php?title=Category:Disney_people&diff=prev&…
The summary is not wrong but sometimes the bot adds a wrong link because someone has added a wrong link on another wiki. When that happens you have to check all interwiki links manually to find out where the error is.
To make it easier to find the wrong link it would be nice if the summary could be changed to tell where the link was found like "Robot: Adding {{Commons category|Disney people}} - from xx wiki". If possible the bot should list all wikis that has the same wrong link "... - from xx, yy, zz ... wiki".
**** If needed:
C:\Pywikipedia>version.py
Pywikipedia [http] trunk/pywikipedia (r9900, 2012/02/16, 20:41:18)
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3488331&group_…
Bugs item #3487492, was opened at 2012-02-14 00:19
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&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: solve_disambiguation
Group: None
>Status: Closed
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: dmitrynikitin ()
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disamgiguation don't work in ru.wiki
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r9895, 2012/02/14, 08:02:54)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--------------------------------------------------
solve_disambiguation don't work with non-latin titles
$ python ../../wiki/pywikipedia/solve_disambiguation.py Я
0 - Ивановская область
1 - Паровоз Я
2 - Паровоз Я-01
3 - Пляцковский, Михаил Спартакович
4 - Я (Эго)
5 - Я (кана)
6 - Я (кириллица)
7 - Я (местоимение)
8 - Я (сок)
9 - Я (философия)
10 - Я (фильм)
11 - Я.ру
12 - Якутия
13 - Яндекс
14 - Ярославль
15 - Ярославский автомобильный завод
16 - якорь
17 - ямб
Getting references to [[Я]] via API...
Traceback (most recent call last):
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1182, in __iter__
for page in self.wrapped_gen:
File "../../wiki/pywikipedia/solve_disambiguation.py", line 413, in __iter__
refs = [page for page in generator]
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1062, in PageTitleFilterPageGenerator
for page in generator:
File "/export3/wiki/pywikipedia/pagegenerators.py", line 610, in ReferringPageGenerator
onlyTemplateInclusion):
File "/export3/wiki/pywikipedia/wikipedia.py", line 1437, in getReferences
pg = Page(self.site(), blp['title'], defaultNamespace = blp['ns'])
File "/export3/wiki/pywikipedia/wikipedia.py", line 404, in __init__
t = u'%s:%s' % (self._site.namespace(self._namespace), t)
File "/export3/wiki/pywikipedia/wikipedia.py", line 7618, in namespace
return self.family.namespace(self.lang, num, all = all)
File "/export3/wiki/pywikipedia/family.py", line 3728, in namespace
raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code))
KeyError: 'ERROR: title for namespace 104 in language ru unknown'
'ERROR: title for namespace 104 in language ru unknown'
----------------------------------------------------------------------
>Comment By: dmitrynikitin ()
Date: 2012-02-14 06:21
Message:
Thank you! It was my fault. I have several installation of pywikipedia for
different wiki-projects in different directories. There was two families
dirs, rather than one directories and one soft link to it.
Sorry one more time.
Will close this issue.
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 05:31
Message:
I added a second screenshot showing the hits from namespace "Проект",
I think the bug is not in Pywiki. Please open wikipedia_family.py and check
if line 898 is
'ru': u'Проект',
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 05:15
Message:
Compare
http://ru.wikipedia.org/w/index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0…
which has a few links from namespace 104 and
http://ru.wikipedia.org/w/index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0…,
which has none. That's why it works for you, not the Latin letters.
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 05:12
Message:
Hmm, sounds interesting. It works for me, see the attached screenshot.
(Sorry for encoding, I don't have Russian command line.) Namespace 104 has
really recently been added to family file, I suspect the problem here
anyway.
Differenc between Я and Z may not be in Latin/Cyrillic, rather which of
them is linked from namespace "Проект".
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:43
Message:
the same command w/ latin title works ok.
for example, python ../../wiki/pywikipedia/solve_disambiguation.py Z
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:42
Message:
$ ls -la families/wikipedia_family.py
-rw-r--r-- 1 dnikitin uucp 66447 2012-02-14 12:30
families/wikipedia_family.py
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 01:05
Message:
This is not about Russian titles. It clearly states: title for namespace
104 in language ru unknown. Make sure you update the whole distribution,
not only root directory of Pywikipedia. Check the directory /families for
wikipedia_family.py. Is it later then Mon Feb 13 10:02:32 2012 UTC?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&group_…
Bugs item #3487492, was opened at 2012-02-14 00:19
Message generated for change (Comment added) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&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: solve_disambiguation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dmitrynikitin ()
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disamgiguation don't work in ru.wiki
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r9895, 2012/02/14, 08:02:54)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--------------------------------------------------
solve_disambiguation don't work with non-latin titles
$ python ../../wiki/pywikipedia/solve_disambiguation.py Я
0 - Ивановская область
1 - Паровоз Я
2 - Паровоз Я-01
3 - Пляцковский, Михаил Спартакович
4 - Я (Эго)
5 - Я (кана)
6 - Я (кириллица)
7 - Я (местоимение)
8 - Я (сок)
9 - Я (философия)
10 - Я (фильм)
11 - Я.ру
12 - Якутия
13 - Яндекс
14 - Ярославль
15 - Ярославский автомобильный завод
16 - якорь
17 - ямб
Getting references to [[Я]] via API...
Traceback (most recent call last):
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1182, in __iter__
for page in self.wrapped_gen:
File "../../wiki/pywikipedia/solve_disambiguation.py", line 413, in __iter__
refs = [page for page in generator]
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1062, in PageTitleFilterPageGenerator
for page in generator:
File "/export3/wiki/pywikipedia/pagegenerators.py", line 610, in ReferringPageGenerator
onlyTemplateInclusion):
File "/export3/wiki/pywikipedia/wikipedia.py", line 1437, in getReferences
pg = Page(self.site(), blp['title'], defaultNamespace = blp['ns'])
File "/export3/wiki/pywikipedia/wikipedia.py", line 404, in __init__
t = u'%s:%s' % (self._site.namespace(self._namespace), t)
File "/export3/wiki/pywikipedia/wikipedia.py", line 7618, in namespace
return self.family.namespace(self.lang, num, all = all)
File "/export3/wiki/pywikipedia/family.py", line 3728, in namespace
raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code))
KeyError: 'ERROR: title for namespace 104 in language ru unknown'
'ERROR: title for namespace 104 in language ru unknown'
----------------------------------------------------------------------
>Comment By: Bináris (binbot)
Date: 2012-02-14 05:31
Message:
I added a second screenshot showing the hits from namespace "Проект",
I think the bug is not in Pywiki. Please open wikipedia_family.py and check
if line 898 is
'ru': u'Проект',
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 05:15
Message:
Compare
http://ru.wikipedia.org/w/index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0…
which has a few links from namespace 104 and
http://ru.wikipedia.org/w/index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0…,
which has none. That's why it works for you, not the Latin letters.
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 05:12
Message:
Hmm, sounds interesting. It works for me, see the attached screenshot.
(Sorry for encoding, I don't have Russian command line.) Namespace 104 has
really recently been added to family file, I suspect the problem here
anyway.
Differenc between Я and Z may not be in Latin/Cyrillic, rather which of
them is linked from namespace "Проект".
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:43
Message:
the same command w/ latin title works ok.
for example, python ../../wiki/pywikipedia/solve_disambiguation.py Z
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:42
Message:
$ ls -la families/wikipedia_family.py
-rw-r--r-- 1 dnikitin uucp 66447 2012-02-14 12:30
families/wikipedia_family.py
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 01:05
Message:
This is not about Russian titles. It clearly states: title for namespace
104 in language ru unknown. Make sure you update the whole distribution,
not only root directory of Pywikipedia. Check the directory /families for
wikipedia_family.py. Is it later then Mon Feb 13 10:02:32 2012 UTC?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&group_…
Bugs item #3487492, was opened at 2012-02-14 00:19
Message generated for change (Comment added) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&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: solve_disambiguation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dmitrynikitin ()
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disamgiguation don't work in ru.wiki
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r9895, 2012/02/14, 08:02:54)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--------------------------------------------------
solve_disambiguation don't work with non-latin titles
$ python ../../wiki/pywikipedia/solve_disambiguation.py Я
0 - Ивановская область
1 - Паровоз Я
2 - Паровоз Я-01
3 - Пляцковский, Михаил Спартакович
4 - Я (Эго)
5 - Я (кана)
6 - Я (кириллица)
7 - Я (местоимение)
8 - Я (сок)
9 - Я (философия)
10 - Я (фильм)
11 - Я.ру
12 - Якутия
13 - Яндекс
14 - Ярославль
15 - Ярославский автомобильный завод
16 - якорь
17 - ямб
Getting references to [[Я]] via API...
Traceback (most recent call last):
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1182, in __iter__
for page in self.wrapped_gen:
File "../../wiki/pywikipedia/solve_disambiguation.py", line 413, in __iter__
refs = [page for page in generator]
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1062, in PageTitleFilterPageGenerator
for page in generator:
File "/export3/wiki/pywikipedia/pagegenerators.py", line 610, in ReferringPageGenerator
onlyTemplateInclusion):
File "/export3/wiki/pywikipedia/wikipedia.py", line 1437, in getReferences
pg = Page(self.site(), blp['title'], defaultNamespace = blp['ns'])
File "/export3/wiki/pywikipedia/wikipedia.py", line 404, in __init__
t = u'%s:%s' % (self._site.namespace(self._namespace), t)
File "/export3/wiki/pywikipedia/wikipedia.py", line 7618, in namespace
return self.family.namespace(self.lang, num, all = all)
File "/export3/wiki/pywikipedia/family.py", line 3728, in namespace
raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code))
KeyError: 'ERROR: title for namespace 104 in language ru unknown'
'ERROR: title for namespace 104 in language ru unknown'
----------------------------------------------------------------------
>Comment By: Bináris (binbot)
Date: 2012-02-14 05:15
Message:
Compare
http://ru.wikipedia.org/w/index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0…
which has a few links from namespace 104 and
http://ru.wikipedia.org/w/index.php?title=%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0…,
which has none. That's why it works for you, not the Latin letters.
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 05:12
Message:
Hmm, sounds interesting. It works for me, see the attached screenshot.
(Sorry for encoding, I don't have Russian command line.) Namespace 104 has
really recently been added to family file, I suspect the problem here
anyway.
Differenc between Я and Z may not be in Latin/Cyrillic, rather which of
them is linked from namespace "Проект".
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:43
Message:
the same command w/ latin title works ok.
for example, python ../../wiki/pywikipedia/solve_disambiguation.py Z
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:42
Message:
$ ls -la families/wikipedia_family.py
-rw-r--r-- 1 dnikitin uucp 66447 2012-02-14 12:30
families/wikipedia_family.py
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 01:05
Message:
This is not about Russian titles. It clearly states: title for namespace
104 in language ru unknown. Make sure you update the whole distribution,
not only root directory of Pywikipedia. Check the directory /families for
wikipedia_family.py. Is it later then Mon Feb 13 10:02:32 2012 UTC?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&group_…
Bugs item #3487492, was opened at 2012-02-14 00:19
Message generated for change (Comment added) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&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: solve_disambiguation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dmitrynikitin ()
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disamgiguation don't work in ru.wiki
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r9895, 2012/02/14, 08:02:54)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--------------------------------------------------
solve_disambiguation don't work with non-latin titles
$ python ../../wiki/pywikipedia/solve_disambiguation.py Я
0 - Ивановская область
1 - Паровоз Я
2 - Паровоз Я-01
3 - Пляцковский, Михаил Спартакович
4 - Я (Эго)
5 - Я (кана)
6 - Я (кириллица)
7 - Я (местоимение)
8 - Я (сок)
9 - Я (философия)
10 - Я (фильм)
11 - Я.ру
12 - Якутия
13 - Яндекс
14 - Ярославль
15 - Ярославский автомобильный завод
16 - якорь
17 - ямб
Getting references to [[Я]] via API...
Traceback (most recent call last):
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1182, in __iter__
for page in self.wrapped_gen:
File "../../wiki/pywikipedia/solve_disambiguation.py", line 413, in __iter__
refs = [page for page in generator]
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1062, in PageTitleFilterPageGenerator
for page in generator:
File "/export3/wiki/pywikipedia/pagegenerators.py", line 610, in ReferringPageGenerator
onlyTemplateInclusion):
File "/export3/wiki/pywikipedia/wikipedia.py", line 1437, in getReferences
pg = Page(self.site(), blp['title'], defaultNamespace = blp['ns'])
File "/export3/wiki/pywikipedia/wikipedia.py", line 404, in __init__
t = u'%s:%s' % (self._site.namespace(self._namespace), t)
File "/export3/wiki/pywikipedia/wikipedia.py", line 7618, in namespace
return self.family.namespace(self.lang, num, all = all)
File "/export3/wiki/pywikipedia/family.py", line 3728, in namespace
raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code))
KeyError: 'ERROR: title for namespace 104 in language ru unknown'
'ERROR: title for namespace 104 in language ru unknown'
----------------------------------------------------------------------
>Comment By: Bináris (binbot)
Date: 2012-02-14 05:12
Message:
Hmm, sounds interesting. It works for me, see the attached screenshot.
(Sorry for encoding, I don't have Russian command line.) Namespace 104 has
really recently been added to family file, I suspect the problem here
anyway.
Differenc between Я and Z may not be in Latin/Cyrillic, rather which of
them is linked from namespace "Проект".
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:43
Message:
the same command w/ latin title works ok.
for example, python ../../wiki/pywikipedia/solve_disambiguation.py Z
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:42
Message:
$ ls -la families/wikipedia_family.py
-rw-r--r-- 1 dnikitin uucp 66447 2012-02-14 12:30
families/wikipedia_family.py
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 01:05
Message:
This is not about Russian titles. It clearly states: title for namespace
104 in language ru unknown. Make sure you update the whole distribution,
not only root directory of Pywikipedia. Check the directory /families for
wikipedia_family.py. Is it later then Mon Feb 13 10:02:32 2012 UTC?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&group_…
Bugs item #3487492, was opened at 2012-02-14 00:19
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&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: solve_disambiguation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dmitrynikitin ()
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disamgiguation don't work in ru.wiki
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r9895, 2012/02/14, 08:02:54)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--------------------------------------------------
solve_disambiguation don't work with non-latin titles
$ python ../../wiki/pywikipedia/solve_disambiguation.py Я
0 - Ивановская область
1 - Паровоз Я
2 - Паровоз Я-01
3 - Пляцковский, Михаил Спартакович
4 - Я (Эго)
5 - Я (кана)
6 - Я (кириллица)
7 - Я (местоимение)
8 - Я (сок)
9 - Я (философия)
10 - Я (фильм)
11 - Я.ру
12 - Якутия
13 - Яндекс
14 - Ярославль
15 - Ярославский автомобильный завод
16 - якорь
17 - ямб
Getting references to [[Я]] via API...
Traceback (most recent call last):
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1182, in __iter__
for page in self.wrapped_gen:
File "../../wiki/pywikipedia/solve_disambiguation.py", line 413, in __iter__
refs = [page for page in generator]
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1062, in PageTitleFilterPageGenerator
for page in generator:
File "/export3/wiki/pywikipedia/pagegenerators.py", line 610, in ReferringPageGenerator
onlyTemplateInclusion):
File "/export3/wiki/pywikipedia/wikipedia.py", line 1437, in getReferences
pg = Page(self.site(), blp['title'], defaultNamespace = blp['ns'])
File "/export3/wiki/pywikipedia/wikipedia.py", line 404, in __init__
t = u'%s:%s' % (self._site.namespace(self._namespace), t)
File "/export3/wiki/pywikipedia/wikipedia.py", line 7618, in namespace
return self.family.namespace(self.lang, num, all = all)
File "/export3/wiki/pywikipedia/family.py", line 3728, in namespace
raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code))
KeyError: 'ERROR: title for namespace 104 in language ru unknown'
'ERROR: title for namespace 104 in language ru unknown'
----------------------------------------------------------------------
>Comment By: dmitrynikitin ()
Date: 2012-02-14 04:43
Message:
the same command w/ latin title works ok.
for example, python ../../wiki/pywikipedia/solve_disambiguation.py Z
----------------------------------------------------------------------
Comment By: dmitrynikitin ()
Date: 2012-02-14 04:42
Message:
$ ls -la families/wikipedia_family.py
-rw-r--r-- 1 dnikitin uucp 66447 2012-02-14 12:30
families/wikipedia_family.py
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 01:05
Message:
This is not about Russian titles. It clearly states: title for namespace
104 in language ru unknown. Make sure you update the whole distribution,
not only root directory of Pywikipedia. Check the directory /families for
wikipedia_family.py. Is it later then Mon Feb 13 10:02:32 2012 UTC?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&group_…
Bugs item #3487492, was opened at 2012-02-14 00:19
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&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: solve_disambiguation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dmitrynikitin ()
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disamgiguation don't work in ru.wiki
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r9895, 2012/02/14, 08:02:54)
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
--------------------------------------------------
solve_disambiguation don't work with non-latin titles
$ python ../../wiki/pywikipedia/solve_disambiguation.py Я
0 - Ивановская область
1 - Паровоз Я
2 - Паровоз Я-01
3 - Пляцковский, Михаил Спартакович
4 - Я (Эго)
5 - Я (кана)
6 - Я (кириллица)
7 - Я (местоимение)
8 - Я (сок)
9 - Я (философия)
10 - Я (фильм)
11 - Я.ру
12 - Якутия
13 - Яндекс
14 - Ярославль
15 - Ярославский автомобильный завод
16 - якорь
17 - ямб
Getting references to [[Я]] via API...
Traceback (most recent call last):
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1182, in __iter__
for page in self.wrapped_gen:
File "../../wiki/pywikipedia/solve_disambiguation.py", line 413, in __iter__
refs = [page for page in generator]
File "/export3/wiki/pywikipedia/pagegenerators.py", line 1062, in PageTitleFilterPageGenerator
for page in generator:
File "/export3/wiki/pywikipedia/pagegenerators.py", line 610, in ReferringPageGenerator
onlyTemplateInclusion):
File "/export3/wiki/pywikipedia/wikipedia.py", line 1437, in getReferences
pg = Page(self.site(), blp['title'], defaultNamespace = blp['ns'])
File "/export3/wiki/pywikipedia/wikipedia.py", line 404, in __init__
t = u'%s:%s' % (self._site.namespace(self._namespace), t)
File "/export3/wiki/pywikipedia/wikipedia.py", line 7618, in namespace
return self.family.namespace(self.lang, num, all = all)
File "/export3/wiki/pywikipedia/family.py", line 3728, in namespace
raise KeyError('ERROR: title for namespace %d in language %s unknown' % (ns_number, code))
KeyError: 'ERROR: title for namespace 104 in language ru unknown'
'ERROR: title for namespace 104 in language ru unknown'
----------------------------------------------------------------------
>Comment By: dmitrynikitin ()
Date: 2012-02-14 04:42
Message:
$ ls -la families/wikipedia_family.py
-rw-r--r-- 1 dnikitin uucp 66447 2012-02-14 12:30
families/wikipedia_family.py
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2012-02-14 01:05
Message:
This is not about Russian titles. It clearly states: title for namespace
104 in language ru unknown. Make sure you update the whole distribution,
not only root directory of Pywikipedia. Check the directory /families for
wikipedia_family.py. Is it later then Mon Feb 13 10:02:32 2012 UTC?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3487492&group_…