Bugs item #3608868, was opened at 2013-03-22 22:20
Message generated for change (Tracker Item Submitted) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3608868&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: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py does not follow Wikidata links
Initial Comment:
Does featured.py understand only local interlanguage links? Alben W. Barkley is a featured article on enwiki, and it exists on fiwiki, but featured.py now just skips it.
> python version.py
Pywikipedia trunk/pywikipedia/ (r11237, 2013/03/22, 22:01:35, ok)
Python 2.7.2 (default, Jun 24 2011, 12:22:14) [MSC v.1500 64 bit (AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
> featured.py -fromlang:en
...
Alben W. Barkley -> no corresponding page in wikipedia:fi
...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3608868&group_…
Bugs item #3605299, was opened at 2013-02-19 07:22
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605299&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: rewrite
>Status: Closed
>Resolution: Postponed
Priority: 5
Private: No
Submitted By: Morten Wang (nettrom)
Assigned to: Nobody/Anonymous (nobody)
Summary: Namespaces 828 and 829 missing
Initial Comment:
en-WP now has namespaces 828 and 829, ref: http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=general…
The following code throws a namespace error, but should return "Module:String":
import pywikibot;
site = pywikibot.getSite('en');
bugPage = pywikibot.Page(site, "String", ns=828);
bugPage.namespace();
828
bugPage.title();
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/__init__.py", line 124, in wrapper
return method(*__args, **__kw)
File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/__init__.py", line 124, in wrapper
return method(*__args, **__kw)
File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/page.py", line 136, in title
title = self._link.canonical_title()
File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/page.py", line 2491, in canonical_title
return "%s:%s" % (self.site.namespace(self.namespace),
File "/export/scratch/morten/python-modules/lib/python/Pywikipediabot-2.0alpha-py2.7.egg/pywikibot/site.py", line 1109, in namespace
return self.namespaces()[num][0]
KeyError: 828
Version.py output:
Pywikibot (r10326 (pywikibot/__init__.py), 2012/06/08, 12:08:53, OUTDATED)
Python 2.7.1 (r271:86832, Feb 8 2011, 09:38:37)
[GCC 4.2.3]
unicode test: triggers problem #3081100
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-03-21 22:59
Message:
Another way instead of forcing _getsiteinfo() would be to delete the api
chache on disk.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-02-20 23:43
Message:
We introduced caching api calls at berlin hackathon because high frequent
api calls slows down the performance of the rewrite branch enormously.
Anyway this should be solved.
----------------------------------------------------------------------
Comment By: Morten Wang (nettrom)
Date: 2013-02-20 12:11
Message:
That did the trick, thanks russblau!
Yes, maybe the cache should be updated whenever MediaWiki version changes?
Just a thought. I'll update this bug as "closed - works for me".
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2013-02-20 08:11
Message:
The rewrite branch gets its namespace info by querying the API.
Apparently, someone (not me) inserted code to cache this information, and
you are retrieving an old, cached version of the namespaces list.
Workaround is to insert the line:
site._getsiteinfo(force=True)
into your script, after the site=... line. However, this really is a bug
that ought to be addressed.
----------------------------------------------------------------------
Comment By: Morten Wang (nettrom)
Date: 2013-02-20 06:40
Message:
Maybe I should make it apparent that I'm on the rewrite branch, and not
trunk.
I see that trunk has namespaces 828 and 829 listed in
families/wikipedia_family.py, while I fail to figure out on my own how
namespaces are mapped in the rewrite branch.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-02-20 01:19
Message:
cannot reproduce that bug:
>>> import pwb
>>> import pywikibot as wp
>>> s = wp.getSite('en')
>>> p = wp.Page(s, 'String', ns=828)
>>> p.namespace()
828
>>> p.title()
u'Module:String'
>>>
----------------------------------------------------------------------
Comment By: Morten Wang (nettrom)
Date: 2013-02-19 09:15
Message:
That's just pywikibot/__init__.py, the repository itself is at revision
11085, updated as of a few minutes ago.
----------------------------------------------------------------------
Comment By: betacommand (betacommand)
Date: 2013-02-19 08:59
Message:
You might try updating your pywiki it looks like you are using a copy from
2012/06/08
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605299&group_…
Bugs item #3605596, was opened at 2013-02-21 16:42
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605596&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: redirect
Group: None
>Status: Open
>Resolution: None
Priority: 5
Private: Yes
Submitted By: Nobody/Anonymous (nobody)
Assigned to: xqt (xqt)
Summary: 2 redirects on a page: all replaced, instead the first only
Initial Comment:
English Wikipedia: If a redirect page contains more than one redirect, redirect.py - on handling redirects which point to other redirects - doesn't work correctly, see [[en:ANSCA]] (AvocatoBot uses redirect.py): all redirects will be replaced, only the first should.
Maybe, replacement (in redirect.py) of
text = self.site.redirectRegex().sub(
'#%s %s' % (self.site.redirect(),
targetPage.title(asLink=True, textlink=True)),
oldText)
by
text = self.site.redirectRegex().sub(
'#%s %s' % (self.site.redirect(),
targetPage.title(asLink=True, textlink=True)),
oldText,
count = 1)
could correct the error.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-03-21 22:49
Message:
reopened per request on my talk page at en-wiki
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-03-09 03:22
Message:
It does not make any sense to have more than one redirect on a redirect
page. The given sampe should become a disambig page.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605596&group_…
Feature Requests item #3607815, was opened at 2013-03-12 14:11
Message generated for change (Settings changed) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3607815&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: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Optimize multiple replace.py instances
Initial Comment:
Since the biggest part of the time and I/O resources, in a replace.py based on a xml file, is reading and uncompressing the xml file itself. When this action is done, execute 10 or 50 regex is very similar. I think that the replace.py should be able to apply more -fix in the same time. Also, if the -save parameter is active, each -fix should go in a different file.
I think that passing an array to -fix and -save to be able to do this. This implementation is only an idea, obviusly ;)
python version.py
Pywikipedia trunk/pywikipedia/ (r11200, 2013/03/09, 11:43:52, OUTDATED)
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
Comment By: Bináris (binbot)
Date: 2013-03-15 00:56
Message:
The idea is good, but much more command-line parameters are involved,
practically each except -xml and -xmlstart.
Do you have any measurements on time consumption?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3607815&group_…
Bugs item #3603994, was opened at 2013-02-10 02:14
Message generated for change (Comment added) made by basilicofresco
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3603994&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: 6
Private: No
Submitted By: Davide Bolsi (basilicofresco)
Assigned to: Nobody/Anonymous (nobody)
>Summary: replace.py stucks: template exclusion is broken
Initial Comment:
The "template" exclusion in "replaceExcept" stucks the script when used on a page that contains not closed template brackets: {{... eof.
For example this line
text = pywikibot.replaceExcept(text, u" +", ur" ", ['template'])
used on this page
http://commons.wikimedia.org/w/index.php?title=User:Basilicofresco/test2&ol…
halts indefinitely the execution script.
----------------------------------------------------------------------
>Comment By: Davide Bolsi (basilicofresco)
Date: 2013-03-16 00:09
Message:
For example this simple test replacement stucks indefinitely:
replace.py -page:"File:Serif and sans-serif 01.png" -lang:commons
-family:commons -exceptinsidetag:template "[" ""
This happens also with the dumpfile.
----------------------------------------------------------------------
Comment By: Davide Bolsi (basilicofresco)
Date: 2013-02-18 11:49
Message:
This is not a minor issue.
For example on the page "Middle Ages" on the english Wikipedia, the
replace.py script fails miserably because within the section "Crusades"
there is a "efn" template not closed.
http://en.wikipedia.org/w/index.php?title=Middle_Ages&oldid=538899472
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3603994&group_…
Bugs item #3606641, was opened at 2013-03-02 14:39
Message generated for change (Comment added) made by amird
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606641&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: category
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: alchimista ()
Assigned to: Nobody/Anonymous (nobody)
Summary: category_redirect:NameError: global name 'query_type'
Initial Comment:
I'm getting the following error:
Done checking hard-redirect category pages.
Traceback (most recent call last):
File "category_redirect.py", line 579, in <module>
main()
File "category_redirect.py", line 574, in main
bot.run()
File "category_redirect.py", line 409, in run
prop='info|categoryinfo'):
File "category_redirect.py", line 266, in query_results
querydata.update(result['query-continue'][query_type])
NameError: global name 'query_type' is not defined
Last January week it runned fine, so it's provably related to some change on other file in the meanwhile.
----------------------------------------------------------------------
>Comment By: Amir (amird)
Date: 2013-03-15 16:58
Message:
The reporter said it is fixed
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-03-07 03:23
Message:
It worked for me on Persian Wikipedia
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3606641&group_…
Bugs item #3607448, was opened at 2013-03-09 12:10
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607448&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: rewrite
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Morten Wang (nettrom)
Assigned to: Russell Blau (russblau)
Summary: Preloading fails in combination with getReferences()
Initial Comment:
A continuation of bug 3606570, I was hoping this wouldn't be a problem once that got fixed.
See attached testcase, which as of 2013-03-09 outputs:
Retrieving 5 pages from wikipedia:pt.
[[pt:Usuário(a):GoEThe]]
WARNING: preloadpages: Query returned unexpected title 'Usuário:Vitorvicentevalente'
WARNING: preloadpages: Query returned unexpected title 'Usuário:Vitorvicentevalente/Etiquetas'
[[pt:Usuário(a):SuggestBot/Obtendo sugestões regularmente]]
[[pt:Usuário(a):SuggestBot/config]]
Expected output:
Retrieving 5 pages from wikipedia:pt.
[[pt:Usuário(a):GoEThe]]
[[pt:'Usuário:Vitorvicentevalente']]
[[pt:'Usuário:Vitorvicentevalente/Etiquetas']]
[[pt:Usuário(a):SuggestBot/Obtendo sugestões regularmente]]
[[pt:Usuário(a):SuggestBot/config]]
Output of version.py:
Pywikibot (r11182 (pywikibot/__init__.py), 2013/03/06, 13:30:42, OUTDATED)
Python 2.7.1 (r271:86832, Feb 8 2011, 09:38:37)
[GCC 4.2.3]
unicode test: triggers problem #3081100
Note that 'svn info' reports "Revision: 11201".
Thanks for your work on fixing these bugs, I greatly appreciate it!
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2013-03-15 08:39
Message:
Fixed in r 11208.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3607448&group_…