Bugs item #3411377, was opened at 2011-09-19 10:31
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411377&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: Invalid
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: xqt (xqt)
Summary: interwiki does not use hint
Initial Comment:
I give a hint for French. The French page is not downloaded.
python interwiki.py en:category:Achatinidae -hint:fr
Getting 1 pages from wikipedia:en...
[[en:Category:Achatinidae]]: [[en:Category:Achatinidae]] gives new interwiki [[es:Categoría:Achatinidae]]
[[en:Category:Achatinidae]]: [[en:Category:Achatinidae]] gives new interwiki [[cs:Kategorie:Achatinovití]]
[[en:Category:Achatinidae]]: [[en:Category:Achatinidae]] gives new interwiki [[pt:Categoria:Achatinidae]]
Getting 1 pages from wikipedia:es...
Getting 1 pages from wikipedia:cs...
Getting 1 pages from wikipedia:pt...
======Post-processing [[en:Category:Achatinidae]]======
No changes needed on page [[es:Categoría:Achatinidae]]
No changes needed on page [[cs:Kategorie:Achatinovití]]
No changes needed on page [[en:Category:Achatinidae]]
No changes needed on page [[pt:Categoria:Achatinidae]]
====================================================================================
python version.py
Pywikipedia [http] trunk/pywikipedia (r9534, 2011/09/19, 04:03:22)
Python 2.5.5 (r255:77872, Mar 16 2011, 15:12:46)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-09-20 19:35
Message:
use python interwiki.py en:category:Achatinidae -hint:fr:
with colon after fr (see documentation or interwiki.py -help for this)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411377&group_…
Bugs item #3411408, was opened at 2011-09-19 12:03
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411408&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: Dr. Trigon (drtrigon)
Assigned to: xqt (xqt)
Summary: Botlist broken
Initial Comment:
DrTrigonBot complained about a
"HTTPError: HTTP Error 400: Bad Request"
that was originating from botlist.py. I was able to track this
down to the point where "タチコマ robot" should be used in an
URL as offset (line 96) which caused the error when puting in
this bot name. As I can see a
urllib.quote(...)
should solve the problem as done in the attached file. Could
please someone verify this (if there is time) and then commit
this change to SVN.
Btw: I was not able to find something similar to "urllib.quote"
in the bot framework so I had to import urllib.
Thanks a lot and Greetings
DrTrigon
[look also at http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-September/006967.ht…]
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-09-20 19:09
Message:
fixed in r9535. thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411408&group_…
Bugs item #3411427, was opened at 2011-09-19 11:07
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411427&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Treat code-only interwikis as valid for main page
Initial Comment:
Interwiki in the form of [[en:]] links to the main page.
It is easy to generate (on Toolserver or from SiteMatrix) a list of interwikis in this form for the main page and they are correct links.
So the bot must not remove them nor change them.
Suggesting the following process:
1) Pull MediaWiki:Mainpage and store it in some variable.
2) When dealing with interwiki, first compare, if the page title == that variable.
3) If yes, simply put short interwikis there (or at least do not remove nor correct them to long)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411427&group_…
Bugs item #3411408, was opened at 2011-09-19 12:03
Message generated for change (Settings changed) made by drtrigon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411408&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: Dr. Trigon (drtrigon)
>Assigned to: xqt (xqt)
Summary: Botlist broken
Initial Comment:
DrTrigonBot complained about a
"HTTPError: HTTP Error 400: Bad Request"
that was originating from botlist.py. I was able to track this
down to the point where "タチコマ robot" should be used in an
URL as offset (line 96) which caused the error when puting in
this bot name. As I can see a
urllib.quote(...)
should solve the problem as done in the attached file. Could
please someone verify this (if there is time) and then commit
this change to SVN.
Btw: I was not able to find something similar to "urllib.quote"
in the bot framework so I had to import urllib.
Thanks a lot and Greetings
DrTrigon
[look also at http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-September/006967.ht…]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411408&group_…
Bugs item #3411408, was opened at 2011-09-19 12:03
Message generated for change (Tracker Item Submitted) made by drtrigon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411408&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: Dr. Trigon (drtrigon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Botlist broken
Initial Comment:
DrTrigonBot complained about a
"HTTPError: HTTP Error 400: Bad Request"
that was originating from botlist.py. I was able to track this
down to the point where "タチコマ robot" should be used in an
URL as offset (line 96) which caused the error when puting in
this bot name. As I can see a
urllib.quote(...)
should solve the problem as done in the attached file. Could
please someone verify this (if there is time) and then commit
this change to SVN.
Btw: I was not able to find something similar to "urllib.quote"
in the bot framework so I had to import urllib.
Thanks a lot and Greetings
DrTrigon
[look also at http://lists.wikimedia.org/pipermail/pywikipedia-l/2011-September/006967.ht…]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411408&group_…
Bugs item #3411377, was opened at 2011-09-19 08:31
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411377&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: interwiki
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki does not use hint
Initial Comment:
I give a hint for French. The French page is not downloaded.
python interwiki.py en:category:Achatinidae -hint:fr
Getting 1 pages from wikipedia:en...
[[en:Category:Achatinidae]]: [[en:Category:Achatinidae]] gives new interwiki [[es:Categoría:Achatinidae]]
[[en:Category:Achatinidae]]: [[en:Category:Achatinidae]] gives new interwiki [[cs:Kategorie:Achatinovití]]
[[en:Category:Achatinidae]]: [[en:Category:Achatinidae]] gives new interwiki [[pt:Categoria:Achatinidae]]
Getting 1 pages from wikipedia:es...
Getting 1 pages from wikipedia:cs...
Getting 1 pages from wikipedia:pt...
======Post-processing [[en:Category:Achatinidae]]======
No changes needed on page [[es:Categoría:Achatinidae]]
No changes needed on page [[cs:Kategorie:Achatinovití]]
No changes needed on page [[en:Category:Achatinidae]]
No changes needed on page [[pt:Categoria:Achatinidae]]
====================================================================================
python version.py
Pywikipedia [http] trunk/pywikipedia (r9534, 2011/09/19, 04:03:22)
Python 2.5.5 (r255:77872, Mar 16 2011, 15:12:46)
[GCC 4.4.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3411377&group_…
Bugs item #3404473, was opened at 2011-09-05 22:41
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473&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: Avicennasis (avicennasis)
Assigned to: xqt (xqt)
Summary: redirect.py Swedish localization
Initial Comment:
redirect.py shouldn't be changing from the Swedish Localization of Redirect to English when fixing double redirects.
Currently, It will change "#OMDIRIGERING [[Foo]]" to "#REDIRECT [[Foo]]" on SvWp, which it should not do. The Swedish redirect, if already in use, should remain.
python version.py
Pywikipedia [http] trunk/pywikipedia (r9483, 2011/08/29, 19:17:43)
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-09-18 18:54
Message:
fixed in r9531
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-18 18:39
Message:
Maybe I have it:
http://sv.wikipedia.org/w/index.php?title=Administrativa_regioner&action=hi…
Working for a fix...
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-16 04:02
Message:
That it is - "return '1.17wmf1'". I don't believe I've touched either
redirect.py or wikipedia_family.py files directly.
I've updated to r9520, and this is still happening.
http://sv.wikipedia.org/w/index.php?title=Stadener,_Sam&diff=prev&oldid=149…
Thinking perhaps I may have tinkered with some setting somewhere, I
downloaded the latest nightly (r9525) and used it for a separate
installation. I ran Generate_user_files.py (with no further modifications
to the user-config file), then login.py, then redirect.py, and it still
happens -
http://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Avicennasis/sandbo…
I also tried the newest nightly on a windows box with a different version
of python:
Pywikipedia [http] trunk/pywikipedia (r9525, 2011/09/14, 22:54:59)
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit
(AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
The results I got were the same:
http://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Avicennasis/sandbo…
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-08 23:04
Message:
I've no idea for that because neighter the wikipedia.py parts nor
redirect.py has been changed since release r9483. Could you check the next
edits of redirect.py manually. Do you have any modifications on these two
files or in wikipedia_family.py? Could you check de funktion version() in
wikipedia_family.py. Just search for "def version(". next code line must
be:
return '1.17wmf1'
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-06 22:29
Message:
That works - it returns the "OMDIRIGERING". Hmm. I'll update to the latest
nightly and try again when AvicBot is unblocked on SvWp here shortly. I
have no idea why that happened to begin with, though.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-06 18:30
Message:
Hm, I tried it again with my bot and it works as expected:
http://sv.wikipedia.org/w/index.php?title=Manga%C3%A5r&diff=prev&oldid=1486…
Could you put these 3 lines given apove into a file e.g. named
redir_test.py and run it in your DOS-box. What is the result?
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-06 13:19
Message:
http://sv.wikipedia.org/w/index.php?title=V%C3%A4rldsm%C3%A4sterskap_i_bask…
and
http://sv.wikipedia.org/w/index.php?title=VM_i_basket&diff=prev&oldid=14855…
are examples. And I'm currently running this through Cygwin on a Windows
box - I'm not sure how to access (if possible) IDLE from that side.
The Windows side does return it properly, though.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-06 10:15
Message:
Do you have a sample for me? I found the bot works fine:
http://sv.wikipedia.org/w/index.php?title=Stora_saltsj%C3%B6n&diff=prev&old…
try the following IDLE commants:
import wikipedia as wp
site = wp.getSite('sv')
site.redirect()
this should print: u'OMDIRIGERING'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473&group_…
Bugs item #3404473, was opened at 2011-09-05 22:41
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473&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: Avicennasis (avicennasis)
Assigned to: xqt (xqt)
Summary: redirect.py Swedish localization
Initial Comment:
redirect.py shouldn't be changing from the Swedish Localization of Redirect to English when fixing double redirects.
Currently, It will change "#OMDIRIGERING [[Foo]]" to "#REDIRECT [[Foo]]" on SvWp, which it should not do. The Swedish redirect, if already in use, should remain.
python version.py
Pywikipedia [http] trunk/pywikipedia (r9483, 2011/08/29, 19:17:43)
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1]
config-settings:
use_api = True
use_api_login = True
unicode test: ok
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2011-09-18 18:39
Message:
Maybe I have it:
http://sv.wikipedia.org/w/index.php?title=Administrativa_regioner&action=hi…
Working for a fix...
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-16 04:02
Message:
That it is - "return '1.17wmf1'". I don't believe I've touched either
redirect.py or wikipedia_family.py files directly.
I've updated to r9520, and this is still happening.
http://sv.wikipedia.org/w/index.php?title=Stadener,_Sam&diff=prev&oldid=149…
Thinking perhaps I may have tinkered with some setting somewhere, I
downloaded the latest nightly (r9525) and used it for a separate
installation. I ran Generate_user_files.py (with no further modifications
to the user-config file), then login.py, then redirect.py, and it still
happens -
http://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Avicennasis/sandbo…
I also tried the newest nightly on a windows box with a different version
of python:
Pywikipedia [http] trunk/pywikipedia (r9525, 2011/09/14, 22:54:59)
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit
(AMD64)]
config-settings:
use_api = True
use_api_login = True
unicode test: triggers problem #3081100
The results I got were the same:
http://sv.wikipedia.org/w/index.php?title=Anv%C3%A4ndare:Avicennasis/sandbo…
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-08 23:04
Message:
I've no idea for that because neighter the wikipedia.py parts nor
redirect.py has been changed since release r9483. Could you check the next
edits of redirect.py manually. Do you have any modifications on these two
files or in wikipedia_family.py? Could you check de funktion version() in
wikipedia_family.py. Just search for "def version(". next code line must
be:
return '1.17wmf1'
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-06 22:29
Message:
That works - it returns the "OMDIRIGERING". Hmm. I'll update to the latest
nightly and try again when AvicBot is unblocked on SvWp here shortly. I
have no idea why that happened to begin with, though.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-06 18:30
Message:
Hm, I tried it again with my bot and it works as expected:
http://sv.wikipedia.org/w/index.php?title=Manga%C3%A5r&diff=prev&oldid=1486…
Could you put these 3 lines given apove into a file e.g. named
redir_test.py and run it in your DOS-box. What is the result?
----------------------------------------------------------------------
Comment By: Avicennasis (avicennasis)
Date: 2011-09-06 13:19
Message:
http://sv.wikipedia.org/w/index.php?title=V%C3%A4rldsm%C3%A4sterskap_i_bask…
and
http://sv.wikipedia.org/w/index.php?title=VM_i_basket&diff=prev&oldid=14855…
are examples. And I'm currently running this through Cygwin on a Windows
box - I'm not sure how to access (if possible) IDLE from that side.
The Windows side does return it properly, though.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-09-06 10:15
Message:
Do you have a sample for me? I found the bot works fine:
http://sv.wikipedia.org/w/index.php?title=Stora_saltsj%C3%B6n&diff=prev&old…
try the following IDLE commants:
import wikipedia as wp
site = wp.getSite('sv')
site.redirect()
this should print: u'OMDIRIGERING'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3404473&group_…
Bugs item #3400045, was opened at 2011-08-29 07:36
Message generated for change (Comment added) made by valhallasw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3400045&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: confirmed
>Status: Closed
Resolution: Fixed
Priority: 7
Private: No
Submitted By: xqt (xqt)
Assigned to: Merlijn S. van Deen (valhallasw)
Summary: generate_family_file brocken with mw 1.17
Initial Comment:
generate_family_file is brocken with mediawiki 1.17:
C:\pywikibot\PWB>generate_family_file.py
Usage: %s <url> <short name>
Example: %s http://www.mywiki.bogus/wiki/Main_Page mywiki
This will create the file families/mywiki_family.py
Please insert URL to wiki: http://techessentials.org/wiki/Main_Page
Please insert a short name (eg: freeciv): myWiki
Generating family file from http://techessentials.org/wiki/Main_Page
*** WARNING: Api does not seem to be enabled on http://techessentials.org/wiki/Main_Page
Traceback (most recent call last):
File "C:\pywikibot\PWB\generate_family_file.py", line 261, in <module>
FamilyFileGenerator(*sys.argv[1:]).run()
File "C:\pywikibot\PWB\generate_family_file.py", line 60, in run
w = Wiki(self.base_url)
File "C:\pywikibot\PWB\generate_family_file.py", line 235, in __init__
self.server = self.REwgServer.search(data).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
The requested wg-strings are missed on the given main page main page (http://techessentials.org/wiki/Main_Page)
See also here: http://pastebin.com/ZJiX1hGA for an other site
----------------------------------------------------------------------
>Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-09-18 18:33
Message:
wm 1.11 is also fixed, report for 1.16 was invalid.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2011-09-18 17:28
Message:
for >= 1.17.0: fixed in r9528/r9529:
valhallasw@dorthonion:~/src/pwb_trunk_ssh$ python generate_family_file.py
http://techessentials.org/wiki/Main_Page techessentials
Generating family file from http://techessentials.org/wiki/Main_Page
==================================
api url: http://techessentials.org/w/api.php
MediaWiki version: 1.17.0
==================================
Determining other languages...
Loading wikis...
* en... in cache
Retrieving namespaces... en
Writing families/techessentials_family.py...
Can you give an example for a non-working wiki for v=1.11 and v=1.16.2?
1.16.2 *should* just work, 1.11 might just be too old.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-08-30 07:32
Message:
It also does not work with mw 1.11 and 1.16.2
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3400045&group_…