[Pywikipedia-l] [ pywikipediabot-Bugs-1994441 ] -prefixindex page generator strips everything before ":"

SourceForge.net noreply at sourceforge.net
Fri Jan 30 19:30:22 UTC 2009


Bugs item #1994441, was opened at 2008-06-15 11:48
Message generated for change (Comment added) made by russblau
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1994441&group_id=93107

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: Purodha B Blissenbach (purodha)
Assigned to: NicDumZ — Nicolas Dumazet (nicdumz)
Summary: -prefixindex page generator strips everything before ":" 

Initial Comment:
Here the error:

python /home/.../interwiki.py -v -array:10 -query:20 -prefixindex:Category:Wikipedia:Medmaacher_kan -namespace:14 -lang:ksh -family:wikipedia
Checked for running processes. 1 processes currently running, including the current process.
Pywikipediabot  (r5564 (wikipedia.py), Jun 13 2008, 09:43:07)
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.
Not a wiki page.
NOTE: Number of pages queued is 0, trying to add 20 more.
Retrieving Allpages special page for wikipedia:ksh from Medmaacher%20kan, namespace 14
Not a wiki page.
NOTE: Nothing left to do


What I had expected to see:

Retrieving Allpages special page for wikipedia:ksh from Wikipedia:Medmaacher%20kan, namespace 14


Thus, I believe, there are too man "Namepace" prefixes stripped. If I recall it right, another page generator had a similar problem in the past which was fixed.

----------------------------------------------------------------------

>Comment By: Russell Blau (russblau)
Date: 2009-01-30 14:30

Message:
This appears to have been fixed:

>pagegenerators.py -prefixindex:Category:Wikipedia:Medmaacher_kan
-namespace:14 -lang:
ksh
Checked for running processes. 1 processes currently running, including
the current process.
Saachjrupp:Wikipedia:Medmaacher kann Abchaasish
Saachjrupp:Wikipedia:Medmaacher kann Afar
Saachjrupp:Wikipedia:Medmaacher kann Affrekkaanß
Saachjrupp:Wikipedia:Medmaacher kann Ahl Jrishesh
Saachjrupp:Wikipedia:Medmaacher kann Ahl Norrdesch
...
etc.


----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-06-23 16:30

Message:
Logged In: NO 

close this?

----------------------------------------------------------------------

Comment By: Purodha B Blissenbach (purodha)
Date: 2008-06-15 19:21

Message:
Logged In: YES 
user_id=46450
Originator: YES

Thank you for the quick response.
I updated to the new revision, and the situation is not really better. It
seems, prefixindex in not working, somehow.

In fact, there are several categories "User *" from the Babel system in
the cu wikipedia, but:

(1) Try:

python /home/purodha/pywikipedia/interwiki.py -v -lang:cu
-prefixindex:Category:User
Checked for running processes. 1 processes currently running, including
the current process.
Pywikipediabot  (r5575 (wikipedia.py), Jun 15 2008, 15:38:19)
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.
Not a wiki page.
NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving Allpages special page for wikipedia:cu from User, namespace 14
Not a wiki page.
NOTE: Nothing left to do

I am wondering that it says "Retrieving Allpages special page ...", not
"... Prefixindex ..."

(2) Try:

python /home/.../interwiki.py -v -lang:cu -prefixindex:User -namespace:14
Checked for running processes. 1 processes currently running, including
the current process.
Pywikipediabot  (r5575 (wikipedia.py), Jun 15 2008, 15:38:19)
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.
Not a wiki page.
NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving Allpages special page for wikipedia:cu from User, namespace 0
Not a wiki page.
NOTE: Nothing left to do

Namespace:14 seems to be ignored. That should not be happening silently,
at least.

(3) Try:

python /home/..../interwiki.py -v -lang:cu -prefixindex:Category:User
-namespace:14
Checked for running processes. 1 processes currently running, including
the current process.
Pywikipediabot  (r5575 (wikipedia.py), Jun 15 2008, 15:38:19)
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.
Not a wiki page.
NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving Allpages special page for wikipedia:cu from User, namespace 14
Not a wiki page.
NOTE: Nothing left to do

I am not wondering anymore :-) but was expecting that, now,
"Category:User" should be looked for in NS 14, not "User"

(4) Try:

I had used -start:... as a poor replacement for -prefixindex:... before,
it works (partially) by returning pages (but incorrectly claims they were
in another namespace) 

python /home/.../interwiki.py -v -lang:cu -start:Category:User
Checked for running processes. 1 processes currently running, including
the current process.
Pywikipediabot  (r5575 (wikipedia.py), Jun 15 2008, 15:38:19)
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.
Not a wiki page.
NOTE: Number of pages queued is 0, trying to add 60 more.
Retrieving Allpages special page for wikipedia:cu from User, namespace 14
Not a wiki page.
Getting 60 pages from wikipedia:cu...
Not a wiki page.
WARNING: Outdated family file wikipedia: namespace['cu'][-2] is
'?????????', but should be '???´??????'
WARNING: Outdated family file wikipedia: namespace['cu'][-1] is
'????????', but should be '????´????'
WARNING: Outdated family file wikipedia: namespace['cu'][1] is '??????',
but should be '????´??'
WARNING: Outdated family file wikipedia: namespace['cu'][2] is
'?????????????', but should be '??´???????????'
WARNING: Outdated family file wikipedia: namespace['cu'][3] is
'???????????? ??????', but should be '??´?????????? ????´??'
WARNING: Outdated family file wikipedia: namespace['cu'][5] is '?????????
??????', but should be '????????? ????´??'
WARNING: Outdated family file wikipedia: namespace['cu'][6] is '????', but
should be '??´??'
WARNING: Outdated family file wikipedia: namespace['cu'][7] is '????
??????', but should be '??´?? ????´??'
WARNING: Outdated family file wikipedia: namespace['cu'][9] is 'MediaWiki
??????', but should be 'MediaWiki ????´??'
WARNING: Outdated family file wikipedia: namespace['cu'][10] is
'????????', but should be '??????´??'
WARNING: Outdated family file wikipedia: namespace['cu'][11] is '????????
??????', but should be '????????´ ????´??'
WARNING: Outdated family file wikipedia: namespace['cu'][12] is '??????',
but should be '??´????'
WARNING: Outdated family file wikipedia: namespace['cu'][13] is '??????
??????', but should be '??´???? ????´??'
WARNING: Outdated family file wikipedia: namespace['cu'][14] is
'?????????', but should be '????????´?'
WARNING: Outdated family file wikipedia: namespace['cu'][15] is '?????????
??????', but should be '????????´? ????´??'
NOTE: [[cu:????????´?:User bg]] does not have any interwiki links
NOTE: [[cu:????????´?:User bg-N]] does not have any interwiki links
WARNING: [[cu:????????´?:User cs]] is in namespace 0, but
[[lt:Kategorija:User cs]] is in namespace 14. Follow it anyway? ([y]es,
[n]o) 

1000s of such messages follows, so this is also not useable, but that is
likely another subject matter.

P.S.
Should I better have opened another but for this instead of using a reply?

----------------------------------------------------------------------

Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-06-15 12:14

Message:
Logged In: YES 
user_id=1963242
Originator: NO

Yup, right !
I fixed that bug in r5578 :)
Thanks for the report !

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1994441&group_id=93107



More information about the Pywikipedia-l mailing list