Patches item #3436146, was opened at 2011-11-10 08:00
Message generated for change (Comment added) made by solab
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3436146&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: Unstable (example)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: solab (solab)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compatibilit pywikipedia and mw 1.18.0beta1
Initial Comment:
I upgraded MW to 1.18.0.beta1.
the get.py is now broken..
Question
is pywikipedia compatible with mw 1.18.0beta1?
Regards
G
----------------------------------------------------------------------
>Comment By: solab (solab)
Date: 2011-11-11 01:33
Message:
Veriosn
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
user-config.py
mylang = 'en'
family = 'solab'
usernames['solab']['en'] = u'xxxx'
MediaWiki 1.18.0beta1
==Log==
python get.py -family:solab Xx
Traceback (most recent call last):
File "get.py", line 33, in <module>
main()
File "get.py", line 29, in main
pywikibot.output(page.get(), toStdout = True)
File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 694, in get
expandtemplates = expandtemplates)
File "/opt/tools/mybot/pywikipedia/wikipedia.py", line 786, in
_getEditPage
raise ServerError('ServerError: No textarea found in %s' % self)
==Family==
solab_family.py
pywikibot.exceptions.ServerError: ServerError: No textarea found in
[[en:Xx]]
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-10 08:11
Message:
Please add the output from version.py, your user-config.py, your family
file and the output you get when running get.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3436146&group_…
Bugs item #3436114, was opened at 2011-11-10 06:25
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3436114&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: reza (reza1615)
>Assigned to: xqt (xqt)
Summary: interwiki.py error (doi family error)
Initial Comment:
i used this command
my bot's pywikipedia updates every day at 0:00
python interwiki.py -start:matg -pt:0 -auto
and i came across with this error
No changes needed on page [[fr:Mathilde de Flandre]]
Dump en (wikipedia) appended.
Traceback (most recent call last):
File "interwiki.py", line 2573, in <module>
main()
File "interwiki.py", line 2547, in main
bot.run()
File "interwiki.py", line 2287, in run
self.queryStep()
File "interwiki.py", line 2265, in queryStep
subj.finish(self)
File "interwiki.py", line 1713, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1781, in replaceLinks
ignorepage = pywikibot.Page(page.site(), iw.groups()[0])
File "/home/reza/pywikipedia2/wikipedia.py", line 376, in __init__
% (title, self._site, familyName))
pywikibot.exceptions.NoPage: doi:10.1093/ref:odnb/18335 is not a local page on wikipedia:de, and the doi family is
not supported by PyWikipediaBot!
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-11-10 18:35
Message:
fixed in r9744
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3436114&group_…
Bugs item #3433609, was opened at 2011-11-04 10:49
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&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: Pending
Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: Patch 3419295 did not fix python 2.4 compatibility
Initial Comment:
After the change from 3419295, there is still a syntax error:
sudo python redirect.py double
Traceback (most recent call last):
File "redirect.py", line 66, in ?
import wikipedia as pywikibot
File "/usr/local/pywikipedia/wikipedia.py", line 142, in ?
from pywikibot import *
File "/usr/local/pywikipedia/pywikibot/__init__.py", line 16, in ?
from i18n import translate
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 14, in ?
from plural import plural_rules
File "/usr/local/pywikipedia/pywikibot/plural.py", line 17
0 if (n == 0) else
^
SyntaxError: invalid syntax
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9725, 2011/11/04, 14:50:26)
Python 2.4.3 (#1, Sep 21 2011, 19:55:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-11-10 09:13
Message:
patch for pre 2.5 python version applied with r9740
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-11-07 09:23
Message:
Yes, your sys.version_info command returns True.
Python 2.4 is still supplied with CentOS 5. CentOS 6 is out but only
recently (it has Python 2.6).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-07 09:12
Message:
We could not give a recommended release because there are some updates like
family files depending which are needed for some stuff that have changed.
On the other hand there are some script releases who are 2.4 clean. Plural
support was introduced with r9464 thus pre-r9464 might work with py 2.4.
Could you pleace check via idle whether the folowing statements gives
true:
>>> import sys
>>> sys.version_info < (2,5)
True
I could change the i18n methods for 2.4 to a older release and _default
state which gives no full plural support but enables it for py 2.4. This is
for the moment. py 2.7.2 would be recommended ;)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-11-07 06:50
Message:
Thanks. If you are deprecating Python 2.4 officially, could you please
document your recommended version number that is the most stable and works
with 2.4?
If you don't have access to a 2.4 system I would be happy to help. Just
send me a list of POSSIBLE version numbers and I will let you know which
ones break.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-07 04:46
Message:
However, please feel free to submit a patch that fully fixes 2.4
compatibility. The problem is neither xqt nor me have access to a python
2.4 install anymore, so it's very hard for us to fix it.
Unfortunately, it's not possible to use a __future__ import for this - the
operators will have to be rewritten:
a if b else c -> [c,a][b] - even though this is horrible in terms of
readability. Please mark the locations you change it with a comment with
the original ternary operator, and possible a fixed #IIF mark, or something
like that (so it could be removed in the future).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-06 20:54
Message:
Depends i18n PLURAL support of some scripts and I won't fix since python
2.4 had it last fix more than 3 years ago and we should declare it as
deprecated release for pywikibot support. Upuntu itself no longer bundles
2.4. Please update to 2.7.2 if possible or use an older pywikibot release.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&group_…
Patches item #3436146, was opened at 2011-11-10 08:00
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3436146&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: Unstable (example)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: solab (solab)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compatibilit pywikipedia and mw 1.18.0beta1
Initial Comment:
I upgraded MW to 1.18.0.beta1.
the get.py is now broken..
Question
is pywikipedia compatible with mw 1.18.0beta1?
Regards
G
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-10 08:11
Message:
Please add the output from version.py, your user-config.py, your family
file and the output you get when running get.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3436146&group_…
Patches item #3436146, was opened at 2011-11-10 08:00
Message generated for change (Tracker Item Submitted) made by solab
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3436146&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: Unstable (example)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: solab (solab)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compatibilit pywikipedia and mw 1.18.0beta1
Initial Comment:
I upgraded MW to 1.18.0.beta1.
the get.py is now broken..
Question
is pywikipedia compatible with mw 1.18.0beta1?
Regards
G
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3436146&group_…
Bugs item #3436114, was opened at 2011-11-10 06:25
Message generated for change (Tracker Item Submitted) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3436114&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: interwiki.py error (doi family error)
Initial Comment:
i used this command
my bot's pywikipedia updates every day at 0:00
python interwiki.py -start:matg -pt:0 -auto
and i came across with this error
No changes needed on page [[fr:Mathilde de Flandre]]
Dump en (wikipedia) appended.
Traceback (most recent call last):
File "interwiki.py", line 2573, in <module>
main()
File "interwiki.py", line 2547, in main
bot.run()
File "interwiki.py", line 2287, in run
self.queryStep()
File "interwiki.py", line 2265, in queryStep
subj.finish(self)
File "interwiki.py", line 1713, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1781, in replaceLinks
ignorepage = pywikibot.Page(page.site(), iw.groups()[0])
File "/home/reza/pywikipedia2/wikipedia.py", line 376, in __init__
% (title, self._site, familyName))
pywikibot.exceptions.NoPage: doi:10.1093/ref:odnb/18335 is not a local page on wikipedia:de, and the doi family is
not supported by PyWikipediaBot!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3436114&group_…
Feature Requests item #3436100, was opened at 2011-11-10 05:54
Message generated for change (Tracker Item Submitted) made by reza1615
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3436100&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
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: Nobody/Anonymous (nobody)
Summary: welcom.py
Initial Comment:
in welcome.py bot in -random case
Is it possible to add sign name which is chosen as random in Edit summary?
now in Special:Contributions it is not possible to find which signs is used!
for example:
Edit summary==> welcome! (bye user:reza1615 sign)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=3436100&group_…
Bugs item #3427660, was opened at 2011-10-23 20:23
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3427660&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: Accepted
Priority: 5
Private: No
Submitted By: reza (reza1615)
Assigned to: xqt (xqt)
Summary: template with /doc subpage interwiki.py has problem
Initial Comment:
Hi,
i came across a problom with templates that have /doc subpage. if some of interwikis don't have /doc it confuses and delete other interwikis
cases
http://en.wikipedia.org/w/index.php?title=Template:Cite_encyclopedia/doc&di…
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2011-11-07 21:39
Message:
LPFnJA <a href="http://xoyefmptreoo.com/">xoyefmptreoo</a>,
[url=http://ujunbabqitfx.com/]ujunbabqitfx[/url],
[link=http://oupdksgswqtz.com/]oupdksgswqtz[/link],
http://bvzvrbdsilyk.com/
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-10-24 09:03
Message:
I found duplicate interwiki links on /doc subpages for several sites: one
for <includeonly>, one for <noinclude>. Pywikibot cannot handle this case.
Normally this does not matter the bot. It should not lead to any subpage.
Unfortunately fa-wiki uses a not documented subpage. I asked Amir for a
comment.
----------------------------------------------------------------------
Comment By: reza (reza1615)
Date: 2011-10-24 04:49
Message:
my bot modified 2700 templates and it had 3 problem . they where the only
cases that templates had /doc sub-page!
http://en.wikipedia.org/w/index.php?title=Special:Contributions&limit=2700&…
so between cases that they will have /doc sub-page it is very risky! to
run interwiki.py
cases:
1-http://en.wikipedia.org/w/index.php?title=Template:Infobox_musical_artist…2-http://en.wikipedia.org/w/index.php?title=Template:Pp-meta/doc&diff=prev&…3-http://en.wikipedia.org/w/index.php?title=Template:Pp-meta/doc&diff=prev&…
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-10-23 22:18
Message:
this came from a wrong (doc)-subpage on vi-wiki which was not "official".
vi-wiki has a documetation template too which uses /doc subpages. Somebody
meant he had to localize it to a new form with (doc) ending (I found only
that example who gave the failure). I repared it [1] and I guess it should
work as expected. I also found interwiki links between doc strings from
subpage to subpage and deleted them.
[1]
http://vi.wikipedia.org/wiki/B%E1%BA%A3n_m%E1%BA%ABu:Ch%C3%BA_th%C3%ADch_b%…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3427660&group_…
Bugs item #3433609, was opened at 2011-11-04 10:49
Message generated for change (Comment added) made by djbarrett
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&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: Wont Fix
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: Patch 3419295 did not fix python 2.4 compatibility
Initial Comment:
After the change from 3419295, there is still a syntax error:
sudo python redirect.py double
Traceback (most recent call last):
File "redirect.py", line 66, in ?
import wikipedia as pywikibot
File "/usr/local/pywikipedia/wikipedia.py", line 142, in ?
from pywikibot import *
File "/usr/local/pywikipedia/pywikibot/__init__.py", line 16, in ?
from i18n import translate
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 14, in ?
from plural import plural_rules
File "/usr/local/pywikipedia/pywikibot/plural.py", line 17
0 if (n == 0) else
^
SyntaxError: invalid syntax
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9725, 2011/11/04, 14:50:26)
Python 2.4.3 (#1, Sep 21 2011, 19:55:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Daniel Barrett (djbarrett)
Date: 2011-11-07 09:23
Message:
Yes, your sys.version_info command returns True.
Python 2.4 is still supplied with CentOS 5. CentOS 6 is out but only
recently (it has Python 2.6).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-07 09:12
Message:
We could not give a recommended release because there are some updates like
family files depending which are needed for some stuff that have changed.
On the other hand there are some script releases who are 2.4 clean. Plural
support was introduced with r9464 thus pre-r9464 might work with py 2.4.
Could you pleace check via idle whether the folowing statements gives
true:
>>> import sys
>>> sys.version_info < (2,5)
True
I could change the i18n methods for 2.4 to a older release and _default
state which gives no full plural support but enables it for py 2.4. This is
for the moment. py 2.7.2 would be recommended ;)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-11-07 06:50
Message:
Thanks. If you are deprecating Python 2.4 officially, could you please
document your recommended version number that is the most stable and works
with 2.4?
If you don't have access to a 2.4 system I would be happy to help. Just
send me a list of POSSIBLE version numbers and I will let you know which
ones break.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-07 04:46
Message:
However, please feel free to submit a patch that fully fixes 2.4
compatibility. The problem is neither xqt nor me have access to a python
2.4 install anymore, so it's very hard for us to fix it.
Unfortunately, it's not possible to use a __future__ import for this - the
operators will have to be rewritten:
a if b else c -> [c,a][b] - even though this is horrible in terms of
readability. Please mark the locations you change it with a comment with
the original ternary operator, and possible a fixed #IIF mark, or something
like that (so it could be removed in the future).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-06 20:54
Message:
Depends i18n PLURAL support of some scripts and I won't fix since python
2.4 had it last fix more than 3 years ago and we should declare it as
deprecated release for pywikibot support. Upuntu itself no longer bundles
2.4. Please update to 2.7.2 if possible or use an older pywikibot release.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&group_…
Bugs item #3433609, was opened at 2011-11-04 10:49
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&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: Wont Fix
Priority: 5
Private: No
Submitted By: Daniel Barrett (djbarrett)
Assigned to: xqt (xqt)
Summary: Patch 3419295 did not fix python 2.4 compatibility
Initial Comment:
After the change from 3419295, there is still a syntax error:
sudo python redirect.py double
Traceback (most recent call last):
File "redirect.py", line 66, in ?
import wikipedia as pywikibot
File "/usr/local/pywikipedia/wikipedia.py", line 142, in ?
from pywikibot import *
File "/usr/local/pywikipedia/pywikibot/__init__.py", line 16, in ?
from i18n import translate
File "/usr/local/pywikipedia/pywikibot/i18n.py", line 14, in ?
from plural import plural_rules
File "/usr/local/pywikipedia/pywikibot/plural.py", line 17
0 if (n == 0) else
^
SyntaxError: invalid syntax
$ python version.py
Pywikipedia [http] trunk/pywikipedia (r9725, 2011/11/04, 14:50:26)
Python 2.4.3 (#1, Sep 21 2011, 19:55:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-11-07 09:12
Message:
We could not give a recommended release because there are some updates like
family files depending which are needed for some stuff that have changed.
On the other hand there are some script releases who are 2.4 clean. Plural
support was introduced with r9464 thus pre-r9464 might work with py 2.4.
Could you pleace check via idle whether the folowing statements gives
true:
>>> import sys
>>> sys.version_info < (2,5)
True
I could change the i18n methods for 2.4 to a older release and _default
state which gives no full plural support but enables it for py 2.4. This is
for the moment. py 2.7.2 would be recommended ;)
----------------------------------------------------------------------
Comment By: Daniel Barrett (djbarrett)
Date: 2011-11-07 06:50
Message:
Thanks. If you are deprecating Python 2.4 officially, could you please
document your recommended version number that is the most stable and works
with 2.4?
If you don't have access to a 2.4 system I would be happy to help. Just
send me a list of POSSIBLE version numbers and I will let you know which
ones break.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-11-07 04:46
Message:
However, please feel free to submit a patch that fully fixes 2.4
compatibility. The problem is neither xqt nor me have access to a python
2.4 install anymore, so it's very hard for us to fix it.
Unfortunately, it's not possible to use a __future__ import for this - the
operators will have to be rewritten:
a if b else c -> [c,a][b] - even though this is horrible in terms of
readability. Please mark the locations you change it with a comment with
the original ternary operator, and possible a fixed #IIF mark, or something
like that (so it could be removed in the future).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-11-06 20:54
Message:
Depends i18n PLURAL support of some scripts and I won't fix since python
2.4 had it last fix more than 3 years ago and we should declare it as
deprecated release for pywikibot support. Upuntu itself no longer bundles
2.4. Please update to 2.7.2 if possible or use an older pywikibot release.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3433609&group_…