Bugs item #3201240, was opened at 2011-03-06 13:35
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3201240&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: Invalid
Priority: 5
Private: No
Submitted By: Adrián Chaves Fernández (gallaecio)
>Assigned to: xqt (xqt)
Summary: -subcat: not working
Initial Comment:
When using -subcat with replace.py in gl.wiktionary I get this:
[chaves@afonsox shyde]$ python replace.py -subcat:"Galego" -fix:"toponimia"
unicode test: triggers problem #3081100
Traceback (most recent call last):
File "replace.py", line 861, in <module>
main()
File "replace.py", line 701, in main
raise pywikibot.Error, 'require even number of replacements.'
pywikibot.exceptions.Error: require even number of replacements.
[chaves@afonsox shyde]$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9021, 2011/03/05, 11:11:39)
Python 2.7.1 (r271:86832, Dec 20 2010, 19:32:02)
[GCC 4.5.1]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-03-06 14:57
Message:
This command is not known.
use -subcats:"Galego"
instead (with ending "s")
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3201240&group_…
Bugs item #3201240, was opened at 2011-03-06 13:35
Message generated for change (Tracker Item Submitted) made by gallaecio
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3201240&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: Adrián Chaves Fernández (gallaecio)
Assigned to: Nobody/Anonymous (nobody)
Summary: -subcat: not working
Initial Comment:
When using -subcat with replace.py in gl.wiktionary I get this:
[chaves@afonsox shyde]$ python replace.py -subcat:"Galego" -fix:"toponimia"
unicode test: triggers problem #3081100
Traceback (most recent call last):
File "replace.py", line 861, in <module>
main()
File "replace.py", line 701, in main
raise pywikibot.Error, 'require even number of replacements.'
pywikibot.exceptions.Error: require even number of replacements.
[chaves@afonsox shyde]$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9021, 2011/03/05, 11:11:39)
Python 2.7.1 (r271:86832, Dec 20 2010, 19:32:02)
[GCC 4.5.1]
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=3201240&group_…
Bugs item #2824848, was opened at 2009-07-21 17:57
Message generated for change (Comment added) made by silvonen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2824848&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: Works For Me
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: category.py does not show authors in edit summary
Initial Comment:
When I move categories with "category.py move", the authors of the old category are not always shown in the edit summary of the new category. This used to happen only every now and then, but now it is happening all the time. Some examples:
http://fi.wikipedia.org/w/index.php?title=Toiminnot%3AUudet_sivut&namespace…
There should be a list of authors after the text "Muokkaajat:". Is this some sort of truncation problem or a bug?
> python version.py
Pywikipedia [http] trunk/pywikipedia (r7082, 2009/07/20, 18:48:08)
Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: Mikko Silvonen (silvonen)
Date: 2011-03-06 10:26
Message:
Closing the bug, as I haven't seen this problem for a while.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2824848&group_…
Bugs item #3199823, was opened at 2011-03-04 19:00
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&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: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: redirect.py crash: TypeError: __import__() takes no...
Initial Comment:
redirect.py immediately crashes with:
$ sudo python redirect.py broken
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 713, in run
self.delete_broken_redirects()
File "redirect.py", line 484, in delete_broken_redirects
reason = i18n.twtranslate(self.site, reason_broken)
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]), package).msg
TypeError: __import__() takes no keyword arguments
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9018, 2011/03/02, 06:46:39)
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-03-05 17:04
Message:
Ah, that is annoying indeed. The logging issue is a bug though, I think -
there should be a config option to set the path to store the logs.
By the way - were you using the rewrite on python 2.4 before? If it worked
before, this might be a reason to write a compatibility layer or something
like that.
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-03-04 20:38
Message:
Thanks for your note. Python 2.4 is the standard issue on CentOS 5 Linux,
so it may be a while before we can upgrade our machines.
As for "sudo", thanks for your comment & concern. The sudo is necessary
because Pywikipedia is installed in /usr/local/pywikipedia and it writes
its logs to /usr/local/pywkipedia/logs, which is protected.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-03-04 20:26
Message:
Hi Daniel,
This parameter was added in python 2.5. As far as I know, no steps have
been taken in the rewrite to ensure python <= 2.4 compatibility -- you will
probably run into more problems, even if this specific issue is fixed. I
would strongly suggest upgrading to 2.5.
As a secondary note - why are you using 'sudo python'? Pywikipediabot has
not been written to be 'safe to use as root' - there might be bugs that
will allow an attacker to take over your computer if you run it as root.
Best regards,
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-03-04 19:02
Message:
"python redirect.py double" also crashes:
$ sudo python redirect.py double
Retrieving special page...
Retrieved 107 redirects from special page.
>>> ASP.Net precompile <<<
Links to: [[ASP.Net precompiler]].
Links to: [[ASP.Net precompilation]].
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 711, in run
self.fix_double_redirects()
File "redirect.py", line 539, in fix_double_redirects
self.fix_1_double_redirect(redir_name)
File "redirect.py", line 664, in fix_1_double_redirect
summary = i18n.twtranslate(self.site, msg_double) \
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in
twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]),
package).msg
TypeError: __import__() takes no keyword arguments
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&group_…
Bugs item #3172883, was opened at 2011-02-04 19:04
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3172883&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Doug (bewareofdoug)
Assigned to: Nobody/Anonymous (nobody)
Summary: djvutext.py needs update
Initial Comment:
Currently djvutext.py will place {{blank page}} on en.ws; {{blank page}} is deprecated and the template has been deleted. The correct action on en.ws is to place nothing on the body of the page and add "<pagequality level="0" user="Foo" />" (replacing Foo with the name of the bot) in the header above the <div class= >.
Report output:
Pywikipedia [http] trunk/pywikipedia (r8823, 2011/01/11, 13:24:20)
Python 2.5.1 (r251:54863, Sep 1 2010, 22:03:14)
[GCC 4.0.1 (Apple Inc. build 5465)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-03-05 11:59
Message:
done in r9019, r9020
----------------------------------------------------------------------
Comment By: John Vandenberg (zeroj)
Date: 2011-03-05 08:28
Message:
I've fixed this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3172883&group_…
Bugs item #3172883, was opened at 2011-02-05 05:04
Message generated for change (Comment added) made by zeroj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3172883&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: Doug (bewareofdoug)
Assigned to: Nobody/Anonymous (nobody)
Summary: djvutext.py needs update
Initial Comment:
Currently djvutext.py will place {{blank page}} on en.ws; {{blank page}} is deprecated and the template has been deleted. The correct action on en.ws is to place nothing on the body of the page and add "<pagequality level="0" user="Foo" />" (replacing Foo with the name of the bot) in the header above the <div class= >.
Report output:
Pywikipedia [http] trunk/pywikipedia (r8823, 2011/01/11, 13:24:20)
Python 2.5.1 (r251:54863, Sep 1 2010, 22:03:14)
[GCC 4.0.1 (Apple Inc. build 5465)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
Comment By: John Vandenberg (zeroj)
Date: 2011-03-05 18:28
Message:
I've fixed this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3172883&group_…
Bugs item #3199823, was opened at 2011-03-04 13:00
Message generated for change (Comment added) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&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: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: redirect.py crash: TypeError: __import__() takes no...
Initial Comment:
redirect.py immediately crashes with:
$ sudo python redirect.py broken
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 713, in run
self.delete_broken_redirects()
File "redirect.py", line 484, in delete_broken_redirects
reason = i18n.twtranslate(self.site, reason_broken)
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]), package).msg
TypeError: __import__() takes no keyword arguments
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9018, 2011/03/02, 06:46:39)
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Daniel Barrett (djbarrett)
Date: 2011-03-04 14:38
Message:
Thanks for your note. Python 2.4 is the standard issue on CentOS 5 Linux,
so it may be a while before we can upgrade our machines.
As for "sudo", thanks for your comment & concern. The sudo is necessary
because Pywikipedia is installed in /usr/local/pywikipedia and it writes
its logs to /usr/local/pywkipedia/logs, which is protected.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-03-04 14:26
Message:
Hi Daniel,
This parameter was added in python 2.5. As far as I know, no steps have
been taken in the rewrite to ensure python <= 2.4 compatibility -- you will
probably run into more problems, even if this specific issue is fixed. I
would strongly suggest upgrading to 2.5.
As a secondary note - why are you using 'sudo python'? Pywikipediabot has
not been written to be 'safe to use as root' - there might be bugs that
will allow an attacker to take over your computer if you run it as root.
Best regards,
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-03-04 13:02
Message:
"python redirect.py double" also crashes:
$ sudo python redirect.py double
Retrieving special page...
Retrieved 107 redirects from special page.
>>> ASP.Net precompile <<<
Links to: [[ASP.Net precompiler]].
Links to: [[ASP.Net precompilation]].
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 711, in run
self.fix_double_redirects()
File "redirect.py", line 539, in fix_double_redirects
self.fix_1_double_redirect(redir_name)
File "redirect.py", line 664, in fix_1_double_redirect
summary = i18n.twtranslate(self.site, msg_double) \
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in
twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]),
package).msg
TypeError: __import__() takes no keyword arguments
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&group_…
Bugs item #3199823, was opened at 2011-03-04 19:00
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&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: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: redirect.py crash: TypeError: __import__() takes no...
Initial Comment:
redirect.py immediately crashes with:
$ sudo python redirect.py broken
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 713, in run
self.delete_broken_redirects()
File "redirect.py", line 484, in delete_broken_redirects
reason = i18n.twtranslate(self.site, reason_broken)
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]), package).msg
TypeError: __import__() takes no keyword arguments
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9018, 2011/03/02, 06:46:39)
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-03-04 20:26
Message:
Hi Daniel,
This parameter was added in python 2.5. As far as I know, no steps have
been taken in the rewrite to ensure python <= 2.4 compatibility -- you will
probably run into more problems, even if this specific issue is fixed. I
would strongly suggest upgrading to 2.5.
As a secondary note - why are you using 'sudo python'? Pywikipediabot has
not been written to be 'safe to use as root' - there might be bugs that
will allow an attacker to take over your computer if you run it as root.
Best regards,
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-03-04 19:02
Message:
"python redirect.py double" also crashes:
$ sudo python redirect.py double
Retrieving special page...
Retrieved 107 redirects from special page.
>>> ASP.Net precompile <<<
Links to: [[ASP.Net precompiler]].
Links to: [[ASP.Net precompilation]].
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 711, in run
self.fix_double_redirects()
File "redirect.py", line 539, in fix_double_redirects
self.fix_1_double_redirect(redir_name)
File "redirect.py", line 664, in fix_1_double_redirect
summary = i18n.twtranslate(self.site, msg_double) \
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in
twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]),
package).msg
TypeError: __import__() takes no keyword arguments
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&group_…
Bugs item #3199823, was opened at 2011-03-04 13:00
Message generated for change (Settings changed) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&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: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
>Summary: redirect.py crash: TypeError: __import__() takes no...
Initial Comment:
redirect.py immediately crashes with:
$ sudo python redirect.py broken
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 713, in run
self.delete_broken_redirects()
File "redirect.py", line 484, in delete_broken_redirects
reason = i18n.twtranslate(self.site, reason_broken)
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]), package).msg
TypeError: __import__() takes no keyword arguments
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9018, 2011/03/02, 06:46:39)
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-03-04 13:02
Message:
"python redirect.py double" also crashes:
$ sudo python redirect.py double
Retrieving special page...
Retrieved 107 redirects from special page.
>>> ASP.Net precompile <<<
Links to: [[ASP.Net precompiler]].
Links to: [[ASP.Net precompilation]].
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 711, in run
self.fix_double_redirects()
File "redirect.py", line 539, in fix_double_redirects
self.fix_1_double_redirect(redir_name)
File "redirect.py", line 664, in fix_1_double_redirect
summary = i18n.twtranslate(self.site, msg_double) \
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in
twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]),
package).msg
TypeError: __import__() takes no keyword arguments
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&group_…
Bugs item #3199823, was opened at 2011-03-04 13:00
Message generated for change (Comment added) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&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: Daniel Barrett (djbarrett)
Assigned to: Nobody/Anonymous (nobody)
Summary: redirect.py: TypeError: __import__() takes no keyword argume
Initial Comment:
redirect.py immediately crashes with:
$ sudo python redirect.py broken
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 713, in run
self.delete_broken_redirects()
File "redirect.py", line 484, in delete_broken_redirects
reason = i18n.twtranslate(self.site, reason_broken)
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]), package).msg
TypeError: __import__() takes no keyword arguments
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9018, 2011/03/02, 06:46:39)
Python 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Daniel Barrett (djbarrett)
Date: 2011-03-04 13:02
Message:
"python redirect.py double" also crashes:
$ sudo python redirect.py double
Retrieving special page...
Retrieved 107 redirects from special page.
>>> ASP.Net precompile <<<
Links to: [[ASP.Net precompiler]].
Links to: [[ASP.Net precompilation]].
Traceback (most recent call last):
File "redirect.py", line 799, in ?
main()
File "redirect.py", line 795, in main
bot.run()
File "redirect.py", line 711, in run
self.fix_double_redirects()
File "redirect.py", line 539, in fix_double_redirects
self.fix_1_double_redirect(redir_name)
File "redirect.py", line 664, in fix_1_double_redirect
summary = i18n.twtranslate(self.site, msg_double) \
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 220, in
twtranslate
transdict = getattr(__import__("i18n", fromlist=[package]),
package).msg
TypeError: __import__() takes no keyword arguments
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3199823&group_…