Bugs item #3610806, was opened at 2013-04-13 23:53
Message generated for change (Comment added) made by leeyc0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610806&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: leeyc0 (leeyc0)
Assigned to: Nobody/Anonymous (nobody)
Summary: yet another bug in extract_templates_and_params()
Initial Comment:
I found another bug in extract_templates_and_params() if curly bracket exists inside template.
Below is the code snippet demonstrating the bug
#!/usr/bin/python
# -*- coding: utf-8 -*-
# you need to download and configure pywikipedia
import sys
sys.path = ["/home/yclee/pywikipedia"] + sys.path
import wikipedia as pywikibot
# bug: extract_templates_and_params returns empty list
pageStr = "{{aaa|name=-{name123}-}}"
print pywikibot.extract_templates_and_params(pageStr)
# normal
pageStr = "{{aaa|name=name123}}"
print pywikibot.extract_templates_and_params(pageStr)
(note: -{XXXXX}- is a special syntax in Chinese wikipedia, which the usage is to inhibit automatic traditional/simplified Chinese conversion)
----------------------------------------------------------------------
Comment By: leeyc0 (leeyc0)
Date: 2013-04-21 18:19
Message:
This artifact has been marked as a duplicate of artifact 3021792 with
reason:
duplicate
----------------------------------------------------------------------
Comment By: leeyc0 (leeyc0)
Date: 2013-04-13 23:54
Message:
BTW, the bug also there if pageStr is
pageStr = "{{aaa|name={name123}}}"
A simple pair of curly bracket is enough to trigger the bug
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610806&group_…
Bugs item #3611511, was opened at 2013-04-21 13:44
Message generated for change (Comment added) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611511&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: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: API logger error
Initial Comment:
the following error appears for vaious scripts
>python replace.py "Trevill" "Trévill" "Tremouill" "Trémouill" -links:"Indeks:Trzej muszkieterowie"
Traceback (most recent call last):
File "/usr/home/masti/pw/pysource/pagegenerators.py", line 1228, in __iter__
for loaded_page in self.preload(somePages):
File "/usr/home/masti/pw/pysource/pagegenerators.py", line 1253, in preload
pywikibot.getall(site, pagesThisSite)
File "/usr/home/masti/pw/pysource/wikipedia.py", line 5445, in getall
(u'', u'via API ')[site.has_api() and logger.isEnabledFor(DEBUG)],
AttributeError: 'NoneType' object has no attribute 'isEnabledFor'
No handlers could be found for logger "pywiki"
'NoneType' object has no attribute 'isEnabledFor'
0 pages were changed.
>Pywikipedia (r11427 (wikipedia.py), 2013/04/21, 20:16:57, ok)
Python 2.7.3 (default, Sep 17 2012, 21:25:11)
[GCC 4.3.4]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: masti (masti01)
Date: 2013-04-21 14:01
Message:
does not appear on other system with older Python
$ python version.py
unicode test: triggers problem #3081100
Pywikipedia [http] trunk/pywikipedia (r11425, 2013/04/21, 19:09:15,
OUTDATED)
Python 2.6.6 (r266:84292, Aug 28 2012, 10:55:56)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611511&group_…
Bugs item #3611511, was opened at 2013-04-21 13:44
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611511&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: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: API logger error
Initial Comment:
the following error appears for vaious scripts
>python replace.py "Trevill" "Trévill" "Tremouill" "Trémouill" -links:"Indeks:Trzej muszkieterowie"
Traceback (most recent call last):
File "/usr/home/masti/pw/pysource/pagegenerators.py", line 1228, in __iter__
for loaded_page in self.preload(somePages):
File "/usr/home/masti/pw/pysource/pagegenerators.py", line 1253, in preload
pywikibot.getall(site, pagesThisSite)
File "/usr/home/masti/pw/pysource/wikipedia.py", line 5445, in getall
(u'', u'via API ')[site.has_api() and logger.isEnabledFor(DEBUG)],
AttributeError: 'NoneType' object has no attribute 'isEnabledFor'
No handlers could be found for logger "pywiki"
'NoneType' object has no attribute 'isEnabledFor'
0 pages were changed.
>Pywikipedia (r11427 (wikipedia.py), 2013/04/21, 20:16:57, ok)
Python 2.7.3 (default, Sep 17 2012, 21:25:11)
[GCC 4.3.4]
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=3611511&group_…
Bugs item #3021792, was opened at 2010-06-26 10:36
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3021792&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: 6
Private: No
Submitted By: Anypodetos (anypodetos)
>Assigned to: xqt (xqt)
Summary: templatesWithParams() misses templates
Initial Comment:
wikipedia.templatesWithParams() does not find templates if they contain curly braces. For example, {{drugbox}} on en.wikipedia.org/wiki/Semagacestat is not found, but after removing the "{" in the parameter IUPAC_name (which I tried in my sandbox), everything works fine.
output of version.py:
Pywikipedia [http] trunk/pywikipedia (r8334, 2010/06/25, 17:45:36)
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-21 08:46
Message:
fixed in r11413
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-21 07:28
Message:
Since python regex cannot exclude a pattern but a character only from a
regex string it is indeed just easier to change the content of these very
few pages. I just haven't an idea to solve that problem yet in an easy
manner. Maybe someone else has the time to investigate.
----------------------------------------------------------------------
Comment By: Anypodetos (anypodetos)
Date: 2013-04-21 01:55
Message:
xqt, this would mean manually going through the pages the bot is going to
edit, to replace the curly braces with HTML tags. Am I missing something?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-04 00:22
Message:
I guess it is easier to replace "{" inside the parameter field with the
corresponding hmtl tag
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3021792&group_…
Bugs item #3021792, was opened at 2010-06-26 10:36
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3021792&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: 6
Private: No
Submitted By: Anypodetos (anypodetos)
>Assigned to: Nobody/Anonymous (nobody)
Summary: templatesWithParams() misses templates
Initial Comment:
wikipedia.templatesWithParams() does not find templates if they contain curly braces. For example, {{drugbox}} on en.wikipedia.org/wiki/Semagacestat is not found, but after removing the "{" in the parameter IUPAC_name (which I tried in my sandbox), everything works fine.
output of version.py:
Pywikipedia [http] trunk/pywikipedia (r8334, 2010/06/25, 17:45:36)
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-21 07:28
Message:
Since python regex cannot exclude a pattern but a character only from a
regex string it is indeed just easier to change the content of these very
few pages. I just haven't an idea to solve that problem yet in an easy
manner. Maybe someone else has the time to investigate.
----------------------------------------------------------------------
Comment By: Anypodetos (anypodetos)
Date: 2013-04-21 01:55
Message:
xqt, this would mean manually going through the pages the bot is going to
edit, to replace the curly braces with HTML tags. Am I missing something?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-04 00:22
Message:
I guess it is easier to replace "{" inside the parameter field with the
corresponding hmtl tag
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3021792&group_…
Bugs item #3611495, was opened at 2013-04-21 05:21
Message generated for change (Tracker Item Submitted) made by nu11zer0
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611495&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
Resolution: None
Priority: 5
Private: No
Submitted By: Nullzer0 (nu11zer0)
Assigned to: Russell Blau (russblau)
Summary: error when encounter API Warning (Wikidata)
Initial Comment:
File "/home/sorawee/rewrite/pywikibot/page.py", line 2340, in editEntity
baserevid=baserevid, **kwargs)
File "/home/sorawee/rewrite/pywikibot/site.py", line 3365, in editEntity
data = req.submit()
File "/home/sorawee/rewrite/pywikibot/data/api.py", line 357, in submit
% (mod, result["warnings"][mod]["*"]))
KeyError: '*'
So I changed api.py to "% (mod, result["warnings"][mod]))", what I get is
WARNING: API warning (messages): {u'0': {u'type': u'warning', u'name': u'edit-no-change'}, u'html': {u'*': u'<p>Your edit was ignored because no change was made to the text.\n</p>'}}
----
Pywikibot branches/rewrite/ (r11404, 2013/04/21, 09:25:43, OUTDATED)
Python 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2]
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611495&group_…
Bugs item #3611198, was opened at 2013-04-17 06:32
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611198&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: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: xqt (xqt)
Summary: strange cosmetic changes
Initial Comment:
My bot did some strange edits when in article was sequence {{0}}number{{0}}
see:
http://cs.wikipedia.org/w/index.php?title=Bo%C5%99ek_Do%C4%8Dkal&diff=prev&…http://cs.wikipedia.org/w/index.php?title=Boris_Tur%C4%8D%C3%A1k&diff=10219…
I experimented and found, that it is caused by combination of
self.putSpacesInLists(text)
self.removeUselessSpaces(text)
when I disable both, this page is not changed.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-21 05:08
Message:
Problably has been fixed in r11406. This bug affects all text replacements
with textlib.replaceExcept() method and 'template' exception while nested
templates are like
{{A{{B}}{{C}}1{{D}}}} (a number between templates).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-20 10:20
Message:
both methods temporary disabled
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611198&group_…
Bugs item #3021792, was opened at 2010-06-26 10:36
Message generated for change (Comment added) made by anypodetos
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3021792&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: 6
Private: No
Submitted By: Anypodetos (anypodetos)
Assigned to: xqt (xqt)
Summary: templatesWithParams() misses templates
Initial Comment:
wikipedia.templatesWithParams() does not find templates if they contain curly braces. For example, {{drugbox}} on en.wikipedia.org/wiki/Semagacestat is not found, but after removing the "{" in the parameter IUPAC_name (which I tried in my sandbox), everything works fine.
output of version.py:
Pywikipedia [http] trunk/pywikipedia (r8334, 2010/06/25, 17:45:36)
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
----------------------------------------------------------------------
Comment By: Anypodetos (anypodetos)
Date: 2013-04-21 01:55
Message:
xqt, this would mean manually going through the pages the bot is going to
edit, to replace the curly braces with HTML tags. Am I missing something?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2013-04-04 00:22
Message:
I guess it is easier to replace "{" inside the parameter field with the
corresponding hmtl tag
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3021792&group_…
Bugs item #3611098, was opened at 2013-04-16 12:02
Message generated for change (Comment added) made by multichill
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611098&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
Resolution: None
Priority: 5
Private: No
Submitted By: Multichill (multichill)
Assigned to: Legoktm (legoktm)
Summary: TypeError: categorymembers() got an unexpected keyword argum
Initial Comment:
C:\pywikipedia_rewrite\scripts>claimit.py -cat:Haarlem P123 Q123
Traceback (most recent call last):
File "C:\pywikipedia_rewrite\scripts\claimit.py", line 66, in <module>
main()
File "C:\pywikipedia_rewrite\scripts\claimit.py", line 62, in main
for page in generator:
File "C:\pywikipedia_rewrite\pywikibot\pagegenerators.py", line 741, in Duplic
ateFilterPageGenerator
for page in generator:
File "C:\pywikipedia_rewrite\pywikibot\pagegenerators.py", line 615, in Catego
rizedPageGenerator
for a in category.site.categorymembers(category, **kwargs):
TypeError: categorymembers() got an unexpected keyword argument 'recurse'
----------------------------------------------------------------------
>Comment By: Multichill (multichill)
Date: 2013-04-20 13:46
Message:
Bot was unusable. Workaround applied, see
http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11401
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3611098&group_…
Bugs item #3610818, was opened at 2013-04-14 02:25
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610818&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: weblinkchecker
Group: trunk
>Status: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Harmen (harmenhuizinga)
Assigned to: Amir (amird)
Summary: urls ending on a ) incorrectly parsed
Initial Comment:
$ python version.pyPywikipedia [http] trunk/pywikipedia (r11368, 2013/04/13, 08:16:45, ok)
Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
Weblinks with an ) at the end of the url are handled incorrect by weblinkchecker. That means that the ) is stripped from the url. See example:
$ python weblinkchecker.py -lang:nl -page:Gebruiker:Smile4ever/test
Getting 1 page from wikipedia:nl...
Waiting for remaining 1 threads to finish, please wait...
*[[Gebruiker:Smile4ever/test]] links to http://nl.wikipedia.org/wiki/Koe_(rund - 404 Not Found.
Saving history...
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2013-04-20 10:39
Message:
reopened due to patch # 3455789, committed code r9797
----------------------------------------------------------------------
Comment By: Harmen (harmenhuizinga)
Date: 2013-04-17 09:54
Message:
Now it works for me. Thanks.
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-04-17 08:53
Message:
I made r11378 to fix it, please test it again
I removed parenthesis per http://www.ietf.org/rfc/rfc2396.txt which has
considered ")" as a unreserved character (means using ")" at end of the URL
causes no harm and It's possible)
but maybe I'm wrong which means we should do another way (percent-encoding
urls before sending it this URL compiler)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3610818&group_…