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: Open
Resolution: None
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-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 #3605068, was opened at 2013-02-17 06:43
Message generated for change (Comment added) made by amird
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605068&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: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: please add math to txtlib.py
Initial Comment:
Hi,
Now cosmetic.py has bug for cases that they have <math> and it can not recognize <math> which is defined in line 718.
please add math to txtlib.py for solving this bug
case: http://fa.wikipedia.org/w/index.php?diff=prev&oldid=9331137
----------------------------------------------------------------------
Comment By: Amir (amird)
Date: 2013-02-20 00:53
Message:
I didn't solve the bug, actually but i made it impossible to happen:
https://www.mediawiki.org/wiki/Special:Code/pywikipedia/11089
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605068&group_…
Bugs item #3605062, was opened at 2013-02-17 06:02
Message generated for change (Comment added) made by binbot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605062&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: Tgr (tgr_)
Assigned to: Nobody/Anonymous (nobody)
Summary: pywikipediabot should use standard output
Initial Comment:
All pywikipedia messages go to standard error, making the proper running of such bots from cron very difficult. Normal messages should go to standard output, and only suprising messages (python errors, block notifications, new message notifcations) should go to standard error.
----------------------------------------------------------------------
>Comment By: Bináris (binbot)
Date: 2013-02-19 11:36
Message:
> /dev/null was invented to suppress screen output. To prevent scripts of
using this option is a misuse. Even if the script is not run from cron,
operator may wish not to see messages and his screen scrolled.
----------------------------------------------------------------------
Comment By: Tgr (tgr_)
Date: 2013-02-17 12:50
Message:
I disagree. Non-zero return value is for errors from which the application
could not recover. There might be errors or unexpected important events
which do not cause the bot to fail but should be reported nevertheless.
(For example if an interwikibot gets a talk page message on one of the many
wikis it visits, that should be reported, maybe the bot should stop working
on that wiki until the owner can check the message, but it certainly should
not stop working on all other wikis.)
If you want to show human-readable output to humans, and
machine-processable output to scripts, the proper solution for that is to
detect (via sys.stdout.isatty()) whether you are writing to a terminal, and
format accordingly (and allow overriding the behavior via a command line
switch). That is how sophisticated command line applications usually
operate; compare, for example, the output from 'ls' and 'ls | cat'.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2013-02-17 09:16
Message:
Data that can be used for further processing ('pipe') should be sent to
stdout. All messages that are only relevant for the user should be sent to
stderr. Errors should not be detected by checking if anything was written
to stderr, but by checking the return value (which will be non-zero if an
error occurred).
Basically, this is a well-known cron problem. See, for instance,
http://habilis.net/cronic/
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605062&group_…
Bugs item #3605299, was opened at 2013-02-19 07:22
Message generated for change (Comment added) made by nettrom
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: Open
Resolution: None
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: 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 #3605299, was opened at 2013-02-19 07:22
Message generated for change (Comment added) made by betacommand
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: Open
Resolution: None
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: 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 #3605299, was opened at 2013-02-19 07:22
Message generated for change (Tracker Item Submitted) made by nettrom
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: Open
Resolution: None
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605299&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: template exclusion in replaceExcept stucks
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-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 #3604180, was opened at 2013-02-11 18:42
Message generated for change (Comment added) made by betacommand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3604180&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: 7
Private: No
Submitted By: Riley ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Unicode issue running redirect.py
Initial Comment:
Hello everyone, I am having a unicode issue when running redirect.py on wikisource.org. When running the script, pywikipediabot seems to try to change the page names into english.
----------------------------------------------------------------------
Comment By: betacommand (betacommand)
Date: 2013-02-17 17:10
Message:
issue of not editing stems from an oversight about translation and '-'
wikisource. I have linked a patch which will fix the issue, might need a
little cosmetic cleanup/spacing fixes but will resolve the issue
http://toolserver.org/~betacommand/redirect.py.patch
----------------------------------------------------------------------
Comment By: Riley ()
Date: 2013-02-17 16:25
Message:
As stated in the description, I am running on "wikisource.org" and the
result is found in the attached file.
----------------------------------------------------------------------
Comment By: betacommand (betacommand)
Date: 2013-02-17 16:04
Message:
can we get some more details please? what language of wikisource are you
working on, and what are the results of version.py?
----------------------------------------------------------------------
Comment By: Riley ()
Date: 2013-02-11 18:44
Message:
I clicked save before I was done writing -.-;
As also noticed in the provided screenshot; the script doesn't save nor
give output of any kind.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3604180&group_…
Bugs item #3604180, was opened at 2013-02-11 18:42
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3604180&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: 7
Private: No
Submitted By: Riley ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Unicode issue running redirect.py
Initial Comment:
Hello everyone, I am having a unicode issue when running redirect.py on wikisource.org. When running the script, pywikipediabot seems to try to change the page names into english.
----------------------------------------------------------------------
>Comment By: Riley ()
Date: 2013-02-17 16:25
Message:
As stated in the description, I am running on "wikisource.org" and the
result is found in the attached file.
----------------------------------------------------------------------
Comment By: betacommand (betacommand)
Date: 2013-02-17 16:04
Message:
can we get some more details please? what language of wikisource are you
working on, and what are the results of version.py?
----------------------------------------------------------------------
Comment By: Riley ()
Date: 2013-02-11 18:44
Message:
I clicked save before I was done writing -.-;
As also noticed in the provided screenshot; the script doesn't save nor
give output of any kind.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3604180&group_…
Bugs item #3604180, was opened at 2013-02-11 18:42
Message generated for change (Comment added) made by betacommand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3604180&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: 7
Private: No
Submitted By: Riley ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Unicode issue running redirect.py
Initial Comment:
Hello everyone, I am having a unicode issue when running redirect.py on wikisource.org. When running the script, pywikipediabot seems to try to change the page names into english.
----------------------------------------------------------------------
Comment By: betacommand (betacommand)
Date: 2013-02-17 16:04
Message:
can we get some more details please? what language of wikisource are you
working on, and what are the results of version.py?
----------------------------------------------------------------------
Comment By: Riley ()
Date: 2013-02-11 18:44
Message:
I clicked save before I was done writing -.-;
As also noticed in the provided screenshot; the script doesn't save nor
give output of any kind.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3604180&group_…