Bugs item #3575760, was opened at 2012-10-09 08:08
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3575760&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: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dr. Trigon (drtrigon)
Assigned to: Nobody/Anonymous (nobody)
Summary: trunk 10450 not py2.6 compatible
Initial Comment:
Hello all!
As Merlijn suggested at [1] I should also report this here too. I would solve it myself but a quick shot does not seam appropriate.
[1] https://jira.toolserver.org/browse/TS-1466
Python code using:
>>> import re
>>> re.sub(..., flags=...)
does not work in python 2.6 because the optional parameter \'flags\' was introduced in python 2.7. As Merlijn noted, this should be replaced by
>>> re.compile(..., flags=...).sub(...)
A fast \'grep \"flags\" *\' in my pywikipedia directory of revision 10450, yields at least following matches:
imagecopy_self.py: match = re.search(regex, text, flags=re.IGNORECASE)
imagecopy_self.py: contents[u\'permission\'] = re.sub(regex, u\'\', contents[u\'permission\'], flags=re.IGNORECASE)
imagecopy_self.py: text = re.sub(toRemove, u\'\', text, flags=re.IGNORECASE)
imagecopy_self.py: text = re.sub(regex, u\'\', text, flags=re.IGNORECASE)
imagecopy_self.py: match = re.search(regex, text, flags=re.IGNORECASE)
imagecopy_self.py: result = re.sub(regex, replacement, match.group(0), flags=re.IGNORECASE)
...so there are at least 4 problematic cases which should be changed. I am not aware if a similar issues exists with \'re.search\'.
Thanks and greetings
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-19 06:29
Message:
This ist still a fix-me of python release change r8814 which was done to
fix another regex bug. mybe we had to create version dependant code :-(
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3575760&group_…
Bugs item #3547327, was opened at 2012-07-22 10:20
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3547327&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: cosmetic changes
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Harriv (harriv)
Assigned to: Nobody/Anonymous (nobody)
Summary: cosmetics_changes.py chokes on big article
Initial Comment:
I tried to create list of 55000+ page category with category.py and cosmetic_changes enabled. Script seems to hang for a very long time. If cosmetic changes are disable, this doesn't occur.
Here's stack trace when CTRL-C is pressed:
^CTraceback (most recent call last):
File "category.py", line 1005, in <module>
main()
File "category.py", line 998, in main
bot.run()
File "category.py", line 536, in run
self.list.put(listString, comment=self.editSummary)
File "/home/users/harriv/wikibot/tmp/pywikipedia/wikipedia.py", line 2005, in put
newtext = ccToolkit.change(newtext)
File "/home/users/harriv/wikibot/tmp/pywikipedia/cosmetic_changes.py", line 166, in change
text = self.cleanUpLinks(text)
File "/home/users/harriv/wikibot/tmp/pywikipedia/cosmetic_changes.py", line 517, in cleanUpLinks
'startspace'])
File "/home/users/harriv/wikibot/tmp/pywikipedia/pywikibot/textlib.py", line 135, in replaceExcept
excMatch = dontTouchR.search(text, index)
KeyboardInterrupt
Version info:
Pywikipedia [http] trunk/pywikipedia (r10461, 2012/07/22, 16:33:39)
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2012-10-18 01:26
Message:
Admiring the time and effort you put into your website and in depth data
you present. It's excellent to come across a blog every once in a even
though that isn't exactly the same old rehashed data. Fantastic read! I're
bookmarked your site and I'm adding your RSS feeds to my Google account.
louis vuitton on sale http://www.lvoutleter.com
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-25 22:09
Message:
Doesn't stop means it also hangs or runs into infinite loop?
btw. You should not use python < 2.7.2 on mediawiki sites. Do not use it
with cosmetic changes and on several sites where the unicode bug is
affected. In general you shouldn't use interwiki.py or featured.py which
are dealing with multiple language sites.
----------------------------------------------------------------------
Comment By: Harriv (harriv)
Date: 2012-07-24 00:00
Message:
Script doesn't stop if cosmetic changes are disabled.
My hosting provider is using Debian, and they have not yet updated Python..
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-23 21:39
Message:
Oh and btw you should update your python to release 2.7.2/3 when you are
working on several language sites due to unicode bug.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-23 21:36
Message:
Have you checked this issue with cosmetic changes disabled?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3547327&group_…
Bugs item #3577382, was opened at 2012-10-15 09:40
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3577382&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: YFdyh000 (yfdyh000)
>Assigned to: xqt (xqt)
Summary: Missing namespace: ['en'][446] [447]
Initial Comment:
WARNING: Missing namespace in family file wikipedia: namespace['en'][446] (it is set to 'Education Program')
WARNING: Missing namespace in family file wikipedia: namespace['en'][447] (it is set to 'Education Program talk')
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-15 12:18
Message:
done in r10582
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3577382&group_…
Bugs item #3577382, was opened at 2012-10-15 09:40
Message generated for change (Tracker Item Submitted) made by yfdyh000
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3577382&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: YFdyh000 (yfdyh000)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing namespace: ['en'][446] [447]
Initial Comment:
WARNING: Missing namespace in family file wikipedia: namespace['en'][446] (it is set to 'Education Program')
WARNING: Missing namespace in family file wikipedia: namespace['en'][447] (it is set to 'Education Program talk')
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3577382&group_…
Patches item #3577216, was opened at 2012-10-14 11:02
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3577216&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add wantedpages support
Initial Comment:
Please consider adding the wantedpages implementation in the attached file
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-14 14:13
Message:
We shouldn't use screen scrapping as page generator since we have api
access.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3577216&group_…
Bugs item #3577206, was opened at 2012-10-14 09:25
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3577206&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: rubin16 (rubin16)
>Assigned to: xqt (xqt)
Summary: nowcommons.py problem
Initial Comment:
When I am using nowcommons.py for ru.wiki (python nowcommons.py -replacealways), script doesn't see plenty of files in the category:
http://ru.wikipedia.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%…
Although templates of "moved to Commons" were added to the script:
'ru': [
u'NowCommons',
u'NCT',
u'Nowcommons',
u'Now Commons',
u'Db-commons',
u'Перенесено на Викисклад',
],
Anyway, bot uses only the first one - Template:NowCommons. How can it be fixed?
version: pwb r10752
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-14 14:04
Message:
fixed in r10580
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3577206&group_…
Patches item #3577216, was opened at 2012-10-14 11:02
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3577216&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add wantedpages support
Initial Comment:
Please consider adding the wantedpages implementation in the attached file
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3577216&group_…
Bugs item #3577206, was opened at 2012-10-14 09:25
Message generated for change (Tracker Item Submitted) made by rubin16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3577206&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: rubin16 (rubin16)
Assigned to: Nobody/Anonymous (nobody)
Summary: nowcommons.py problem
Initial Comment:
When I am using nowcommons.py for ru.wiki (python nowcommons.py -replacealways), script doesn't see plenty of files in the category:
http://ru.wikipedia.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%…
Although templates of "moved to Commons" were added to the script:
'ru': [
u'NowCommons',
u'NCT',
u'Nowcommons',
u'Now Commons',
u'Db-commons',
u'Перенесено на Викисклад',
],
Anyway, bot uses only the first one - Template:NowCommons. How can it be fixed?
version: pwb r10752
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3577206&group_…
Bugs item #3546620, was opened at 2012-07-20 23:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3546620&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: YFdyh000 (yfdyh000)
>Assigned to: xqt (xqt)
Summary: add ast & zh disambiguationTemplates
Initial Comment:
http://ast.wikipedia.org/wiki/MediaWiki:Disambiguationspage has been deleted,
so add the following to the wikipedia_family.py self.disambiguationTemplates
'ast': [u'Dixebra'],
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-14 05:59
Message:
fixed in r10566
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-10-14 02:59
Message:
Regarding ast wiki it seems to be a bug in the rewrite branch.
wikipedia.Page.isDisambig() works well for the trunk release.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-21 05:34
Message:
Since MediaWiki:Disambiguationspage is also used be mediawiki (and other
bots btw), this message should be actualized instead of localizing bots.
----------------------------------------------------------------------
Comment By: YFdyh000 (yfdyh000)
Date: 2012-07-21 00:42
Message:
In addition, the 'zh' also add
u'MolFormDisambig', u'Disamb'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3546620&group_…
Bugs item #3546620, was opened at 2012-07-20 23:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3546620&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: YFdyh000 (yfdyh000)
Assigned to: Nobody/Anonymous (nobody)
Summary: add ast & zh disambiguationTemplates
Initial Comment:
http://ast.wikipedia.org/wiki/MediaWiki:Disambiguationspage has been deleted,
so add the following to the wikipedia_family.py self.disambiguationTemplates
'ast': [u'Dixebra'],
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2012-10-14 02:59
Message:
Regarding ast wiki it seems to be a bug in the rewrite branch.
wikipedia.Page.isDisambig() works well for the trunk release.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2012-07-21 05:34
Message:
Since MediaWiki:Disambiguationspage is also used be mediawiki (and other
bots btw), this message should be actualized instead of localizing bots.
----------------------------------------------------------------------
Comment By: YFdyh000 (yfdyh000)
Date: 2012-07-21 00:42
Message:
In addition, the 'zh' also add
u'MolFormDisambig', u'Disamb'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3546620&group_…