Bugs item #3208937, was opened at 2011-03-13 15:00
Message generated for change (Comment added) made by malafaya
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3208937&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: Works For Me
Priority: 7
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py using -subcats with -untranslated isn't working
Initial Comment:
When running:
interwiki.py -lang:de -family:wiktionary -async -untranslated -subcats:"Deklinierte Form"
I'm only asked for a hint for [[de:Kategorie:Deklinierte Form (Türkisch)]] but I can see there are many categories there with no interwikis:
[[Kategorie:Deklinierte Form (Tschechisch)]], [[Kategorie:Deklinierte Form (Mazedonisch)]] .....
The category above holds 33K members. The last fetching log is "Getting [[Kategorie:Deklinierte Form]] list from 21620...". My suspicion is that it may be failing to retrieve all subcats.
Thanks.
-----
Pywikipedia [http] trunk/pywikipedia (r9037, 2011/03/12, 23:12:11)
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: André Malafaya Baptista (malafaya)
Date: 2011-04-14 18:39
Message:
I confirm: it is working as of today.
----------------------------------------------------------------------
Comment By: Andre Engels (a_engels)
Date: 2011-04-14 09:42
Message:
I checked, and it does seem to work correctly now. Could you please
confirm?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3208937&group_…
Bugs item #3208937, was opened at 2011-03-13 16:00
Message generated for change (Comment added) made by a_engels
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3208937&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: Works For Me
Priority: 7
Private: No
Submitted By: André Malafaya Baptista (malafaya)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py using -subcats with -untranslated isn't working
Initial Comment:
When running:
interwiki.py -lang:de -family:wiktionary -async -untranslated -subcats:"Deklinierte Form"
I'm only asked for a hint for [[de:Kategorie:Deklinierte Form (Türkisch)]] but I can see there are many categories there with no interwikis:
[[Kategorie:Deklinierte Form (Tschechisch)]], [[Kategorie:Deklinierte Form (Mazedonisch)]] .....
The category above holds 33K members. The last fetching log is "Getting [[Kategorie:Deklinierte Form]] list from 21620...". My suspicion is that it may be failing to retrieve all subcats.
Thanks.
-----
Pywikipedia [http] trunk/pywikipedia (r9037, 2011/03/12, 23:12:11)
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: Andre Engels (a_engels)
Date: 2011-04-14 10:42
Message:
I checked, and it does seem to work correctly now. Could you please
confirm?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3208937&group_…
Bugs item #3136444, was opened at 2010-12-13 12:27
Message generated for change (Comment added) made by a_engels
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3136444&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: 7
Private: No
Submitted By: JAn (jandudik)
>Assigned to: Andre Engels (a_engels)
Summary: Not removing interwiki
Initial Comment:
I want to remove all links, but it does not work:
C:\Dokumenty\py>interwiki.py category:Třída Virginia
Getting 1 pages from wikipedia:cs...
[[Kategorie:Třída Virginia]]: [[cs:Kategorie:Třída Virginia]] gives new interwik
i [[en:Category:Connecticut class battleships]]
[[Kategorie:Třída Virginia]]: [[cs:Kategorie:Třída Virginia]] gives new interwik
i [[pl:Kategoria:Pancerniki typu Connecticut]]
Getting 1 pages from wikipedia:en...
Sleeping for 3.2 seconds, 2010-12-13 12:23:34
NOTE: [[cs:Kategorie:Třída Virginia]]: [[en:Category:Connecticut class battleshi
ps]] gives duplicate interwiki on same site [[cs:Kategorie:Třída Connecticut]]
Getting 1 pages from wikipedia:cs...
Getting 1 pages from wikipedia:pl...
======Post-processing [[cs:Kategorie:Třída Virginia]]======
ERROR: Found link to [[cs:Kategorie:Třída Connecticut]]
[[en:Category:Connecticut class battleships]]
[[pl:Kategoria:Pancerniki typu Connecticut]]
==============================
Found link to [[en:Category:Connecticut class battleships]] in:
[[cs:Kategorie:Třída Connecticut]]
[[cs:Kategorie:Třída Virginia]]
[[pl:Kategoria:Pancerniki typu Connecticut]]
What should be done? ([A]ccept, [r]eject, [g]ive up, accept a[l]l) r
==============================
Found link to [[pl:Kategoria:Pancerniki typu Connecticut]] in:
[[cs:Kategorie:Třída Connecticut]]
[[cs:Kategorie:Třída Virginia]]
[[en:Category:Connecticut class battleships]]
What should be done? ([A]ccept, [r]eject, [g]ive up, accept a[l]l) r
C:\Dokumenty\py>version.py
Pywikipedia [http] trunk/pywikipedia (r8770, 2010/12/12, 22:47:38)
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
C:\Dokumenty\py>
----------------------------------------------------------------------
>Comment By: Andre Engels (a_engels)
Date: 2011-04-12 08:03
Message:
Fixed in r9161
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-12-13 16:47
Message:
introduced with r8765
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3136444&group_…
Patches item #3282069, was opened at 2011-04-09 13:12
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3282069&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: Bertrand Grondin (grondin85)
>Assigned to: xqt (xqt)
Summary: new language on Wikinews
Initial Comment:
The Greek project is opened today at http://el.wikinews.org
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-04-10 13:34
Message:
fixed in r9155
added namespace alias
sorting of language_by_size
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3282069&group_…
Patches item #3282069, was opened at 2011-04-09 13:12
Message generated for change (Tracker Item Submitted) made by grondin85
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3282069&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: Bertrand Grondin (grondin85)
Assigned to: Nobody/Anonymous (nobody)
Summary: new language on Wikinews
Initial Comment:
The Greek project is opened today at http://el.wikinews.org
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=3282069&group_…
Bugs item #3281226, was opened at 2011-04-08 23:31
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3281226&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: masti (masti01)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki on wiktionary adding empty lines
Initial Comment:
interwiki.py in -wiktionary mode addes additional 2 empty lines after interwiki links.
examples from pl.wiktionary:
http://pl.wiktionary.org/w/index.php?diff=2040247&oldid=1966252&rcid=2027355http://pl.wiktionary.org/w/index.php?diff=2040248&oldid=2004539&rcid=2027356
version.py:
Pywikipedia [http] trunk/pywikipedia (r8768, 2010/12/10, 12:12:33)
Python 2.6.4 (r264:75706, Jun 4 2010, 18:20:16)
[GCC 4.4.4 20100503 (Red Hat 4.4.4-2)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3281226&group_…
Bugs item #3277511, was opened at 2011-04-06 14:36
Message generated for change (Comment added) made by clabaut
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3277511&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: mathieu Clabaut (clabaut)
Assigned to: Nobody/Anonymous (nobody)
Summary: Call to urllib.quote should ensure that parameter are string
Initial Comment:
In last SVN r9142, I had an exception on wikipedia.py:Site::urlEncode call to urllib.quote(value), because value was a long.
I replaced urllib.quote(value) with urllib.quote(str(value)) and everything went ok.
There may be other similar calls needing a fix.
Hope this help.
$python2 version.py
Pywikipedia [http] trunk/pywikipedia (r9141, 2011/04/01, 07:09:37)
Python 2.7.1 (r271:86832, Feb 21 2011, 01:26:25)
[GCC 4.5.2 20110127 (prerelease)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
----------------------------------------------------------------------
>Comment By: mathieu Clabaut (clabaut)
Date: 2011-04-07 06:59
Message:
The traceback is :
Traceback (most recent call last):
File "./unspam.py", line 324, in <module>
main()
File "./unspam.py", line 318, in main
bot.run()
File "./unspam.py", line 198, in run
minorEdit=True, botflag=True)
File "/home/clabaut/deploy/pywikipedia-svn/wikipedia.py", line 1758, in
put
newPage, self.site().getToken(sysop = sysop), sysop = sysop,
botflag=botflag, maxTries=maxTries)
File "/home/clabaut/deploy/pywikipedia-svn/wikipedia.py", line 1785, in
_putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "/home/clabaut/deploy/pywikipedia-svn/wikipedia.py", line 2081, in
_putPageOld
response, data = self.site().postForm(address, predata, sysop)
File "/home/clabaut/deploy/pywikipedia-svn/wikipedia.py", line 5219, in
postForm
data = self.urlEncode(predata)
File "/home/clabaut/deploy/pywikipedia-svn/wikipedia.py", line 5156, in
urlEncode
value = urllib.quote(value)
File "/usr/lib/python2.7/urllib.py", line 1236, in quote
if not s.rstrip(safe):
AttributeError: 'long' object has no attribute 'rstrip'
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-04-06 16:19
Message:
Please give us the traceback of that error. It makes more sense to fix the
wrong calling parameter instead of fixing its type
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3277511&group_…
Bugs item #3278881, was opened at 2011-04-07 06:56
Message generated for change (Tracker Item Submitted) made by clabaut
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3278881&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: mathieu Clabaut (clabaut)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unrecognised values for parameter 'usprop'
Initial Comment:
Traceback (most recent call last):
File "./unspam.py", line 324, in <module>
main()
File "./unspam.py", line 318, in main
bot.run()
File "./unspam.py", line 159, in run
onAutoblock=True)
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 381, in block
if self.isBlocked() and not reBlock:
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 121, in isBlocked
self._load()
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 96, in _load
getall(self.site(), [self], force=True)
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 538, in getall
_GetAllUI(site, users, throttle, force).run()
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 557, in run
data = self.getData()
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 591, in getData
for user in data['query']['users']:
KeyError: 'query'
Where data contains : {u'error': {u'info': u"Unrecognised values for parameter 'usprop'", u'code': u'usunknown_usprop'}}
When talking to a 1.12.0 mediawiki.
$ python2 version.py
Pywikipedia [http] trunk/pywikipedia (r9136, 2011/03/29, 15:55:44)
Python 2.7.1 (r271:86832, Feb 21 2011, 01:26:25)
[GCC 4.5.2 20110127 (prerelease)]
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=3278881&group_…
Bugs item #3278877, was opened at 2011-04-07 06:53
Message generated for change (Tracker Item Submitted) made by clabaut
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3278877&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: mathieu Clabaut (clabaut)
Assigned to: Nobody/Anonymous (nobody)
Summary: RuntimeError: API query error: {u'error': {u'info': u"Unreco
Initial Comment:
I get the following exception when talking to a 1.12.0 mediawiki installation.
Traceback (most recent call last):
File "./unspam.py", line 324, in <module>
main()
File "./unspam.py", line 318, in main
bot.run()
File "./unspam.py", line 147, in run
bltext = self.load(blpage)
File "./unspam.py", line 236, in load
text = page.get()
File "/home/clabaut/deploy/pywikipedia-svn/wikipedia.py", line 669, in get
expandtemplates = expandtemplates)
File "/home/clabaut/deploy/pywikipedia-svn/wikipedia.py", line 740, in _getEditPage
raise RuntimeError("API query error: %s" % data)
RuntimeError: API query error: {u'error': {u'info': u"Unrecognised values for parameter 'inprop'", u'code': u'inunknown_inprop'}}
$ python2 version.py
Pywikipedia [http] trunk/pywikipedia (r9136, 2011/03/29, 15:55:44)
Python 2.7.1 (r271:86832, Feb 21 2011, 01:26:25)
[GCC 4.5.2 20110127 (prerelease)]
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=3278877&group_…
Bugs item #3277511, was opened at 2011-04-06 16:36
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3277511&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: mathieu Clabaut (clabaut)
Assigned to: Nobody/Anonymous (nobody)
Summary: Call to urllib.quote should ensure that parameter are string
Initial Comment:
In last SVN r9142, I had an exception on wikipedia.py:Site::urlEncode call to urllib.quote(value), because value was a long.
I replaced urllib.quote(value) with urllib.quote(str(value)) and everything went ok.
There may be other similar calls needing a fix.
Hope this help.
$python2 version.py
Pywikipedia [http] trunk/pywikipedia (r9141, 2011/04/01, 07:09:37)
Python 2.7.1 (r271:86832, Feb 21 2011, 01:26:25)
[GCC 4.5.2 20110127 (prerelease)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-04-06 18:19
Message:
Please give us the traceback of that error. It makes more sense to fix the
wrong calling parameter instead of fixing its type
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3277511&group_…