Bugs item #2937832, was opened at 2010-01-23 11:22
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2937832&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: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: HTTP Error 502: Bad Gateway
Initial Comment:
Recently replace.py halts for Bad Gateway pretty often. It halts about 2/3 times every 500 updated pages, so I have to restart the script over and over in order to complete long tasks.
The problem is that it does not retry or skip the page, but it just stops the script execution.
Is it possible to manage the http 502 in order to retry for page update at least 5 (or more) times?
Thanks!
Updating page [[6579 Benedix]] via API
Result: 502 Bad Gateway
Traceback (most recent call last):
File "C:\pywikipedia\replace.py", line 719, in <module>
main()
File "C:\pywikipedia\replace.py", line 714, in main
bot.run()
File "C:\pywikipedia\replace.py", line 438, in run
page.put(new_text, self.editSummary)
File "C:\pywikipedia\wikipedia.py", line 1655, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries)
File "C:\pywikipedia\wikipedia.py", line 1752, in _putPage
response, data = query.GetData(params, self.site(), sysop=sysop, back_response = True)
File "C:\pywikipedia\query.py", line 122, in GetData
res, jsontext = site.postForm(path, params, sysop, site.cookies(sysop = sysop) )
File "C:\pywikipedia\wikipedia.py", line 5761, in postForm
cookies=cookies)
File "C:\pywikipedia\wikipedia.py", line 5805, in postData
f = MyURLopener.open(request)
File "C:\Python26\lib\urllib2.py", line 389, in open
response = meth(req, response)
File "C:\Python26\lib\urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python26\lib\urllib2.py", line 427, in error
return self._call_chain(*args)
File "C:\Python26\lib\urllib2.py", line 361, in _call_chain
result = func(*args)
File "C:\Python26\lib\urllib2.py", line 510, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 502: Bad Gateway
C:\pywikipedia>version.py
Pywikipedia [http] trunk/pywikipedia (r7887, 2010/01/21, 17:47:24)
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-14 18:38
Message:
done in r8010
----------------------------------------------------------------------
Comment By: Davide Bolsi (basilicofresco)
Date: 2010-01-23 11:27
Message:
I was not log in. Let me know if you need additional details!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2937832&group_…
Bugs item #2890281, was opened at 2009-11-01 15:02
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2890281&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: None
Priority: 7
Private: No
Submitted By: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unable to change page content
Initial Comment:
Hello,
Lately I am unable to change page content on older versions of mediawiki:
Pywikipedia [http] trunk/pywikipedia (r7578, 2009/11/01, 10:21:50)
Python 2.6 (r26:66714, Jun 8 2009, 16:07:26)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)]
Updating page [[User:Nakor/Test]] via API
Unknown Error. API Error code:unknown_action
Product Version
MediaWiki 1.13.4
PHP 5.2.4-2ubuntu5.7 (apache2handler)
MySQL 5.0.51a-3ubuntu5.4
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-14 18:16
Message:
Is this error still valid? Do you have further information about api
settings?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-02 12:18
Message:
Could you give us the next line too to this Error:
Information:
Does this error still occur it you don't use the API by setting
use_api = False
in you user_config.py?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2890281&group_…
Bugs item #2901944, was opened at 2009-11-22 03:08
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901944&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: None
Priority: 7
Private: No
Submitted By: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unable to get user contributions
Initial Comment:
File "./almabot/iw_user.py", line 17, in get_user_contribs
contribs_list = site.getUrl(contribs_url)
File "/home/almabot/pywikipedia/wikipedia.py", line 5618, in getUrl
f = MyURLopener.open(request)
File "/usr/lib/python2.6/urllib2.py", line 389, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 427, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request
python version.py
Pywikipedia [http] trunk/pywikipedia (r7675, 2009/11/20, 21:40:12)
Python 2.6 (r26:66714, Jun 8 2009, 16:07:26)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)]
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-14 18:10
Message:
iw_user.py isn't part of the pwb. Is this published anywhere?
This error might be caused if you call a lot of contribs at once. Reducing
the limit could solve the http 400 error; see r8003 for instance:
http://svn.wikimedia.org/viewvc/pywikipedia?view=rev&revision=8003
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901944&group_…
Bugs item #2901944, was opened at 2009-11-22 03:08
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901944&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: 7
Private: No
Submitted By: Nakor Wikipedia (nakor-wikipedia)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unable to get user contributions
Initial Comment:
File "./almabot/iw_user.py", line 17, in get_user_contribs
contribs_list = site.getUrl(contribs_url)
File "/home/almabot/pywikipedia/wikipedia.py", line 5618, in getUrl
f = MyURLopener.open(request)
File "/usr/lib/python2.6/urllib2.py", line 389, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 427, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request
python version.py
Pywikipedia [http] trunk/pywikipedia (r7675, 2009/11/20, 21:40:12)
Python 2.6 (r26:66714, Jun 8 2009, 16:07:26)
[GCC 4.4.0 20090506 (Red Hat 4.4.0-4)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-14 18:10
Message:
iw_user.py isn't part of the pwb. Is this published anywhere?
This error might be caused if you call a lot of contribs at once. Reducing
the limit could solve the http 400 error; see r8003 for instance:
http://svn.wikimedia.org/viewvc/pywikipedia?view=rev&revision=8003
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901944&group_…
Feature Requests item #2959262, was opened at 2010-02-26 00:46
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2959262&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: redirect.py
Initial Comment:
is it possible to adapt redirect.py to work with standard pagegenerators like -links: and -file: ?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2959262&group_…
Bugs item #2970264, was opened at 2010-03-14 15:37
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970264&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: Merlijn S. van Deen (valhallasw)
Summary: Unable to check blocks on IP
Initial Comment:
I have code to check blocks on users or IPs using userlib.py
Since r7979, userlib raises an exception when I try to check blocks on IPs.
Please allow this behavior again.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970264&group_…
Bugs item #2970030, was opened at 2010-03-14 00:33
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970030&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: masti (masti01)
Assigned to: xqt (xqt)
Summary: weblinkschecker: AttributeError: HTTPResponse instance has n
Initial Comment:
While processing links by weblinkschecker.py several pages throw the following exception:
Exception while processing URL http://ssd.jpl.nasa.gov/sbdb_query.cgi in page (73139) 2002 GM84
Exception in thread (73139) 2002 GM84 - http://ssd.jpl.nasa.gov/sbdb_query.cgi:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
self.run()
File "weblinkchecker.py", line 492, in run
ok, message = linkChecker.check()
File "weblinkchecker.py", line 408, in check
wasRedirected = self.resolveRedirect(useHEAD = useHEAD)
File "weblinkchecker.py", line 371, in resolveRedirect
if response.code >= 300 and response.code <= 399:
AttributeError: HTTPResponse instance has no attribute 'code'
python version.py
Pywikipedia [http] trunk/pywikipedia (r8005, 2010/03/13, 16:46:42)
Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45)
[GCC 4.4.2 20091222 (Red Hat 4.4.2-20)]
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-14 17:10
Message:
Yes, it seems to be working
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-14 16:50
Message:
I reverted r7599
http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/weblinkchecke…
would you please check whether it works now?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970030&group_…
Bugs item #2970070, was opened at 2010-03-14 02:28
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970070&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: masti (masti01)
>Assigned to: xqt (xqt)
Summary: reflinks.py crashes on 404 error
Initial Comment:
reflinks.py does not properly recognize 404 error:
HTTP error (404) for http://www.guinnessworldrecords.com/content_pages/record.asp?recordid=44894 on [[Lacrosse]]
Traceback (most recent call last):
File "reflinksmb.py", line 753, in <module>
main()
File "reflinksmb.py", line 749, in main
bot.run()
File "reflinksmb.py", line 551, in run
repl = ref.refDead()
File "reflinksmb.py", line 197, in refDead
tag = wikipedia.translate(self.site, deadLinkTag) % self.link
TypeError: not all arguments converted during string formatting
python version.py
Pywikipedia [http] trunk/pywikipedia (r7991, 2010/03/12, 09:03:31)
Python 2.6.2 (r262:71600, Oct 22 2009, 08:54:52)
[GCC 4.3.4]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-14 17:30
Message:
fixed in r8008
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-14 02:34
Message:
python reflinksmb.py -xml:plwiki-20100307-pages-meta-current.xml
-xmlstart:Lacrosse
Reading XML dump...
Getting 1 pages from wikipedia:pl...
Getting 50 pages from wikipedia:pl...
HTTP error (404) for
http://www.guinnessworldrecords.com/content_pages/record.asp?recordid=44894
on [[Lacrosse]]
Traceback (most recent call last):
File "reflinksmb.py", line 753, in <module>
main()
File "reflinksmb.py", line 749, in main
bot.run()
File "reflinksmb.py", line 551, in run
repl = ref.refDead()
File "reflinksmb.py", line 197, in refDead
tag = wikipedia.translate(self.site, deadLinkTag) % self.link
TypeError: not all arguments converted during string formatting
reflinksmb.py is a copy of reflinks.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970070&group_…
Bugs item #2970030, was opened at 2010-03-14 00:33
Message generated for change (Comment added) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970030&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: Pending
Resolution: Fixed
Priority: 5
Private: No
Submitted By: masti (masti01)
Assigned to: xqt (xqt)
Summary: weblinkschecker: AttributeError: HTTPResponse instance has n
Initial Comment:
While processing links by weblinkschecker.py several pages throw the following exception:
Exception while processing URL http://ssd.jpl.nasa.gov/sbdb_query.cgi in page (73139) 2002 GM84
Exception in thread (73139) 2002 GM84 - http://ssd.jpl.nasa.gov/sbdb_query.cgi:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
self.run()
File "weblinkchecker.py", line 492, in run
ok, message = linkChecker.check()
File "weblinkchecker.py", line 408, in check
wasRedirected = self.resolveRedirect(useHEAD = useHEAD)
File "weblinkchecker.py", line 371, in resolveRedirect
if response.code >= 300 and response.code <= 399:
AttributeError: HTTPResponse instance has no attribute 'code'
python version.py
Pywikipedia [http] trunk/pywikipedia (r8005, 2010/03/13, 16:46:42)
Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45)
[GCC 4.4.2 20091222 (Red Hat 4.4.2-20)]
----------------------------------------------------------------------
Comment By: masti (masti01)
Date: 2010-03-14 17:10
Message:
Yes, it seems to be working
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-14 16:50
Message:
I reverted r7599
http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/weblinkchecke…
would you please check whether it works now?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970030&group_…
Bugs item #2970030, was opened at 2010-03-14 00:33
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970030&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: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: masti (masti01)
>Assigned to: xqt (xqt)
Summary: weblinkschecker: AttributeError: HTTPResponse instance has n
Initial Comment:
While processing links by weblinkschecker.py several pages throw the following exception:
Exception while processing URL http://ssd.jpl.nasa.gov/sbdb_query.cgi in page (73139) 2002 GM84
Exception in thread (73139) 2002 GM84 - http://ssd.jpl.nasa.gov/sbdb_query.cgi:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
self.run()
File "weblinkchecker.py", line 492, in run
ok, message = linkChecker.check()
File "weblinkchecker.py", line 408, in check
wasRedirected = self.resolveRedirect(useHEAD = useHEAD)
File "weblinkchecker.py", line 371, in resolveRedirect
if response.code >= 300 and response.code <= 399:
AttributeError: HTTPResponse instance has no attribute 'code'
python version.py
Pywikipedia [http] trunk/pywikipedia (r8005, 2010/03/13, 16:46:42)
Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45)
[GCC 4.4.2 20091222 (Red Hat 4.4.2-20)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2010-03-14 16:50
Message:
I reverted r7599
http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/weblinkchecke…
would you please check whether it works now?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970030&group_…