Bugs item #2770568, was opened at 2009-04-17 13:40
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2770568&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: Pending
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: TaBaZzz (tabazzz)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py Error messages & more
Initial Comment:
hello.
performing the following command on the hebrew wikipedia:
python interwiki.py -confirm תקשורת_נתונים
gives some error messages, and displaying lots of garbage (probably the coded contents of the article). here is the error message:
Getting 1 pages from wikipedia:he...
Traceback (most recent call last):
File "/home/tal/pywikipedia/pagegenerators.py", line 790, in __iter__
for loaded_page in self.preload(somePages):
File "/home/tal/pywikipedia/pagegenerators.py", line 809, in preload
wikipedia.getall(site, pagesThisSite)
File "/home/tal/pywikipedia/wikipedia.py", line 3141, in getall
_GetAll(site, pages, throttle, force).run()
File "/home/tal/pywikipedia/wikipedia.py", line 2952, in run
data = self.getData()
File "/home/tal/pywikipedia/wikipedia.py", line 3124, in getData
response, data = self.site.postForm(address, predata)
File "/home/tal/pywikipedia/wikipedia.py", line 4580, in postForm
cookies=self.cookies(sysop = sysop))
File "/home/tal/pywikipedia/wikipedia.py", line 4638, in postData
data = data.decode(self.encoding())
File "/usr/lib64/python2.5/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd7 in position 3131: unexpected end of data
'utf8' codec can't decode byte 0xd7 in position 3131: unexpected end of data
version:
Pywikipedia nightly:pywikipedia (r6611, Apr 16 2009, 15:41:15)
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-10 11:32
Message:
actual revision is r7755
as getData has been changed since r6611, please confirm whether this bug
is still valid.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2770568&group_…
Bugs item #2846488, was opened at 2009-08-28 20:22
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2846488&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: Rejected
Priority: 5
Private: No
Submitted By: Vincent Vinet (vvinet)
Assigned to: Nobody/Anonymous (nobody)
Summary: Import/Path errors
Initial Comment:
Pywikipedia (r-1 (unknown), 0 (unknown))
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3]
When modifying the path for performing imports, the config userData path should not be used, since the files are laid out in a static fashion. Instead, the __file__ path allows for the path to always contain the required files.
The included patch fixes the various import errors I found while trying to develop a bot that acted from outside de pywikipedia source folder.
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2009-12-09 02:21
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-24 08:42
Message:
unknown bot release. Please actualize your bot to get actual release
informations
----------------------------------------------------------------------
Comment By: Vincent Vinet (vvinet)
Date: 2009-10-05 11:34
Message:
@siebrand: Please refer to the first three lines of the bug report.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-10-04 19:02
Message:
Required output of version.py is not included in report.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2846488&group_…
Bugs item #2825215, was opened at 2009-07-22 07:43
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2825215&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: Works For Me
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: Nobody/Anonymous (nobody)
Summary: -start: never starts
Initial Comment:
interwiki.py -force -whenneeded -start:Waa -lang:nv
does not work for me with r7083
bot doesn't crash, but never load a list of pages
It happens in some else combination of languages and pages too
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2009-12-08 02:20
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: Mikko Silvonen (silvonen)
Date: 2009-07-29 17:18
Message:
I wonder if this is related to bug 2825996? As I wrote there, page
generation gets stuck after the last page of the wiki.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2825215&group_…
Bugs item #2901213, was opened at 2009-11-20 16:42
Message generated for change (Comment added) made by dungodung
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901213&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: 8
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
Summary: login.py fails (again)
Initial Comment:
python login.py
Password for user *** on wikipedia:it:
Logging in to wikipedia:it as ***
Result: 411 Length Required
Traceback (most recent call last):
File "login.py", line 393, in <module>
main()
File "login.py", line 389, in main
loginMan.login()
File "login.py", line 278, 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 5482, 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 8232, 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
python version.py
Pywikipedia [http] trunk/pywikipedia (r7670, 2009/11/20, 15:20:25)
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2]
----------------------------------------------------------------------
Comment By: Filip Maljkovic (dungodung)
Date: 2009-12-06 00:41
Message:
Still doesn't work for one of my bots.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-11-30 12:57
Message:
This has probably been fixed. Feel free to reopen if not (based on r7718)
----------------------------------------------------------------------
Comment By: Filip Maljkovic (dungodung)
Date: 2009-11-28 23:10
Message:
I'm getting the same error with my bot. What gives?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2901213&group_…
Bugs item #2889946, was opened at 2009-10-31 15:45
Message generated for change (Comment added) made by rubin16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2889946&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: Works For Me
Priority: 9
Private: No
Submitted By: Linar Khalitov (rubin16)
Assigned to: Nobody/Anonymous (nobody)
Summary: upload.py problem
Initial Comment:
Imagecopy stops working:
C:\pt>imagecopy.py -cat:???????????:?_????????_??_?????????
Getting [[?????????:???????????:? ???????? ?? ?????????]]...
Getting 60 pages from wikipedia:ru...
Getting 1 pages from wikipedia:ru...
username=&doit=Uitvoeren&ignorewarnings=1&commonsense=1&language=ru&newname=A.sc
hweizer.JPG&image=A.schweizer.JPG&project=wikipedia&remove_categories=1
Got CH desc.
{{Information
|Description={{ru|??????? ???????? ????? ???????????? ?????????? ????????, ?????
?????? [[:ru:???????, ???????|?. ????????]], 70 ?????????, 1973 ???.<br/>
== ?????????????? ==
[[:ru:?????????:???????????:???????? ???????? ?????|]]}}
|Source=Transferred from [http://ru.wikipedia.org ru.wikipedia]<br/>
(Original text : ''??????????? ????????? [[:ru:????????:????????? ?. ?????|?????
???? ?. ?????]]'')
|Date=1980 ???; ????????? {{Date|2009|10|28}}<br/>
({{Date|2009|10|28}} (original upload date))
|Author=[[:ru:Deutsche Post|????? ???]].
Original uploader was [[:ru:User:????????? ?. ?????|????????? ?. ?????]] at [htt
p://ru.wikipedia.org ru.wikipedia]
|Permission=PD-BECAUSE.
|other_versions=
}}
== {{int:license}} ==
{{PD-because|[[:ru:commons:Template:PD-Deutsche Bundespost stamps|]]}}
<!-- Templates "Template:????????? ?? ?????????" were used in the original descr
iption page as well , but do not appear to exist on commons. -->
== Original upload log ==
The original description page is/was [http://ru.wikipedia.org/w/index.php?title=
Image%3AA.schweizer.JPG here]. All following user names refer to ru.wikipedia.
* 2009-10-28 16:37 [[:ru:User:????????? ?. ?????|????????? ?. ?????]] 356?208? (
19588 bytes) ''<nowiki>{{??????????? | ???????? = ???????? ????? | ???????
? = ??????????? ????????? | ????? ???????? = 1973 | ????? = ?????
??? }}</nowiki>''
__NOTOC__
{{subst:Unc}} <!-- Remove this line once you have added categories -->
Getting 1 pages from wikipedia:ru...
Reading file http://upload.wikimedia.org/wikipedia/ru/9/93/A.schweizer.JPG
The suggested description is:
{{BotMoveToCommons|ru.wikipedia|year={{subst:CURRENTYEAR}}|month={{subst:CURRENT
MONTHNAME}}|day={{subst:CURRENTDAY}}}}
{{Information
|Description={{ru|??????? ???????? ????? ???????????? ?????????? ????????, ?????
?????? [[:ru:???????, ???????|?. ????????]], 70 ?????????, 1973 ???.<br/>
== ?????????????? ==
[[:ru:?????????:???????????:???????? ???????? ?????|]]}}
|Source=Transferred from [http://ru.wikipedia.org ru.wikipedia]<br/>
(Original text : ''??????????? ????????? [[:ru:????????:????????? ?. ?????|?????
???? ?. ?????]]'')
|Date=1980 ???; ????????? {{Date|2009|10|28}}<br/>
({{Date|2009|10|28}} (original upload date))
|Author=[[:ru:Deutsche Post|????? ???]].
Original uploader was [[:ru:User:????????? ?. ?????|????????? ?. ?????]] at [htt
p://ru.wikipedia.org ru.wikipedia]
|Permission=PD-BECAUSE.
|other_versions=
}}
== {{int:license}} ==
{{PD-because|[[:ru:commons:Template:PD-Deutsche Bundespost stamps|]]}}
<!-- Templates "Template:????????? ?? ?????????" were used in the original descr
iption page as well , but do not appear to exist on commons. -->
== Original upload log ==
The original description page is/was [http://ru.wikipedia.org/w/index.php?title=
Image%3AA.schweizer.JPG here]. All following user names refer to ru.wikipedia.
* 2009-10-28 16:37 [[:ru:User:????????? ?. ?????|????????? ?. ?????]] 356?208? (
19588 bytes) ''<nowiki>{{??????????? | ???????? = ???????? ????? | ???????
? = ??????????? ????????? | ????? ???????? = 1973 | ????? = ?????
??? }}</nowiki>''
__NOTOC__
{{subst:Unc}} <!-- Remove this line once you have added categories -->
Uploading file to commons:commons via API....
Error downloading data: 'ascii' codec can't decode byte 0xd0 in position 153: or
dinal not in range(128)
Request commons:/w/api.php?
Retrying in 1 minutes...
Retrying in 2 minutes...
It brokes on all images with the error: "Error downloading data: 'ascii' codec can't decode byte 0xd0 in position 153: or
dinal not in range(128)"
Any ideas ?
Version:
Pywikipedia [http] trunk/pywikipedia (r7576, 2009/10/31, 00:35:16)
Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: Linar Khalitov (rubin16)
Date: 2009-12-05 23:58
Message:
checked - works OK, r7735
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-11-26 01:14
Message:
Commenting out line 5464 seems to solve this:
#'Content-Length': str(len(data)),
Is this line needed for something else?
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-11-26 01:09
Message:
Still not fixed in 7692. Upload is broken for three weeks now :-(
Uploading file to commons:commons...
Result: 411 Length Required
All done!
Traceback (most recent call last):
File "d:\Wikipedia\KIT_pywikipedia\kit_description_generator.py", line
254, in
<module>
main(sys.argv[1:])
File "d:\Wikipedia\KIT_pywikipedia\kit_description_generator.py", line
246, in
main
bot.run()
File "d:\Wikipedia\KIT_pywikipedia\upload.py", line 390, in run
return self.upload_image()
File "d:\Wikipedia\KIT_pywikipedia\upload.py", line 227, in
upload_image
return self._uploadImageOld(debug)
File "d:\Wikipedia\KIT_pywikipedia\upload.py", line 339, in
_uploadImageOld
cookies = self.targetSite.cookies())
File "d:\Wikipedia\KIT_pywikipedia\upload.py", line 38, in
post_multipart
return site.postData(address, body, contentType = contentType, cookies
= coo
kies)
File "d:\Wikipedia\KIT_pywikipedia\wikipedia.py", line 5482, in
postData
f = MyURLopener.open(request)
File "C:\Program Files\Python25\lib\urllib2.py", line 380, in open
response = meth(req, response)
File "C:\Program Files\Python25\lib\urllib2.py", line 491, in
http_response
'http', request, response, code, msg, hdrs)
File "C:\Program Files\Python25\lib\urllib2.py", line 412, in error
result = self._call_chain(*args)
File "C:\Program Files\Python25\lib\urllib2.py", line 353, in
_call_chain
result = func(*args)
File "d:\Wikipedia\KIT_pywikipedia\wikipedia.py", line 8232, in
http_error_302
self, req, fp, code, msg, headers)
File "C:\Program Files\Python25\lib\urllib2.py", line 575, in
http_error_302
return self.parent.open(new)
File "C:\Program Files\Python25\lib\urllib2.py", line 380, in open
response = meth(req, response)
File "C:\Program Files\Python25\lib\urllib2.py", line 491, in
http_response
'http', request, response, code, msg, hdrs)
File "C:\Program Files\Python25\lib\urllib2.py", line 418, in error
return self._call_chain(*args)
File "C:\Program Files\Python25\lib\urllib2.py", line 353, in
_call_chain
result = func(*args)
File "C:\Program Files\Python25\lib\urllib2.py", line 499, in
http_error_defau
lt
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 411: Length Required
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-11-17 00:41
Message:
This isn't fixed
For example when running "imagecopy.py -lang:nl -family:wikipedia
-page:Bestand:Overzicht_theater_Mytilini.jpg"
I get:
Traceback (most recent call last):
File "C:\Program Files\Python25\lib\threading.py", line 460, in
__bootstrap
self.run()
File "D:\Wikipedia\pywikipedia\imagecopy.py", line 361, in run
bot.run()
File "D:\Wikipedia\pywikipedia\upload.py", line 387, in run
return self.upload_image()
File "D:\Wikipedia\pywikipedia\upload.py", line 224, in upload_image
return self._uploadImageOld(debug)
File "D:\Wikipedia\pywikipedia\upload.py", line 292, in _uploadImageOld
self.read_file_content()
File "D:\Wikipedia\pywikipedia\upload.py", line 113, in
read_file_content
file = uo.open(self.url)
File "C:\Program Files\Python25\lib\urllib2.py", line 380, in open
response = meth(req, response)
File "C:\Program Files\Python25\lib\urllib2.py", line 491, in
http_response
'http', request, response, code, msg, hdrs)
File "C:\Program Files\Python25\lib\urllib2.py", line 418, in error
return self._call_chain(*args)
File "C:\Program Files\Python25\lib\urllib2.py", line 353, in
_call_chain
result = func(*args)
File "C:\Program Files\Python25\lib\urllib2.py", line 499, in
http_error_defau
lt
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-11-15 22:41
Message:
fixed in r7648-7650 by alexsh
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2009-11-06 13:25
Message:
New behaviour since upload.py was updated:
C:\pt>imagecopy.py
-cat:Изображения:К_переносу_на_Викисклад
Getting [[Категория:Изображения:К переносу
на Викисклад]]...
Getting 60 pages from wikipedia:ru...
Getting 1 pages from wikipedia:ru...
username=&doit=Uitvoeren&ignorewarnings=1&commonsense=1&language=ru&newname=A.sc
hweizer.JPG&image=A.schweizer.JPG&project=wikipedia&remove_categories=1
Getting 1 pages from wikipedia:ru...
Got CH desc.
{{Information
|Description={{ru|Гашёная почтовая марка
Федеративной Республики Германия, посвя
щённая [[:ru:Швейцер, Альберт|А. Швейцеру]],
70 пфеннигов, 1973 год.<br/>
== Лицензирование ==
[[:ru:Категория:Изображения:Немецкие
почтовые марки|]]}}
|Source=Transferred from [http://ru.wikipedia.org ru.wikipedia]<br/>
(Original text : ''собственная коллекция
[[:ru:Участник:Александр в. марин|Алекс
андр в. марин]]'')
|Date=1980 год; загружено {{Date|2009|10|28}}<br/>
({{Date|2009|10|28}} (original upload date))
|Author=[[:ru:Deutsche Post|почта ФРГ]].
Original uploader was [[:ru:User:Александр в.
марин|Александр в. марин]] at [htt
p://ru.wikipedia.org ru.wikipedia]
|Permission=PD-BECAUSE.
|other_versions=
}}
== {{int:license}} ==
{{PD-because|[[:ru:commons:Template:PD-Deutsche Bundespost stamps|]]}}
<!-- Templates "Template:Перенести на Викисклад" were
used in the original descr
iption page as well , but do not appear to exist on commons. -->
== Original upload log ==
The original description page is/was
[http://ru.wikipedia.org/w/index.php?title=
Image%3AA.schweizer.JPG here]. All following user names refer to
ru.wikipedia.
* 2009-10-28 16:37 [[:ru:User:Александр в.
марин|Александр в. марин]] 356?208? (
19588 bytes) ''<nowiki>{{Изображение | Описание =
почтовая марка | Источни
к = собственная коллекция | Время
создания = 1973 | Автор = почта
ФРГ }}</nowiki>''
__NOTOC__
[[Category:Albert Schweitzer]]
Reading file
http://upload.wikimedia.org/wikipedia/ru/9/93/A.schweizer.JPG
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Python25\lib\threading.py", line 488, in __bootstrap_inner
self.run()
File "C:\pt\imagecopy.py", line 280, in run
bot.run()
File "C:\pt\upload.py", line 387, in run
return self.upload_image()
File "C:\pt\upload.py", line 227, in upload_image
self.read_file_content()
File "C:\pt\upload.py", line 108, in read_file_content
uo = wikipedia.MyURLopener()
AttributeError: OpenerDirector instance has no __call__ method
C:\pt>version.py
Pywikipedia [http] trunk/pywikipedia (r7602, 2009/11/06, 07:10:02)
Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit
(Intel)]
Something wrong with my Python package ?
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2009-11-04 11:27
Message:
works OK, if changed to use_api = false...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2889946&group_…
Bugs item #2908381, was opened at 2009-12-03 16:05
Message generated for change (Comment added) made by andreasjs
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: Open
Resolution: None
Priority: 9
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
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: AndreasJS (andreasjs)
Date: 2009-12-03 20: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-03 19: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_…
Bugs item #2908381, was opened at 2009-12-03 16:05
Message generated for change (Comment added) made by andreasjs
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: Open
Resolution: None
Priority: 9
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
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: AndreasJS (andreasjs)
Date: 2009-12-03 19: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_…
Bugs item #2908381, was opened at 2009-12-03 22:05
Message generated for change (Settings changed) made by mauro742
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: Open
Resolution: None
>Priority: 9
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908381&group_…
Bugs item #2908381, was opened at 2009-12-03 22:05
Message generated for change (Tracker Item Submitted) made by mauro742
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908381&group_…
Bugs item #2908221, was opened at 2009-12-03 16:25
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908221&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: -continue skips list of pages
Initial Comment:
interwiki.py -continue -force
in interwikidump.txt is list of pages
Homonymie
Homonymum
...
Horní Heřmanice
Horní Heřmanice (okres Ústí nad Orlicí)
Bot loads 60 pages:
NOTE: The first unfinished subject is [[cs:Horní Heřmanice (okres Ústí nad Orlicí)]]
NOTE: Number of pages queued is 41, trying to add 60 more.
All pages stored in dump file are skipped
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-03 19:29
Message:
done in r7731
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908221&group_…