Bugs item #3465680, was opened at 2011-12-26 13:47
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3465680&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: interwiki
Group: None
Status: Open
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Yevhen Movsesov ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Cosmetic_changes.py deletes cross wiki-links
Initial Comment:
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
1. I ran in RU-wiki one command:
python /home/$USERNAME/pywiki/cosmetic_changes.py -lang:ru -always -file:/tmp/somefile
2. File "/tmp/somefile" contain list of articles for processing
Struthiomimus
QoS
3. For article "Struthiomimus" in RU-wiki I see, that it was deleted EN cross-link
[[en:Steveville|Steveville]]
https://secure.wikimedia.org/wikipedia/ru/w/index.php?title=Struthiomimus&d…
4. I think, that cosmetic_changes.py should not deletes cross-links to other wikis.
----------------------------------------------------------------------
>Comment By: Yevhen Movsesov ()
Date: 2011-12-26 22:59
Message:
It seems, it the same issue as
https://sourceforge.net/tracker/?func=detail&aid=3012516&group_id=93107&ati…
----------------------------------------------------------------------
Comment By: Yevhen Movsesov ()
Date: 2011-12-26 22:48
Message:
Error with "standardizePageFooter".
When I comment line
# text = self.standardizePageFooter(text)
in file cosmetic_changes.py
then I can't reproduce error.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3465680&group_…
Bugs item #3465680, was opened at 2011-12-26 13:47
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3465680&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: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Yevhen Movsesov ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Cosmetic_changes.py deletes cross wiki-links
Initial Comment:
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
1. I ran in RU-wiki one command:
python /home/$USERNAME/pywiki/cosmetic_changes.py -lang:ru -always -file:/tmp/somefile
2. File "/tmp/somefile" contain list of articles for processing
Struthiomimus
QoS
3. For article "Struthiomimus" in RU-wiki I see, that it was deleted EN cross-link
[[en:Steveville|Steveville]]
https://secure.wikimedia.org/wikipedia/ru/w/index.php?title=Struthiomimus&d…
4. I think, that cosmetic_changes.py should not deletes cross-links to other wikis.
----------------------------------------------------------------------
>Comment By: Yevhen Movsesov ()
Date: 2011-12-26 22:48
Message:
Error with "standardizePageFooter".
When I comment line
# text = self.standardizePageFooter(text)
in file cosmetic_changes.py
then I can't reproduce error.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3465680&group_…
Bugs item #3465680, was opened at 2011-12-26 13:47
Message generated for change (Tracker Item Submitted) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3465680&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: Yevhen Movsesov ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Cosmetic_changes.py deletes cross wiki-links
Initial Comment:
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
1. I ran in RU-wiki one command:
python /home/$USERNAME/pywiki/cosmetic_changes.py -lang:ru -always -file:/tmp/somefile
2. File "/tmp/somefile" contain list of articles for processing
Struthiomimus
QoS
3. For article "Struthiomimus" in RU-wiki I see, that it was deleted EN cross-link
[[en:Steveville|Steveville]]
https://secure.wikimedia.org/wikipedia/ru/w/index.php?title=Struthiomimus&d…
4. I think, that cosmetic_changes.py should not deletes cross-links to other wikis.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3465680&group_…
Patches item #3465147, was opened at 2011-12-24 22:36
Message generated for change (Tracker Item Submitted) made by ganz-ru
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3465147&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: GanZ (ganz-ru)
Assigned to: Nobody/Anonymous (nobody)
Summary: featured.py: category in ru.wiki
Initial Comment:
Diff contains more proper category of good articles in russian wikipedia. The category "Википедия:Хорошие статьи" contains only 271 articles, but today there are 1238 good articles in Ru.Wiki.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3465147&group_…
Bugs item #3463037, was opened at 2011-12-20 10:40
Message generated for change (Comment added) made by a1carter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3463037&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: None
Priority: 5
Private: No
Submitted By: ACarter (a1carter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't create pages with ":" in title, namespaces
Initial Comment:
I am creating pages in a "Review:" namespace.
My script just adds "Review:" infront of the page title. (The line of code is this : "newtitle = "Review:"+pagetitle")
When I try to do so, I get this:
File;C:\..\..\wikipedia.py, line 317, in _init_ raise InvalidTitle(u"Invalid title '%s'" % title) pywikibot.exceptions.InvalidTitle: Invalid title ':'
I'm on r9782 (28 Nov)
Thanks
----------------------------------------------------------------------
Comment By: ACarter (a1carter)
Date: 2011-12-22 03:50
Message:
So it was an error my side?
Ok sorry. :(
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-12-21 07:48
Message:
Thanks for posting your code. This is what happens:
newtitles = pagetitle # = 'Amsterdam'
newtitles2 = 'Review:'+newtitles # = 'Review:Amsterdam'
newredirects = [wikipedia.Page(mysite, title) for title in
newtitles2 ] # = [wikipedia.Page(mysite, title) for title in
'Review:Amsterdam'] = [wikipedia.Page(mysite, title) for title in ['R',
'e', 'v', 'i', 'e', 'w', ':', 'A', ...]]
which tries to create a Page object Page(mysite, ':'), which is obviously
illegal.
I'm not quite sure how your code is /supposed/ to work, but hopefully this
helps to understand what happens and how to prevent it.
----------------------------------------------------------------------
Comment By: ACarter (a1carter)
Date: 2011-12-21 01:07
Message:
Yes, sorry about that.
Same error with the latest release:
Traceback (most recent call last):
File "C:\...\...\create_reviews.py", line 47, in <module>
newredirects = [wikipedia.Page(mysite, title) for title in newtitles2 ]
File "C:\...\...\wikipedia.py", line 317, in __init__
raise InvalidTitle(u"Invalid title '%s'" % title )
pywikibot.exceptions.InvalidTitle: Invalid title ':'
My script:
pagetitle = page.title()
# condition for pages
if pagetitle.find(" ") > 0:
# new pges
newtitles = pagetitle
newtitles2 = 'Review:'+newtitles
suggestions = [">>> %s <<<" % x for x in newtitles2]
newredirects = [wikipedia.Page(mysite, title) for title in
newtitles2 ]
I am working on a Wikia wiki, in english.
Thanks, and sorry about that.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-12-20 13:16
Message:
Please update first to check if the bug is fixed in a more recent release.
Secondly, please post complete stack traces, *and* the relevant code in
your script
Thirdly, please check what the parameters are you are sending to the Page
object. What is the exact page title that causes this problem, what other
parameters are sent, on which wiki are you working? which language?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3463037&group_…
Bugs item #3386958, was opened at 2011-08-05 12:01
Message generated for change (Comment added) made by dabzzz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3386958&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: confirmed
Status: Open
Resolution: None
Priority: 3
Private: No
Submitted By: Bzzz (dabzzz)
Assigned to: Doug (bewareofdoug)
Summary: add_text.py crashes for some uses of -cat
Initial Comment:
Crashes without further information; works correct on category without umlaut in it. Happens on my bot account at de.hardware-wiki.org
python add_text.py -cat -text:someveryimportantmessage -up -verbose
Config.py
- base_dir: /home/bzzz/.pywikipedia
- done.
Pywikipediabot [http] trunk/pywikipedia (r9430, 2011/08/04, 08:15:02)
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2]
Please enter the category name: Festplatten nach Größe
Getting [[Kategorie:Festplatten nach Größe]]... <--exists, has subcategories and is categorized
==== API action:query ====
cmprop: title|ids|sortkey|timestamp
list: categorymembers
cmlimit: 500
cmtitle: Kategorie:Festplatten nach Größe
----------------
Requesting API query from HardwareWiki:de
[End]
Same happens if the working category is given via -cat:Festplatten_nach_Größe or within "".
pywikipediabot is at latest svn version (9430, simplejson 242), working on Kubuntu 11.04 Natty with 2.6.38-10-generic kernel; python version.py yields:
Pywikipedia [http] trunk/pywikipedia (r9430, 2011/08/04, 08:15:02)
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Bzzz (dabzzz)
Date: 2011-12-21 15:30
Message:
Well, the ß may be part of the problem. Same problem exists on cats like
"Kategorie:SSDs nach Größe" (42 sub categories) or "Gehäuse nach
Größe" (21 sc).
However, "GPU-Kühler nach Kompatibilität" (155 sc) also fails, but has no
eszett in it. "Kühler für AMD Sockel AM3" (97 sc) works...
----------------------------------------------------------------------
Comment By: Doug (bewareofdoug)
Date: 2011-12-21 14:52
Message:
The problem is not with umlauts per se, I have tested (r9811) on botwiki
and de.hardware-wiki.org and can use both:
python add_text.py -cat -text:someevenmoreimportantmessage -up -v
with the category: Für_Prüfung
and
python add_text.py -cat:Für_Prüfung -text:someveryimportantmessage -up
-v
without difficulty in my bot's userspace
But I can replicate the above termination using the same cat on that wiki.
I note that the category has 40 subcats and several hundred pages. I also
note that the above cat also contains an esszet.
Reducing to priority 3 as this is the only reported instance and it would
appear to have a relatively minor impact (replace.py should work in lieu of
add_text.py)
Assigning to self to investigate further.
It would be useful if the reporter could give more information on examples
of cats where this worked (eg. did it work with esszet, did it work on
similar sized cats, etc.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3386958&group_…
Bugs item #3413744, was opened at 2011-09-25 04:54
Message generated for change (Comment added) made by bewareofdoug
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3413744&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: interwiki
Group: None
Status: Open
Resolution: None
>Priority: 7
Private: No
Submitted By: Toto Azéro (toto-azero)
>Assigned to: Doug (bewareofdoug)
Summary: bug with section titles in interwiki.py
Initial Comment:
There is a bug with the interwiki.py script : when the bot finds out an interwiki-link which must be deleted (without -force or -cleanup options), and when this link is at the end of a section, the bot destroys the next section.
See this for example : http://ja.wikipedia.org/w/index.php?title=ヘンリー銃&diff=37754031&oldid=37738852
Although this diff is quite old, this bug is still present in the script (I've made an try to check : see http://fr.wikipedia.org/w/index.php?diff=70277802).
--------------------
python version.py
Pywikipedia [http] trunk/pywikipedia (r9543, 2011/09/25, 09:08:55)
Python 2.7.1 (r271:86832, Jan 4 2011, 13:57:14)
[GCC 4.5.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Doug (bewareofdoug)
Date: 2011-12-21 15:20
Message:
Upping the priority and assigning to myself at least for investigation
purposes, this would seem to be a significant issue.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3413744&group_…
Bugs item #3386958, was opened at 2011-08-05 12:01
Message generated for change (Comment added) made by bewareofdoug
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3386958&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: confirmed
Status: Open
Resolution: None
>Priority: 3
Private: No
Submitted By: Bzzz (dabzzz)
>Assigned to: Doug (bewareofdoug)
>Summary: add_text.py crashes for some uses of -cat
Initial Comment:
Crashes without further information; works correct on category without umlaut in it. Happens on my bot account at de.hardware-wiki.org
python add_text.py -cat -text:someveryimportantmessage -up -verbose
Config.py
- base_dir: /home/bzzz/.pywikipedia
- done.
Pywikipediabot [http] trunk/pywikipedia (r9430, 2011/08/04, 08:15:02)
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2]
Please enter the category name: Festplatten nach Größe
Getting [[Kategorie:Festplatten nach Größe]]... <--exists, has subcategories and is categorized
==== API action:query ====
cmprop: title|ids|sortkey|timestamp
list: categorymembers
cmlimit: 500
cmtitle: Kategorie:Festplatten nach Größe
----------------
Requesting API query from HardwareWiki:de
[End]
Same happens if the working category is given via -cat:Festplatten_nach_Größe or within "".
pywikipediabot is at latest svn version (9430, simplejson 242), working on Kubuntu 11.04 Natty with 2.6.38-10-generic kernel; python version.py yields:
Pywikipedia [http] trunk/pywikipedia (r9430, 2011/08/04, 08:15:02)
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Doug (bewareofdoug)
Date: 2011-12-21 14:52
Message:
The problem is not with umlauts per se, I have tested (r9811) on botwiki
and de.hardware-wiki.org and can use both:
python add_text.py -cat -text:someevenmoreimportantmessage -up -v
with the category: Für_Prüfung
and
python add_text.py -cat:Für_Prüfung -text:someveryimportantmessage -up
-v
without difficulty in my bot's userspace
But I can replicate the above termination using the same cat on that wiki.
I note that the category has 40 subcats and several hundred pages. I also
note that the above cat also contains an esszet.
Reducing to priority 3 as this is the only reported instance and it would
appear to have a relatively minor impact (replace.py should work in lieu of
add_text.py)
Assigning to self to investigate further.
It would be useful if the reporter could give more information on examples
of cats where this worked (eg. did it work with esszet, did it work on
similar sized cats, etc.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3386958&group_…
Bugs item #3463037, was opened at 2011-12-20 10:40
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3463037&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: None
Priority: 5
Private: No
Submitted By: ACarter (a1carter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't create pages with ":" in title, namespaces
Initial Comment:
I am creating pages in a "Review:" namespace.
My script just adds "Review:" infront of the page title. (The line of code is this : "newtitle = "Review:"+pagetitle")
When I try to do so, I get this:
File;C:\..\..\wikipedia.py, line 317, in _init_ raise InvalidTitle(u"Invalid title '%s'" % title) pywikibot.exceptions.InvalidTitle: Invalid title ':'
I'm on r9782 (28 Nov)
Thanks
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-12-21 07:48
Message:
Thanks for posting your code. This is what happens:
newtitles = pagetitle # = 'Amsterdam'
newtitles2 = 'Review:'+newtitles # = 'Review:Amsterdam'
newredirects = [wikipedia.Page(mysite, title) for title in
newtitles2 ] # = [wikipedia.Page(mysite, title) for title in
'Review:Amsterdam'] = [wikipedia.Page(mysite, title) for title in ['R',
'e', 'v', 'i', 'e', 'w', ':', 'A', ...]]
which tries to create a Page object Page(mysite, ':'), which is obviously
illegal.
I'm not quite sure how your code is /supposed/ to work, but hopefully this
helps to understand what happens and how to prevent it.
----------------------------------------------------------------------
Comment By: ACarter (a1carter)
Date: 2011-12-21 01:07
Message:
Yes, sorry about that.
Same error with the latest release:
Traceback (most recent call last):
File "C:\...\...\create_reviews.py", line 47, in <module>
newredirects = [wikipedia.Page(mysite, title) for title in newtitles2 ]
File "C:\...\...\wikipedia.py", line 317, in __init__
raise InvalidTitle(u"Invalid title '%s'" % title )
pywikibot.exceptions.InvalidTitle: Invalid title ':'
My script:
pagetitle = page.title()
# condition for pages
if pagetitle.find(" ") > 0:
# new pges
newtitles = pagetitle
newtitles2 = 'Review:'+newtitles
suggestions = [">>> %s <<<" % x for x in newtitles2]
newredirects = [wikipedia.Page(mysite, title) for title in
newtitles2 ]
I am working on a Wikia wiki, in english.
Thanks, and sorry about that.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-12-20 13:16
Message:
Please update first to check if the bug is fixed in a more recent release.
Secondly, please post complete stack traces, *and* the relevant code in
your script
Thirdly, please check what the parameters are you are sending to the Page
object. What is the exact page title that causes this problem, what other
parameters are sent, on which wiki are you working? which language?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3463037&group_…
Bugs item #3463037, was opened at 2011-12-20 10:40
Message generated for change (Comment added) made by a1carter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3463037&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: ACarter (a1carter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't create pages with ":" in title, namespaces
Initial Comment:
I am creating pages in a "Review:" namespace.
My script just adds "Review:" infront of the page title. (The line of code is this : "newtitle = "Review:"+pagetitle")
When I try to do so, I get this:
File;C:\..\..\wikipedia.py, line 317, in _init_ raise InvalidTitle(u"Invalid title '%s'" % title) pywikibot.exceptions.InvalidTitle: Invalid title ':'
I'm on r9782 (28 Nov)
Thanks
----------------------------------------------------------------------
>Comment By: ACarter (a1carter)
Date: 2011-12-21 01:07
Message:
Yes, sorry about that.
Same error with the latest release:
Traceback (most recent call last):
File "C:\...\...\create_reviews.py", line 47, in <module>
newredirects = [wikipedia.Page(mysite, title) for title in newtitles2 ]
File "C:\...\...\wikipedia.py", line 317, in __init__
raise InvalidTitle(u"Invalid title '%s'" % title )
pywikibot.exceptions.InvalidTitle: Invalid title ':'
My script:
pagetitle = page.title()
# condition for pages
if pagetitle.find(" ") > 0:
# new pges
newtitles = pagetitle
newtitles2 = 'Review:'+newtitles
suggestions = [">>> %s <<<" % x for x in newtitles2]
newredirects = [wikipedia.Page(mysite, title) for title in
newtitles2 ]
I am working on a Wikia wiki, in english.
Thanks, and sorry about that.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-12-20 13:16
Message:
Please update first to check if the bug is fixed in a more recent release.
Secondly, please post complete stack traces, *and* the relevant code in
your script
Thirdly, please check what the parameters are you are sending to the Page
object. What is the exact page title that causes this problem, what other
parameters are sent, on which wiki are you working? which language?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3463037&group_…