Feature Requests item #2899087, was opened at 2009-11-17 09:22
Message generated for change (Tracker Item Submitted) made by mike_lifeguard
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2899087&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: Mike.lifeguard (mike_lifeguard)
Assigned to: Nobody/Anonymous (nobody)
Summary: delete.py should accept pageids
Initial Comment:
It is apparently possible to delete invalid titles using the API by specifying the pageid. delete.py should therefore accept pageids to delete, rather than titles. This should be possible with the -pageid:1234 parameter, or -file:/whatever -pageid if the file is a list of pageids rather than titles.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2899087&group_…
Bugs item #2889946, was opened at 2009-10-31 13:45
Message generated for change (Settings changed) made by multichill
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: Open
>Resolution: Accepted
>Priority: 8
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: Multichill (multichill)
Date: 2009-11-16 22: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 20:41
Message:
fixed in r7648-7650 by alexsh
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2009-11-06 11: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 09: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 #2577598, was opened at 2009-02-07 16:49
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2577598&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: Out of Date
Priority: 5
Private: No
Submitted By: Mikko Silvonen (silvonen)
Assigned to: Nobody/Anonymous (nobody)
Summary: AttributeError: 'NoneType' object has no attribute 'query'
Initial Comment:
My autonomous interwiki run on all fiwiki categories crashed today with the following error.
...
======Post-processing [[fi:Luokka:Cradle of Filth]]======
Updating links on page [[es:Categoría:Cradle of Filth]].
No changes needed
Updating links on page [[ja:Category:kureidoru obu fuirusu]].
No changes needed
Updating links on page [[sk:Kategória:Cradle of Filth]].
No changes needed
Updating links on page [[en:Category:Cradle of Filth]].
No changes needed
Updating links on page [[fi:Luokka:Cradle of Filth]].
No changes needed
NOTE: The first unfinished subject is [[fi:Luokka:Cradle of Filthin albumit]]
NOTE: Number of pages queued is 99, trying to add 60 more.
Dump fi (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 1818, in <module>
bot.run()
File "interwiki.py", line 1538, in run
self.queryStep()
File "interwiki.py", line 1512, in queryStep
self.oneQuery()
File "interwiki.py", line 1480, in oneQuery
site = self.selectQuerySite()
File "interwiki.py", line 1454, in selectQuerySite
self.generateMore(globalvar.maxquerysize - mycount)
File "interwiki.py", line 1388, in generateMore
page = self.pageGenerator.next()
File "c:\svn\pywikipedia\pagegenerators.py", line 670, in NamespaceFilterPageGenerator
for page in generator:
File "c:\svn\pywikipedia\pagegenerators.py", line 688, in DuplicateFilterPageGenerator
for page in generator:
File "c:\svn\pywikipedia\pagegenerators.py", line 239, in AllpagesPageGenerator
for page in site.allpages(start = start, namespace = namespace, includeredirects = includeredirects):
File "c:\svn\pywikipedia\wikipedia.py", line 5424, in allpages
for p in soup.api.query.allpages:
AttributeError: 'NoneType' object has no attribute 'query'
>python version.py
Pywikipedia [http] trunk/pywikipedia (r6334, Feb 06 2009, 16:42:40)
Python 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-16 12:01
Message:
old code stuff
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-05-25 12:43
Message:
Maybe this is due to unrecognized "server has a problem" error.
----------------------------------------------------------------------
Comment By: Michael Heggen (twisted86)
Date: 2009-03-16 20:50
Message:
I am also getting this error when trying the following:
python replace.py -start:! epee épée
(or any other replace query using "start:!", for that matter)
Exact error:
Checked for running processes. 1 processes currently running, including
the current process.
Traceback (most recent call last):
File "/Users/michael/pywikipedia/pagegenerators.py", line 776, in
__iter__
for page in self.wrapped_gen:
File "/Users/michael/pywikipedia/pagegenerators.py", line 709, in
DuplicateFilterPageGenerator
for page in generator:
File "/Users/michael/pywikipedia/pagegenerators.py", line 248, in
AllpagesPageGenerator
for page in site.allpages(start = start, namespace = namespace,
includeredirects = includeredirects):
File "/Users/michael/pywikipedia/wikipedia.py", line 5503, in allpages
for p in soup.api.query.allpages:
AttributeError: 'NoneType' object has no attribute 'query'
'NoneType' object has no attribute 'query'
I am using:
Pywikipedia [http] trunk/pywikipedia (r6508, Mar 15 2009, 12:35:14)
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
[GCC 4.0.1 (Apple Inc. build 5465)]
MediaWiki 1.14.0
PHP 5.2.8 (cgi-fcgi)
MySQL 5.0.67.d7-ourdelta-log
I just installed PyWikipedia, so this is pretty frustrating. If I knew how
to do anything in Python beyond "Hello, world!", I'd try to fix it, but I
am 15 years out of practice on coding anything.
----------------------------------------------------------------------
Comment By: Michael Heggen (twisted86)
Date: 2009-03-16 20:49
Message:
I am also getting this error when trying the following:
python replace.py -start:! epee épée
(or any other replace query using "start:!", for that matter)
Exact error:
Checked for running processes. 1 processes currently running, including
the current process.
Traceback (most recent call last):
File "/Users/michael/pywikipedia/pagegenerators.py", line 776, in
__iter__
for page in self.wrapped_gen:
File "/Users/michael/pywikipedia/pagegenerators.py", line 709, in
DuplicateFilterPageGenerator
for page in generator:
File "/Users/michael/pywikipedia/pagegenerators.py", line 248, in
AllpagesPageGenerator
for page in site.allpages(start = start, namespace = namespace,
includeredirects = includeredirects):
File "/Users/michael/pywikipedia/wikipedia.py", line 5503, in allpages
for p in soup.api.query.allpages:
AttributeError: 'NoneType' object has no attribute 'query'
'NoneType' object has no attribute 'query'
I am using:
Pywikipedia [http] trunk/pywikipedia (r6508, Mar 15 2009, 12:35:14)
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
[GCC 4.0.1 (Apple Inc. build 5465)]
MediaWiki 1.14.0
PHP 5.2.8 (cgi-fcgi)
MySQL 5.0.67.d7-ourdelta-log
I just installed PyWikipedia, so this is pretty frustrating. If I knew how
to do anything in Python beyond "Hello, world!", I'd try to fix it, but I
am 15 years out of practice on coding anything.
----------------------------------------------------------------------
Comment By: Multichill (multichill)
Date: 2009-02-07 17:37
Message:
I had the same error yesterday. There seems to be something wrong with the
allpages generator.
The api was changed recently, maybe that has something to do with it.
soup = BeautifulSoup(text, convertEntities=BeautifulSoup.HTML_ENTITIES)
(line 5421 in wikipedia.py) should return an object.
Looks like soup exists, but api doesn't exist. That's strange. When i look
at http://commons.wikimedia.org/w/api.php api is the root element.
We should probably build in some checks to see if we got everything
instead of assuming we get it right straight away.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2577598&group_…
Bugs item #2885545, was opened at 2009-10-24 19:27
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2885545&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: Tgr (tgr_)
Assigned to: xqt (xqt)
Summary: Encoding problem in wikipedia.py network error handling
Initial Comment:
A pywikipedia user received this error:
Traceback (most recent call last):
File "D:\progik\pywikipedia\pagegenerators.py", line 801, in __iter__
for loaded_page in self.preload(somePages):
File "D:\progik\pywikipedia\pagegenerators.py", line 826, in preload
wikipedia.getall(site, pagesThisSite)
File "D:\progik\pywikipedia\wikipedia.py", line 3887, in getall
_GetAll(site, pages, throttle, force).run()
File "D:\progik\pywikipedia\wikipedia.py", line 3698, in run
output(u''.join(traceback.format_exception(*sys.exc_info())))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 36: ordinal
not in range(128)
She is using a Hungarian Windows, so I'm assuming the system error message has some non-ASCII character causing this error. The error is annoying because it this hides the actual network error, and makes it hard to diagnose the real problem.
She uses Pywikipedia [http] trunk/pywikipedia (r7537, 2009/10/23, 17:13:00) with Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)].
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-16 11:49
Message:
done in r7656
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2885545&group_…
Bugs item #1894621, was opened at 2008-02-15 21:09
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1894621&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: NicDumZ — Nicolas Dumazet (nicdumz)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py wp.Error "Invalid title '' "
Initial Comment:
r5030 :
interwiki.py -autonomous -start:"Parti whig"
Stack :
Sleeping for 5.0 seconds, 2008-02-15 20:32:59
NOTE: [[Particule (grammaire)]]: [[fr:Mot-outil]] gives duplicate interwiki on same site [[de:Synsemantikum]]
NOTE: [[Particule (grammaire)]]: [[fr:Mot-outil]] gives duplicate interwiki on same site [[br:Ger goullo]]
Getting 60 pages from wikipedia:en...
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[ro:Restauraţia franceză]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[fa:بازگشت بوربونها به سلطنت فرانسه]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[he:הרסטורציה]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[no:Restaurasjonen i Frankrike]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[es:Restauración Francesa]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[ja:フランス復古王政]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[nl:Restauratie (Frankrijk)]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[sv:Bourbonska restaurationen]]
NOTE: [[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives duplicate interwiki on same site [[fr:Restauration française]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[de:Restauration (Frankreich)]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[it:Restaurazione]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[sr:Бурбонска рестаурација]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[ru:Реставрация Бурбонов]]
[[Partis politiques sous la Restauration]]: [[en:Bourbon Restoration]] gives new interwiki [[tr:Restorasyon (Fransa)]]
[[Partition d'un entier]]: [[en:Partition (number theory)]] gives new interwiki [[zh:整數分拆]]
[[Partition d'un entier]]: [[en:Partition (number theory)]] gives new interwiki [[he:פונקציית החלוקה (תורת המספרים)]]
[[Partition d'un entier]]: [[en:Partition (number theory)]] gives new interwiki [[ja:整数分割]]
[[Partition d'un entier]]: [[en:Partition (number theory)]] gives new interwiki [[sv:Partitionsfunktionen]]
NOTE: [[Partition d'un entier]]: [[en:Partition (number theory)]] gives duplicate interwiki on same site [[fr:Partage d'un entier]]
[[Partition d'un entier]]: [[en:Partition (number theory)]] gives new interwiki [[de:Partitionsfunktion]]
[[Partition d'un entier]]: [[en:Partition (number theory)]] gives new interwiki [[it:Partizione di un intero]]
[[Partition d'un entier]]: [[en:Partition (number theory)]] gives new interwiki [[ru:Разбиение числа]]
Dump fr (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 1644, in <module>
bot.run()
File "interwiki.py", line 1408, in run
self.queryStep()
File "interwiki.py", line 1382, in queryStep
self.oneQuery()
File "interwiki.py", line 1378, in oneQuery
subject.workDone(self)
File "interwiki.py", line 679, in workDone
redirectTargetPage = wikipedia.Page(page.site(), arg.args[0])
File "/home/nico/projets/pywikipedia/wikipedia.py", line 346, in __init__
raise Error(u"Invalid title '%s'" % title )
wikipedia.Error: Invalid title ''
Cheers !
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-15 21:28
Message:
Might be fixed in r6801
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-18 13:45
Message:
Logged In: YES
user_id=1963242
Originator: YES
My patch apparently solves the first issue, but I just raised again the
same error, working on a dump :
python redirect.py double
-xml:/media/hda5/frwiki-20080216-pages-articles.xml
Checked for running processes. 2 processes currently running, including
the current process.
Reading XML dump...
10000 pages read...
20000 pages read...
30000 pages read...
40000 pages read...
50000 pages read...
60000 pages read...
70000 pages read...
80000 pages read...
90000 pages read...
100000 pages read...
110000 pages read...
120000 pages read...
130000 pages read...
Traceback (most recent call last):
File "redirect.py", line 398, in <module>
main()
File "redirect.py", line 394, in main
bot.run()
File "redirect.py", line 349, in run
self.fix_double_redirects()
File "redirect.py", line 260, in fix_double_redirects
for redir_name in self.generator.retrieve_double_redirects():
File "redirect.py", line 204, in retrieve_double_redirects
dict = self.get_redirects_from_dump()
File "redirect.py", line 128, in get_redirects_from_dump
if wikipedia.Page(site, entry.title).namespace() not in
self.namespaces:
File "/home/nico/projets/pywikipedia/wikipedia.py", line 346, in
__init__
raise Error(u"Invalid title '%s'" % title )
This came from a very particular page, entitled " " (a non-breaking space)
: http://fr.wikipedia.org/w/index.php?title=%C2%A0&redirect=no
I'm thinking of using strip(" ") instead of strip(). I tried, and it works
for me now.
Index: wikipedia.py
===================================================================
--- wikipedia.py (révision 5044)
+++ wikipedia.py (copie de travail)
@@ -332,7 +332,9 @@
while u" " in t:
t = t.replace(u" ", u" ")
# Strip spaces at both ends
- t = t.strip()
+ # strip(" ") *is* different of strip() because strip()
+ # also removes non breaking spaces
+ t = t.strip(" ")
# Remove left-to-right and right-to-left markers.
t = t.replace(u'\u200e', '').replace(u'\u200f', '')
# leading colon implies main namespace instead of the
default
@@ -627,6 +629,9 @@
self._getexception = NoPage
raise
except IsRedirectPage, arg:
+ if not arg[0]:
+ output(u"WARNING: %s contains an empty redirect tag,
ignoring it" % self.aslink())
+ pass
self._getexception = IsRedirectPage
self._redirarg = arg
if not get_redirect and not nofollow_redirects:
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-16 12:06
Message:
Logged In: YES
user_id=1963242
Originator: YES
This simple patch will certainly solve the issue :
Index: wikipedia.py
===================================================================
--- wikipedia.py (révision 5036)
+++ wikipedia.py (copie de travail)
@@ -627,8 +627,11 @@
self._getexception = NoPage
raise
except IsRedirectPage, arg:
+ if not arg[0]:
+ output(u"WARNING: %s contains an empty redirect tag,
ignoring it" % self.aslink())
+ pass
self._getexception = IsRedirectPage
self._redirarg = arg
if not get_redirect and not nofollow_redirects:
raise
except SectionError:
(I don't think that modifying the redirectRegex would be a good idea,
since it would not allow us to remove an empty redirect using that Regex)
Also, per http://fr.wikipedia.org/wiki/Utilisateur:DumZiBoT/Temp, pages
such as :
#REDIRECT [[]]
#REDIRECT [[Page]]
Are not considered by mediawiki as a redirect page, so it's OK to ignore
the first redirect :)
Cheers !
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-02-15 21:51
Message:
Logged In: YES
user_id=1963242
Originator: YES
Actually, this was caused by an empty redirect tag (#REDIRECT [[]])
inserted in that diff :
http://en.wikipedia.org/w/index.php?title=Louisiana_Waterthrush&diff=190851…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1894621&group_…
Bugs item #2885545, was opened at 2009-10-24 19:27
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2885545&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tgr (tgr_)
>Assigned to: xqt (xqt)
Summary: Encoding problem in wikipedia.py network error handling
Initial Comment:
A pywikipedia user received this error:
Traceback (most recent call last):
File "D:\progik\pywikipedia\pagegenerators.py", line 801, in __iter__
for loaded_page in self.preload(somePages):
File "D:\progik\pywikipedia\pagegenerators.py", line 826, in preload
wikipedia.getall(site, pagesThisSite)
File "D:\progik\pywikipedia\wikipedia.py", line 3887, in getall
_GetAll(site, pages, throttle, force).run()
File "D:\progik\pywikipedia\wikipedia.py", line 3698, in run
output(u''.join(traceback.format_exception(*sys.exc_info())))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf3 in position 36: ordinal
not in range(128)
She is using a Hungarian Windows, so I'm assuming the system error message has some non-ASCII character causing this error. The error is annoying because it this hides the actual network error, and makes it hard to diagnose the real problem.
She uses Pywikipedia [http] trunk/pywikipedia (r7537, 2009/10/23, 17:13:00) with Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)].
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2885545&group_…
Bugs item #2889946, was opened at 2009-10-31 13:45
Message generated for change (Comment added) made by xqt
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: Fixed
Priority: 5
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: xqt (xqt)
Date: 2009-11-15 20:41
Message:
fixed in r7648-7650 by alexsh
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2009-11-06 11: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 09: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 #2898041, was opened at 2009-11-15 15:06
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2898041&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: 8
Private: No
Submitted By: Linar Khalitov (rubin16)
Assigned to: Nobody/Anonymous (nobody)
Summary: continue of 2897243
Initial Comment:
dens@vz153 ~/pywikipedia $ python interwiki.py -continue -autonomous -nolog -query:20
Traceback (most recent call last):
File "interwiki.py", line 2164, in <module>
mainpagename = site.mediawiki_message('mainpage')
File "/home/dens/pywikipedia/wikipedia.py", line 5955, in mediawiki_message
datas = query.GetData(params, self)['query']['allmessages'][0]
File "/home/dens/pywikipedia/query.py", line 124, in GetData
jsontext = site.getUrl( path, retry=True, sysop=sysop, data=data)
File "/home/dens/pywikipedia/wikipedia.py", line 5572, in getUrl
if self.cookies(sysop = sysop) and not no_hostname:
File "/home/dens/pywikipedia/wikipedia.py", line 5198, in cookies
self._loadCookies(sysop = sysop)
File "/home/dens/pywikipedia/wikipedia.py", line 5248, in _loadCookies
if k and v and k not in self._cookies[index]:
TypeError: argument of type 'NoneType' is not iterable
dens@vz153 ~/pywikipedia $ python version.py
Pywikipedia [http] trunk/pywikipedia (r7650, 2009/11/15, 13:17:01)
Python 2.5.4 (r254:67916, Aug 23 2009, 21:30:57)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)]
r7650 - not working
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-11-15 16:11
Message:
done in r7652 by alexsh
----------------------------------------------------------------------
Comment By: Linar Khalitov (rubin16)
Date: 2009-11-15 15:07
Message:
more priority
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2898041&group_…
Bugs item #2898041, was opened at 2009-11-15 17:06
Message generated for change (Comment added) made by rubin16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2898041&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: Open
Resolution: None
>Priority: 8
Private: No
Submitted By: Linar Khalitov (rubin16)
Assigned to: Nobody/Anonymous (nobody)
Summary: continue of 2897243
Initial Comment:
dens@vz153 ~/pywikipedia $ python interwiki.py -continue -autonomous -nolog -query:20
Traceback (most recent call last):
File "interwiki.py", line 2164, in <module>
mainpagename = site.mediawiki_message('mainpage')
File "/home/dens/pywikipedia/wikipedia.py", line 5955, in mediawiki_message
datas = query.GetData(params, self)['query']['allmessages'][0]
File "/home/dens/pywikipedia/query.py", line 124, in GetData
jsontext = site.getUrl( path, retry=True, sysop=sysop, data=data)
File "/home/dens/pywikipedia/wikipedia.py", line 5572, in getUrl
if self.cookies(sysop = sysop) and not no_hostname:
File "/home/dens/pywikipedia/wikipedia.py", line 5198, in cookies
self._loadCookies(sysop = sysop)
File "/home/dens/pywikipedia/wikipedia.py", line 5248, in _loadCookies
if k and v and k not in self._cookies[index]:
TypeError: argument of type 'NoneType' is not iterable
dens@vz153 ~/pywikipedia $ python version.py
Pywikipedia [http] trunk/pywikipedia (r7650, 2009/11/15, 13:17:01)
Python 2.5.4 (r254:67916, Aug 23 2009, 21:30:57)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)]
r7650 - not working
----------------------------------------------------------------------
>Comment By: Linar Khalitov (rubin16)
Date: 2009-11-15 17:07
Message:
more priority
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2898041&group_…
Bugs item #2898041, was opened at 2009-11-15 17:06
Message generated for change (Tracker Item Submitted) made by rubin16
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2898041&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Linar Khalitov (rubin16)
Assigned to: Nobody/Anonymous (nobody)
Summary: continue of 2897243
Initial Comment:
dens@vz153 ~/pywikipedia $ python interwiki.py -continue -autonomous -nolog -query:20
Traceback (most recent call last):
File "interwiki.py", line 2164, in <module>
mainpagename = site.mediawiki_message('mainpage')
File "/home/dens/pywikipedia/wikipedia.py", line 5955, in mediawiki_message
datas = query.GetData(params, self)['query']['allmessages'][0]
File "/home/dens/pywikipedia/query.py", line 124, in GetData
jsontext = site.getUrl( path, retry=True, sysop=sysop, data=data)
File "/home/dens/pywikipedia/wikipedia.py", line 5572, in getUrl
if self.cookies(sysop = sysop) and not no_hostname:
File "/home/dens/pywikipedia/wikipedia.py", line 5198, in cookies
self._loadCookies(sysop = sysop)
File "/home/dens/pywikipedia/wikipedia.py", line 5248, in _loadCookies
if k and v and k not in self._cookies[index]:
TypeError: argument of type 'NoneType' is not iterable
dens@vz153 ~/pywikipedia $ python version.py
Pywikipedia [http] trunk/pywikipedia (r7650, 2009/11/15, 13:17:01)
Python 2.5.4 (r254:67916, Aug 23 2009, 21:30:57)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)]
r7650 - not working
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2898041&group_…