Bugs item #2780178, was opened at 2009-04-24 09:12
Message generated for change (Comment added) made by multichill
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2780178&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: v1.0 (example)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: newimages() error
Initial Comment:
newimages() on wikipedia.py, use repeat = True, can't agian load new images.
----------------------------------------------------------------------
>Comment By: Multichill (multichill)
Date: 2009-05-06 13:58
Message:
If you have fixed this bug could you please mark it as fixed and close it?
----------------------------------------------------------------------
Comment By: shizhao (wikishizhao)
Date: 2009-04-27 15:07
Message:
have fix! r6736
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2780178&group_…
Bugs item #2787059, was opened at 2009-05-05 08:57
Message generated for change (Settings changed) made by multichill
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2787059&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: siebrand (siebrand)
Assigned to: Multichill (multichill)
Summary: Commonscat: crashes on template with '=' parameters
Initial Comment:
To reproduce: python commonscat.py -lang:ja -start:Category:鉄
This page contains the following template code:
{{Commonscat
|ページ名=Iron
|タイトル=Iron
|追加1=Steel
|タイトル1=Steel
}}
Results in:
siebrand@v05-s341:~/nl$ nice python commonscat.py -lang:ja -start:Category:鉄
WARNING: Configuration variable 'language' is defined but unknown. Misspelled?
Getting 60 pages from wikipedia:ja...
Working on Category:鉄
Commonscat template is already on Category:鉄
NOTE: You have new messages on commons:commons
Traceback (most recent call last):
File "commonscat.py", line 364, in <module>
main()
File "commonscat.py", line 360, in main
(status, always) = addCommonscat(page, summary, always)
File "commonscat.py", line 227, in addCommonscat
checkedCommonscat = checkCommonscatLink(currentCommonscat)
File "commonscat.py", line 303, in checkCommonscatLink
if not commonsPage.exists():
File "/home/siebrand/nl/wikipedia.py", line 896, in exists
self.get()
File "/home/siebrand/nl/wikipedia.py", line 681, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "/home/siebrand/nl/wikipedia.py", line 746, in _getEditPage
raise BadTitle('BadTitle: %s' % self)
]]kipedia.BadTitle: BadTitle: [[commons:Category:ページ名=Iron
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-05-06 13:50
Message:
6840 that is.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-05-06 13:49
Message:
Fixed in r...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2787059&group_…
Bugs item #2787059, was opened at 2009-05-05 08:57
Message generated for change (Comment added) made by multichill
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2787059&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: siebrand (siebrand)
Assigned to: Multichill (multichill)
Summary: Commonscat: crashes on template with '=' parameters
Initial Comment:
To reproduce: python commonscat.py -lang:ja -start:Category:鉄
This page contains the following template code:
{{Commonscat
|ページ名=Iron
|タイトル=Iron
|追加1=Steel
|タイトル1=Steel
}}
Results in:
siebrand@v05-s341:~/nl$ nice python commonscat.py -lang:ja -start:Category:鉄
WARNING: Configuration variable 'language' is defined but unknown. Misspelled?
Getting 60 pages from wikipedia:ja...
Working on Category:鉄
Commonscat template is already on Category:鉄
NOTE: You have new messages on commons:commons
Traceback (most recent call last):
File "commonscat.py", line 364, in <module>
main()
File "commonscat.py", line 360, in main
(status, always) = addCommonscat(page, summary, always)
File "commonscat.py", line 227, in addCommonscat
checkedCommonscat = checkCommonscatLink(currentCommonscat)
File "commonscat.py", line 303, in checkCommonscatLink
if not commonsPage.exists():
File "/home/siebrand/nl/wikipedia.py", line 896, in exists
self.get()
File "/home/siebrand/nl/wikipedia.py", line 681, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "/home/siebrand/nl/wikipedia.py", line 746, in _getEditPage
raise BadTitle('BadTitle: %s' % self)
]]kipedia.BadTitle: BadTitle: [[commons:Category:ページ名=Iron
----------------------------------------------------------------------
>Comment By: Multichill (multichill)
Date: 2009-05-06 13:50
Message:
6840 that is.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-05-06 13:49
Message:
Fixed in r...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2787059&group_…
Bugs item #2787059, was opened at 2009-05-05 08:57
Message generated for change (Comment added) made by multichill
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2787059&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: siebrand (siebrand)
Assigned to: Multichill (multichill)
Summary: Commonscat: crashes on template with '=' parameters
Initial Comment:
To reproduce: python commonscat.py -lang:ja -start:Category:鉄
This page contains the following template code:
{{Commonscat
|ページ名=Iron
|タイトル=Iron
|追加1=Steel
|タイトル1=Steel
}}
Results in:
siebrand@v05-s341:~/nl$ nice python commonscat.py -lang:ja -start:Category:鉄
WARNING: Configuration variable 'language' is defined but unknown. Misspelled?
Getting 60 pages from wikipedia:ja...
Working on Category:鉄
Commonscat template is already on Category:鉄
NOTE: You have new messages on commons:commons
Traceback (most recent call last):
File "commonscat.py", line 364, in <module>
main()
File "commonscat.py", line 360, in main
(status, always) = addCommonscat(page, summary, always)
File "commonscat.py", line 227, in addCommonscat
checkedCommonscat = checkCommonscatLink(currentCommonscat)
File "commonscat.py", line 303, in checkCommonscatLink
if not commonsPage.exists():
File "/home/siebrand/nl/wikipedia.py", line 896, in exists
self.get()
File "/home/siebrand/nl/wikipedia.py", line 681, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop)
File "/home/siebrand/nl/wikipedia.py", line 746, in _getEditPage
raise BadTitle('BadTitle: %s' % self)
]]kipedia.BadTitle: BadTitle: [[commons:Category:ページ名=Iron
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-05-06 13:49
Message:
Fixed in r...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2787059&group_…
Patches item #2783431, was opened at 2009-04-29 08:54
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2783431&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: sigmaoctantis (sigmaoctantis)
Assigned to: Nobody/Anonymous (nobody)
Summary: titles from file for pagegenerators.py
Initial Comment:
Additional option "-plainfile" reads titles from text files without square brackets ("-file")
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-05-06 13:31
Message:
Applied in r6839.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-05-02 13:59
Message:
I think I will commit this patch tomorrow with a slightly changed
docstring.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-05-01 07:08
Message:
looks good to me. I was pretty sure that some generator already allowed to
use one title per line, but I can't find it anymore. (?)
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-04-30 20:11
Message:
It is better than two separate options. I tested it and it works with files
in both formats.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-30 19:40
Message:
A preliminary patch to enhance -file option as described is attached. Any
comments?
----------------------------------------------------------------------
Comment By: sigmaoctantis (sigmaoctantis)
Date: 2009-04-30 18:14
Message:
Thanks, I updated it accordingly. Feel free to combine the two.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-30 18:09
Message:
f.readline() should be used instead of re.findall().
I think we have a too populated list of options. Probably it's better to
change -file to interpret line as page titles when no [[title]] is found,
instead of adding yet another option.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2783431&group_…
Bugs item #2776167, was opened at 2009-04-20 12:49
Message generated for change (Comment added) made by liangent
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2776167&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: liangent (liangent)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in site.py of rewrite branch
Initial Comment:
Traceback (most recent call last):
File "./archiver.py", line 7, in <module>
now = Site().getcurrenttime() # or from link's site?
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 794, in getcurrenttime
ts = self.getcurrenttimestamp()
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 789, in getcurrenttimestamp
result = r.submit()
File "/usr/lib/python2.5/site-packages/pywikibot/data/api.py", line 184, in submit
self.site.throttle(write=write)
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 176, in __getattr__
return self.__class__.attr
AttributeError: type object 'APISite' has no attribute 'attr'
----------------------------------------------------------------------
>Comment By: liangent (liangent)
Date: 2009-05-06 11:22
Message:
does the problem occur only when getting server time?
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-05-05 17:26
Message:
I have also seen this problem on rare occasions but I haven't been able to
track down the cause.
----------------------------------------------------------------------
Comment By: liangent (liangent)
Date: 2009-05-05 06:08
Message:
i didn't find any problem on self.site.throttle(write=write)
and this problem never occurred again.
(actually i didn't use Site().getcurrenttime() anymore)
but what was wrong?
----------------------------------------------------------------------
Comment By: liangent (liangent)
Date: 2009-04-20 13:32
Message:
i forgot to log in too...
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-04-20 13:30
Message:
no no no ... i met another problem, and i don't know whether it has
connection with my patch ... they seem to occur randomly ...
liangent@oiweb:~$ wiki/bot/archiver/archiver.py
Found 1 wikipedia:zh processes running, including this one.
Traceback (most recent call last):
File "wiki/bot/archiver/archiver.py", line 7, in <module>
now = Site().getcurrenttime() # or from link's site?
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 794, in
getcurrenttime
ts = self.getcurrenttimestamp()
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 789, in
getcurrenttimestamp
result = r.submit()
File "/usr/lib/python2.5/site-packages/pywikibot/data/api.py", line 184,
in submit
self.site.throttle(write=write)
TypeError: 'property' object is not callable
liangent@oiweb:~$
----------------------------------------------------------------------
Comment By: liangent (liangent)
Date: 2009-04-20 13:25
Message:
it seems problem occurs only when throttling
try to run a lot of instances to test
my code starts with
#!/usr/bin/env python
# -*- coding: utf_8 -*-
import re
import pywikibot
from pywikibot import Link, Site, Page
import datetime
now = Site().getcurrenttime()
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-04-20 13:04
Message:
Sorry, forgot to log in before last comment!
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-04-20 13:03
Message:
I'll apply this patch, but the original code works for me in Python 2.5.2:
>>> import pywikibot
>>> s = pywikibot.Site()
>>> now = s.getcurrenttime()
Found 1 wikipedia:en processes running, including this one.
>>> print now
2009-04-20T13:00:47Z
>>>
Question: in your 'archiver.py' script, did you import Site from
pywikibot, or from some other module? If you import it directly from
pywikibot.site, it won't work!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2776167&group_…
Bugs item #2785594, was opened at 2009-05-02 14:21
Message generated for change (Comment added) made by jandudik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2785594&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: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: liangent (liangent)
Assigned to: Russell Blau (russblau)
Summary: Page.backlinks cannot work well on some pages
Initial Comment:
on zhwiki,
tuple(Page(Link(u'Wikipedia:沙盒')).backlinks())
NOTE: 沙盒 means sandbox in chinese
raises exception: RuntimeError: getredirtarget: 'redirects' contains no key for page WP:SB.
NOTE: WP:SB is a redirect to Wikipedia:沙盒, and WP is a namespace alias of Wikipedia
no matter what value i use for filterRedirects parameter
i cannot find what's the problem...
----------------------------------------------------------------------
Comment By: JAn (jandudik)
Date: 2009-05-05 23:32
Message:
maybe similar problem is with the outdated namespaces:
Note: ast:Plantilla:Usuarios por idioma (en-2) is in namespace 0, but the
click redirects to Plantía:Usuarios por idioma (en-2) which is in
namespace 10
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-05-05 19:13
Message:
Fixed in r6830: this bug was caused by the fact that zhwiki (and probably
many others) contains pages in its database whose titles are like
[[WP:SB]]; the database thinks these are in namespace 0, but after they
were created the WP: prefix was changed into an alias for namespace 4.
This causes the API to treat [[WP:SB]] and [[Wikipedia:SB]] as two
different pages, even though the first one is no longer accessible through
the UI.
----------------------------------------------------------------------
Comment By: liangent (liangent)
Date: 2009-05-02 17:11
Message:
i found something abnormal
currently, WP: is an alias of Wikipedia:, however, in api query, <bl
pageid="100223" ns="0" title="WP:SB" redirect="" /> is returned.
see
http://zh.wikipedia.org/w/api.php?action=query&list=backlinks&bltitle=Wikip…
this caused the problem
i reported it here, https://bugzilla.wikimedia.org/show_bug.cgi?id=17701 ,
but should pywikibot handle this abnormal situation?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2785594&group_…
Patches item #2787026, was opened at 2009-05-05 00:49
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2787026&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: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: liangent (liangent)
Assigned to: Nobody/Anonymous (nobody)
Summary: about getting redirects
Initial Comment:
Index: pywikibot/pywikibot/page.py
===================================================================
--- pywikibot/pywikibot/page.py (revision 6823)
+++ pywikibot/pywikibot/page.py (working copy)
@@ -372,7 +372,7 @@
"""Return the current (edited) wikitext, loading it if necessary."""
if not hasattr(self, '_text') or self._text is None:
try:
- self._text = self.get()
+ self._text = self.get(get_redirect=True)
except pywikibot.NoPage:
# TODO: what other exceptions might be returned?
self._text = u""
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2009-05-05 13:28
Message:
Applied in r6832
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2787026&group_…
Bugs item #2776167, was opened at 2009-04-20 08:49
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2776167&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: liangent (liangent)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in site.py of rewrite branch
Initial Comment:
Traceback (most recent call last):
File "./archiver.py", line 7, in <module>
now = Site().getcurrenttime() # or from link's site?
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 794, in getcurrenttime
ts = self.getcurrenttimestamp()
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 789, in getcurrenttimestamp
result = r.submit()
File "/usr/lib/python2.5/site-packages/pywikibot/data/api.py", line 184, in submit
self.site.throttle(write=write)
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 176, in __getattr__
return self.__class__.attr
AttributeError: type object 'APISite' has no attribute 'attr'
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2009-05-05 13:26
Message:
I have also seen this problem on rare occasions but I haven't been able to
track down the cause.
----------------------------------------------------------------------
Comment By: liangent (liangent)
Date: 2009-05-05 02:08
Message:
i didn't find any problem on self.site.throttle(write=write)
and this problem never occurred again.
(actually i didn't use Site().getcurrenttime() anymore)
but what was wrong?
----------------------------------------------------------------------
Comment By: liangent (liangent)
Date: 2009-04-20 09:32
Message:
i forgot to log in too...
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-04-20 09:30
Message:
no no no ... i met another problem, and i don't know whether it has
connection with my patch ... they seem to occur randomly ...
liangent@oiweb:~$ wiki/bot/archiver/archiver.py
Found 1 wikipedia:zh processes running, including this one.
Traceback (most recent call last):
File "wiki/bot/archiver/archiver.py", line 7, in <module>
now = Site().getcurrenttime() # or from link's site?
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 794, in
getcurrenttime
ts = self.getcurrenttimestamp()
File "/usr/lib/python2.5/site-packages/pywikibot/site.py", line 789, in
getcurrenttimestamp
result = r.submit()
File "/usr/lib/python2.5/site-packages/pywikibot/data/api.py", line 184,
in submit
self.site.throttle(write=write)
TypeError: 'property' object is not callable
liangent@oiweb:~$
----------------------------------------------------------------------
Comment By: liangent (liangent)
Date: 2009-04-20 09:25
Message:
it seems problem occurs only when throttling
try to run a lot of instances to test
my code starts with
#!/usr/bin/env python
# -*- coding: utf_8 -*-
import re
import pywikibot
from pywikibot import Link, Site, Page
import datetime
now = Site().getcurrenttime()
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date: 2009-04-20 09:04
Message:
Sorry, forgot to log in before last comment!
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2009-04-20 09:03
Message:
I'll apply this patch, but the original code works for me in Python 2.5.2:
>>> import pywikibot
>>> s = pywikibot.Site()
>>> now = s.getcurrenttime()
Found 1 wikipedia:en processes running, including this one.
>>> print now
2009-04-20T13:00:47Z
>>>
Question: in your 'archiver.py' script, did you import Site from
pywikibot, or from some other module? If you import it directly from
pywikibot.site, it won't work!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2776167&group_…