Bugs item #2905091, was opened at 2009-11-27 19:28
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2905091&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: JAn (jandudik)
Assigned to: xqt (xqt)
Summary: interwiki revert war - emptyy pages
Initial Comment:
See
http://de.wikipedia.org/w/index.php?title=Microsoft_Windows_7&action=history
Bot strating from ug: adds interwiki. But bots strarting from other languages found empty page and remove link.
It should be
Getting 60 pages from wikipedia ug...
NOTE: [[ug:Windows 7]] is empty, skipping
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-28 18:32
Message:
revert bugfix in r7839 since page must be preloaded for this test
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-28 11:44
Message:
done in r7835 (skipping the start page if page.isEmpty())
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-11-27 19:35
Message:
What's the point of having empty pages? This can be fixed by either
* Removing the empty page check and just add the interwiki
* Check if the starting page is empty and skip it
I would prefer the second option.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2905091&group_…
Bugs item #2840660, was opened at 2009-08-20 01:03
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2840660&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: 7
Private: No
Submitted By: Melancholie (melancholie)
>Assigned to: xqt (xqt)
Summary: interwiki.py *has* to append <noinclude> without whitespaces
Initial Comment:
interwiki.py *has* to append <noinclude> without any whitespace/line break!
Please put it always close to the last character ("bla.<noinclude>\n...\n...").
Example:
http://de.wikipedia.org/w/index.php?title=Template:Polytonisch&diff=prev&ol…
... resulted in a total mess!
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-28 12:51
Message:
done in r7836
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-08-21 06:22
Message:
Prio 9 means: total failure, no bot works
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2009-08-20 01:08
Message:
Never add line breaks in front of the tag, but after/inside it very well:
http://de.wikipedia.org/w/index.php?title=Template:Vorlage&diff=prev&oldid=…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2840660&group_…
Bugs item #1981755, was opened at 2008-06-02 09:00
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1981755&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: Pending
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Melancholie (melancholie)
Assigned to: Nobody/Anonymous (nobody)
Summary: login.py issues
Initial Comment:
When running "login.py -all" the following error is shown sporadically:
Logging in to wikipedia:??
Login failed. Wrong password or CAPTCHA answer?
Bot does -not- stop then, but does not login either. Also with API_login, by the way (seems to happen more often with API).
2. With API_login enabled, it isn't shown that you have new messages on a certain wiki.
3. If bot is blocked on a certain wiki, no warning message seems to be shown anymore.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-28 12:23
Message:
Since there are a lot of changes at the related scripts. Is this bug still
valid? Otherwise it could be closed due to out of date.
----------------------------------------------------------------------
Comment By: Carsrac (carsrac)
Date: 2008-06-26 19:34
Message:
Logged In: YES
user_id=2066902
Originator: NO
The bug is still there. the pywikipedia scripts allows edits under IP
name. So please fix it or a lot of bots will be blocked because of bad
written python scripts.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2008-06-03 09:56
Message:
Logged In: YES
user_id=2089773
Originator: YES
Important: With API_login enabled, a bot does not stay properly logged
in!
Thus, my bot sometimes also edits as IP when using API_login (with block
of IP that's not funny ;-)
----------------------------------------------------------------------
Comment By: Melancholie (melancholie)
Date: 2008-06-02 09:02
Message:
Logged In: YES
user_id=2089773
Originator: YES
@1.: See "??" replaced by a certain lang code, of course ;-)
@3.: Applies for both login methods.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1981755&group_…
Bugs item #1914786, was opened at 2008-03-15 13:13
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1914786&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: Out of Date
Priority: 8
Private: No
Submitted By: Filnik (filnik)
Assigned to: Nobody/Anonymous (nobody)
Summary: Great Waste of CPU and/or RAM on interwiki.py and replace.py
Initial Comment:
Hello, I have a lot of regex to run with replace.py and I've group them in the fixes.py file and make it run through the whole italian wikipedia. But, after 1-2 days of running, the program was wasting this amount of resources:
filnik 32709 8.9 11.1 1074936 903376 pts/113 Sl+ Mar12 357:09 python2.5 pynik <etc...>
Re-running the bot (from the page that it has reached) I have that:
filnik 31372 2.8 0.2 193564 21992 pts/113 Sl+ 11:58 0:17 python2.5 pynik <etc...>
That's A LOT less than before! So, what the hell is happening? why the Bot doesn't release the resources that it uses when they aren't need any more?
The same appends for interwiki.py, I have tried to use python2.5 instead of 2.4 but without any results. I've also tried to use "del" on python but no results also with that.
So, any Idea? Filnik
P.S. Fix that bug would improve the use of interwiki.py on the toolserver and of replace.py, I think the most used scripts, so I've set 8 as importance.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-28 12:21
Message:
Since there are a lot of changes at the related scripts. Is this bug still
valid? Otherwise it could be closed due to out of date.
----------------------------------------------------------------------
Comment By: lusum (lusum)
Date: 2008-03-23 21:06
Message:
Logged In: YES
user_id=642982
Originator: NO
I have done some tests: the problem seem caused by some del statement in
code it seem mostly due to the del instruction in def replaceLinks(self,
page, newPages, bot):
I have tried to fix it, using a new.remove instead del new... but without
success
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1914786&group_…
Bugs item #2035835, was opened at 2008-08-02 12:02
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2035835&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: Out of Date
Priority: 5
Private: No
Submitted By: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: SaxParseBug caused error invalid literal for int()
Initial Comment:
I got an error message an trace dump from interwiki.py which afterwords continues gracefully. Here are the messages:
python /home/purodha/pywikipedia/interwiki.py -v -initialredirect -new:3
Checked for running processes. 1 processes currently running, including the current process.
Pywikipediabot (r5776 (wikipedia.py), Aug 01 2008, 15:39:04)
Python 2.5.2 (r252:60911, May 28 2008, 19:19:25)
[GCC 4.2.4 (Debian 4.2.4-1)]
Retrieving mediawiki messages from Special:Allmessages
WARNING: No character set found.
NOTE: Number of pages queued is 0, trying to add 60 more.
Getting 3 pages from wikipedia:ksh...
-- some lines skipped --
Getting 1 pages from wikipedia:am...
ERROR: SaxParseBug caused error invalid literal for int() with base 10: 'NS_CATEGORY'. Dump SaxParseBug_wikipedia_am__Sat_Aug__2_09-54-57_2008.dump created.
Traceback (most recent call last):
File "/home/purodha/pywikipedia/pagegenerators.py", line 768, in __iter__
for loaded_page in self.preload(somePages):
File "/home/purodha/pywikipedia/pagegenerators.py", line 785, in preload
wikipedia.getall(site, pagesThisSite)
File "/home/purodha/pywikipedia/wikipedia.py", line 2950, in getall
_GetAll(site, pages, throttle, force).run()
File "/home/purodha/pywikipedia/wikipedia.py", line 2798, in run
xml.sax.parseString(data, handler)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/__init__.py", line 47, in parseString
parser.parse(inpsrc)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/expatreader.py", line 312, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/purodha/pywikipedia/xmlreader.py", line 150, in startElement
self.namespaceid = int(attrs['key'])
ValueError: invalid literal for int() with base 10: 'NS_CATEGORY'
invalid literal for int() with base 10: 'NS_CATEGORY'
Getting page [[am:????]]
etc.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-28 12:18
Message:
Since there are a lot of changes at the related scripts. Is this bug still
valid? Otherwise it could be closed due to out of date.
----------------------------------------------------------------------
Comment By: DarkoNeko (darkoneko)
Date: 2008-08-02 13:14
Message:
Logged In: YES
user_id=1809111
Originator: NO
Same for me
----version----
Pywikipedia [http] trunk/pywikipedia (r5781, Aug 01 2008, 21:44:26)
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)]
----trace----
Updating links on page [[scn:1054]].
No changes needed
Updating links on page [[be:1054]].
No changes needed
Getting 60 pages from wikipedia:oc...
Getting 60 pages from wikipedia:mk...
Checked for running processes. 1 processes currently running, including
the curr
ent process.
Getting 60 pages from wikipedia:sw...
Getting 60 pages from wikipedia:pi...
Getting 60 pages from wikipedia:sa...
Getting 60 pages from wikipedia:am...
ERROR: SaxParseBug caused error invalid literal for int() with base 10:
'NS_CATE
GORY'. Dump SaxParseBug_wikipedia_am__Sat_Aug_02_13-07-31_2008.dump
created.
Traceback (most recent call last):
File "C:\Program Files\TortoiseSVN\pywikipedia\pagegenerators.py", line
762, i
n __iter__
for loaded_page in self.preload(somePages):
File "C:\Program Files\TortoiseSVN\pywikipedia\pagegenerators.py", line
785, i
n preload
wikipedia.getall(site, pagesThisSite)
File "C:\Program Files\TortoiseSVN\pywikipedia\wikipedia.py", line 2950,
in ge
tall
_GetAll(site, pages, throttle, force).run()
File "C:\Program Files\TortoiseSVN\pywikipedia\wikipedia.py", line 2798,
in ru
n
xml.sax.parseString(data, handler)
File "c:\Program Files\Python25\lib\xml\sax\__init__.py", line 49, in
parseStr
ing
parser.parse(inpsrc)
File "c:\Program Files\Python25\lib\xml\sax\expatreader.py", line 107,
in pars
e
xmlreader.IncrementalParser.parse(self, source)
File "c:\Program Files\Python25\lib\xml\sax\xmlreader.py", line 123, in
parse
self.feed(buffer)
File "c:\Program Files\Python25\lib\xml\sax\expatreader.py", line 207,
in feed
self._parser.Parse(data, isFinal)
File "c:\Program Files\Python25\lib\xml\sax\expatreader.py", line 301,
in star
t_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "C:\Program Files\TortoiseSVN\pywikipedia\xmlreader.py", line 150,
in sta
rtElement
self.namespaceid = int(attrs['key'])
ValueError: invalid literal for int() with base 10: 'NS_CATEGORY'
invalid literal for int() with base 10: 'NS_CATEGORY'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2035835&group_…
Bugs item #2922193, was opened at 2009-12-28 11:56
Message generated for change (Tracker Item Submitted) made by masti01
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2922193&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 fails on pl.wikibooks
Initial Comment:
while running interwiki.py on pl.wiikibooks the script goes thru pages but from time to time it stalls with: "Received incomplete XML data. Sleeping for 15 seconds..." error and stays like that forever
example:
$python pywikipedia/interwiki.py -start:"H. K. T." -auto
NOTE: Number of pages queued is 0, trying to add 60 more.
Getting 60 pages from wikisource:pl...
[then some output about processing]
[and then ...]
======Post-processing [[pl:Ha! jeszcze o mnie...]]======
Updating links on page [[pl:Ha! jeszcze o mnie...]].
No changes needed
======Post-processing [[pl:H. K. T.]]======
Updating links on page [[pl:H. K. T.]].
No changes needed
NOTE: The first unfinished subject is [[pl:Had we never loved so kindly]]
NOTE: Number of pages queued is 10, trying to add 60 more.
Getting 60 pages from wikisource:pl...
Received incomplete XML data. Sleeping for 15 seconds...
Received incomplete XML data. Sleeping for 30 seconds...
Received incomplete XML data. Sleeping for 45 seconds...
Received incomplete XML data. Sleeping for 60 seconds...
Received incomplete XML data. Sleeping for 75 seconds...
Received incomplete XML data. Sleeping for 135 seconds...
Received incomplete XML data. Sleeping for 195 seconds...
Received incomplete XML data. Sleeping for 255 seconds...
Received incomplete XML data. Sleeping for 315 seconds...
and so on ...
python pywikipedia/version.py
Pywikipedia (r7830 (wikipedia.py), 2009/12/27, 14:20:21)
Python 2.6.2 (r262:71600, Aug 21 2009, 12:22:21)
[GCC 4.4.1 20090818 (Red Hat 4.4.1-6)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2922193&group_…
Bugs item #2905091, was opened at 2009-11-27 19:28
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2905091&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: JAn (jandudik)
>Assigned to: xqt (xqt)
Summary: interwiki revert war - emptyy pages
Initial Comment:
See
http://de.wikipedia.org/w/index.php?title=Microsoft_Windows_7&action=history
Bot strating from ug: adds interwiki. But bots strarting from other languages found empty page and remove link.
It should be
Getting 60 pages from wikipedia ug...
NOTE: [[ug:Windows 7]] is empty, skipping
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-28 11:44
Message:
done in r7835 (skipping the start page if page.isEmpty())
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-11-27 19:35
Message:
What's the point of having empty pages? This can be fixed by either
* Removing the empty page check and just add the interwiki
* Check if the starting page is empty and skip it
I would prefer the second option.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2905091&group_…
Bugs item #2920675, was opened at 2009-12-24 14:18
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2920675&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: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: teplates in cosmetic_changes.py
Initial Comment:
bot incorrectly removes interwiki from template documentation:
http://cs.wikipedia.org/w/index.php?title=%C5%A0ablona:!!/doc&curid=351673&…
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-28 11:33
Message:
done in r7834
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2920675&group_…
Bugs item #2908381, was opened at 2009-12-03 22:05
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908381&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: 9
Private: No
Submitted By: Mauro (mauro742)
>Assigned to: xqt (xqt)
Summary: Reopen #2901213: login.py fails (sound an API problem)
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7731, 2009/12/03, 18:28:57)
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2]
When I try to edit a page I 've this error:
Updating page [[..page..]] via API
Edit token has failed. Retrying.
Getting a token.
Sleeping for 9.0 seconds, 2009-12-03 21:33:35
Updating page [[..page..]] via API
Password for user Bot on wikipedia:it: Traceback (most recent call last):
File "myscript", line 430, in
main()
File "...", line 335, in main
LP_database[timestamps[i]].MakeLogTable()
File "script", line 533, in MakeLogTable
page.put(pagetxt, action)
File "wikipedia.py", line 1595, in put
sysop = self._getActionUser(action = 'edit', restriction = self.editRestriction, sysop = sysop)
File "wikipedia.py", line 1468, in _getActionUser
self.site().forceLogin(sysop = sysop)
File "wikipedia.py", line 5265, in forceLogin
if loginMan.login(retry = True):
File "login.py", line 272, in login
self.password = wikipedia.input(u'Password for user %s on %s:' % (self.username, self.site), password = True)
File "wikipedia.py", line 8188, in input
data = ui.input(question, password)
File "terminal_interface.py", line 238, in input
text = getpass.getpass('')
File "/usr/lib/python2.5/getpass.py", line 32, in unix_getpass
old = termios.tcgetattr(fd) # a copy to save
termios.error: (22, 'Invalid argument')
If I recall login.py:
Result: 411 Length Required
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop)
File "/home/mauro742/MauroBot/wikipedia.py", line 5606, in postData
f = MyURLopener.open(request)
File "/usr/lib/python2.5/urllib2.py", line 387, in open
response = meth(req, response)
File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.5/urllib2.py", line 419, in error
result = self._call_chain(*args)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/home/mauro742/MauroBot/wikipedia.py", line 8421, in http_error_302
self, req, fp, code, msg, headers)
File "/usr/lib/python2.5/urllib2.py", line 582, in http_error_302
return self.parent.open(new)
File "/usr/lib/python2.5/urllib2.py", line 387, in open
response = meth(req, response)
File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.5/urllib2.py", line 425, in error
return self._call_chain(*args)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 411: Length Required
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-27 18:10
Message:
patch #2921525 added in r7830.
Thanks a lot, andreasjs!
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2009-12-26 19:00
Message:
This is basically a server error: The server issues HTTP statys code 411
for a GET request if a Content-length header is included (this is not what
status code 411 means according to rfc2616). See patch 2921525 for a fix.
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2009-12-04 02:15
Message:
Here is some more testing with temporary lines added to wikipedia.py:
andreas-schwabs-computer:pywikipedia andreas$ svn diff wikipedia.py
Index: wikipedia.py
===================================================================
--- wikipedia.py (revision 7710)
+++ wikipedia.py (working copy)
@@ -5500,6 +5500,9 @@
while True:
try:
request = urllib2.Request(url, data, headers)
+ print url
+ print data
+ print headers
f = MyURLopener.open(request)
# read & info can raise socket.error
@@ -8287,6 +8290,7 @@
return result
def http_error_302(self, req, fp, code, msg, headers):
+ print self, req, fp, code, msg, headers
result = urllib2.HTTPRedirectHandler.http_error_302(
self, req, fp, code, msg, headers)
result.code = code
andreas-schwabs-computer:pywikipedia andreas$ python login.py -v -v
-pass:????
Pywikipediabot [http] trunk/pywikipedia (r7710, 2009/11/28, 22:35:07)
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)]
WARNING: Using -v -v on login.py might leak private data. When sharing,
please double check your password is not readable and log out your bots
session.
Logging in to wikisource:el as AndreasBot
http://el.wikisource.org/w/index.php?title=%CE%95%CE%B9%CE%B4%CE%B9%CE%BA%C…
wpPassword=????&wpLoginattempt=Aanmelden%20%26%20Inschrijven&wpName=AndreasBot&wpRemember=1&wpSkipCookieCheck=1
{'Content-Length': '108', 'Content-type':
'application/x-www-form-urlencoded', 'Accept-encoding': 'gzip',
'User-agent': 'PythonWikipediaBot/1.0'}
<wikipedia.U2RedirectHandler instance at 0xfb4d78> <urllib2.Request
instance at 0xfc2508> <addinfourl at 16501616 whose fp =
<socket._fileobject object at 0xfbdb30>> 302 Moved Temporarily Date: Fri,
04 Dec 2009 01:07:20 GMT
Server: Apache
Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
Set-Cookie: elwikisource_session=58328cf207535d693672ab72bedfb195; path=/;
HttpOnly
Set-Cookie: elwikisourceUserID=65; expires=Sun, 03-Jan-2010 01:07:20 GMT;
path=/; httponly
Set-Cookie: elwikisourceUserName=AndreasBot; expires=Sun, 03-Jan-2010
01:07:20 GMT; path=/; httponly
Set-Cookie: elwikisourceToken=571b5ee57ec693b6987ebaf81c66231a;
expires=Sun, 03-Jan-2010 01:07:20 GMT; path=/; httponly
Vary: Accept-Encoding,Cookie
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Location:
http://el.wikisource.org/wiki/%CE%9A%CF%8D%CF%81%CE%B9%CE%B1_%CE%A3%CE%B5%C…
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html; charset=utf-8
X-Cache: MISS from sq27.wikimedia.org
X-Cache-Lookup: MISS from sq27.wikimedia.org:3128
X-Cache: MISS from sq31.wikimedia.org
X-Cache-Lookup: MISS from sq31.wikimedia.org:80
Connection: close
Result: 411 Length Required
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address,
self.site.urlEncode(predata), sysop=self.sysop)
File "/Users/andreas/Desktop/WP/pywikipedia/wikipedia.py", line 5506, in
postData
f = MyURLopener.open(request)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 387, in open
response = meth(req, response)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 498, in http_response
'http', request, response, code, msg, hdrs)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 419, in error
result = self._call_chain(*args)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 360, in _call_chain
result = func(*args)
File "/Users/andreas/Desktop/WP/pywikipedia/wikipedia.py", line 8295, in
http_error_302
self, req, fp, code, msg, headers)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 582, in http_error_302
return self.parent.open(new)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 387, in open
response = meth(req, response)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 498, in http_response
'http', request, response, code, msg, hdrs)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 425, in error
return self._call_chain(*args)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 360, in _call_chain
result = func(*args)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 411: Length Required
andreas-schwabs-computer:pywikipedia andreas$
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2009-12-04 01:26
Message:
This error occurs with certain user names, and not with others. For
example, in Greek Wikisource, the user:AndreasBot gets this error, but not
user:AndreasJS. Changing the password makes no difference. I would send my
password to a developer who wants to debug this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908381&group_…