Bugs item #1864970, was opened at 2008-01-06 17:21
Message generated for change (Comment added) made by lin4h
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864970&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot detect page protected in zh-wikinews.
Initial Comment:
I tried to make interwiki in a protected page, it cannot use sysop account automatic.
----------------------------------------------------------------------
>Comment By: Alex S.H. Lin (lin4h)
Date: 2008-01-07 13:27
Message:
Logged In: YES
user_id=1902991
Originator: YES
I have written my sysop account into user-config.py and make login to get
token.
When the script get a protected page, it return "changing has
failed.Retrying." and get the token again (it didn't reseponse any info
about sysop account). when it changing again, It print out the page HTML
code (like "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">".......) to
screen.
Here is the message from interwiki.log.
======Post-processing [[zh:泰國One-Two-Go航空MD-80型飛機
墜毀普吉島]]======
Updating links on page [[zh:泰國One-Two-Go航空MD-80型飛機
墜毀普吉島]].
Changes to be made: 正在新增: de 修改: en, it, pl
+
+ [[de:Schweres Flugzeugunglück in Thailand]]
- [[en:At least 80 thought to be dead in Phuket, Thailand air crash]]
+ [[en:At least 89 dead in Phuket, Thailand air crash]]
- [[it:Aereo si schianta in Thailandia, 88 le vittime]]
+ [[it:Aereo si schianta in Thailandia, 91 le vittime]]
- [[pl:88 ofiar katastrofy samolotu pasażerskiego w Tajlandii]]
+ [[pl:Kilkadziesiąt ofiar katastrofy samolotu pasażerskiego w
Tajlandii]]
NOTE: Updating live wiki...
Changing page [[zh:泰國One-Two-Go航空MD-80型飛機 墜毀普吉島]]
Changing page has failed. Retrying.
Getting page to get a token.
Sleeping for 6.7 seconds, 2008-01-06 16:45:53
Changing page [[zh:泰國One-Two-Go航空MD-80型飛機 墜毀普吉島]]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh"
dir="ltr">
<head>
......... ALL HTML CODE.........
(I think It cannot use sysop account automatic because I found these
code)
<p>根據以下的原因,您並無權限去做以下的動作:
</p>
<div
class="permissions-errors">該頁面已被鎖定以防止編輯。</div>
<p>你可以檢視並複製本頁面的原始碼。
(Page is protected)
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-07 03:13
Message:
Logged In: YES
user_id=1327030
Originator: NO
Does it try to use the sysop account? If so, what happens when it tries?
Did you write the sysop account in sysopnames in user-config.py, and did
you login using this account?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864970&group_…
Bugs item #1865605, was opened at 2008-01-07 02:53
Message generated for change (Comment added) made by purodha
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865605&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: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: "category.py move" fails on many pages.
Initial Comment:
In the Wikipedia of Ripuarian languages, we have tons of samples which do not work.
Here is another one:
python /home/purodha/pywikipedia/category.py move -putthrottle:51 -inplace -from:Geschichte_Nordrhein-Westfalens -to:Noodrhing-Wäßfaale
Checked for running processes. 1 processes currently running, including the current process.
Reading dump from category.dump.bz2
Getting [[Saachjrupp:Geschichte Nordrhein-Westfalens]]...
Getting 3 pages from wikipedia:ksh...
No changes in made in page [[Herzogtum Geldern]].
No changes in made in page [[Herzogtum Jülich]].
No changes in made in page [[Herzogtum Kleve]].
Dumping to category.dump.bz2, please wait...
This is very likely due to various localized ways to write the name space name "Category:" which possibly pywikipediabot does not know about.
See also bug # 1755347
----------------------------------------------------------------------
>Comment By: Purodha B Blissenbach (purodha)
Date: 2008-01-07 02:57
Message:
Logged In: YES
user_id=46450
Originator: YES
Following the idea that, possibly, not all ways to spell "Category" were
known, I created the attached patch which seemed to solve the problem for
me.
File Added: family.py.4823.diff.txt
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865605&group_…
Bugs item #1865605, was opened at 2008-01-07 02:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865605&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: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: "category.py move" fails on many pages.
Initial Comment:
In the Wikipedia of Ripuarian languages, we have tons of samples which do not work.
Here is another one:
python /home/purodha/pywikipedia/category.py move -putthrottle:51 -inplace -from:Geschichte_Nordrhein-Westfalens -to:Noodrhing-Wäßfaale
Checked for running processes. 1 processes currently running, including the current process.
Reading dump from category.dump.bz2
Getting [[Saachjrupp:Geschichte Nordrhein-Westfalens]]...
Getting 3 pages from wikipedia:ksh...
No changes in made in page [[Herzogtum Geldern]].
No changes in made in page [[Herzogtum Jülich]].
No changes in made in page [[Herzogtum Kleve]].
Dumping to category.dump.bz2, please wait...
This is very likely due to various localized ways to write the name space name "Category:" which possibly pywikipediabot does not know about.
See also bug # 1755347
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865605&group_…
Bugs item #1865598, was opened at 2008-01-06 18:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865598&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unable to use framework when IP is blocked
Initial Comment:
I am unable to log myself or my bot in when my IP is blocked. See traceback:
matt@oak:~/pywiki$ python login.py
Checked for running processes. 1 processes currently running, including the current process.
Password for user MonoBot on wikipedia:en:
Logging in to wikipedia:en as MonoBot
Traceback (most recent call last):
File "login.py", line 277, in ?
main()
File "login.py", line 273, in main
loginMan.login()
File "login.py", line 220, in login
if not self.botAllowed():
File "login.py", line 91, in botAllowed
for linkedPage in botListPage.linkedPages():
File "/home/matt/pywiki/wikipedia.py", line 1473, in linkedPages
thistxt = removeLanguageLinks(self.get(get_redirect=True),
File "/home/matt/pywiki/wikipedia.py", line 600, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
File "/home/matt/pywiki/wikipedia.py", line 707, in _getEditPage
raise UserBlocked(self.site(), self.aslink(forceInterwiki = True))
wikipedia.UserBlocked: (wikipedia:en, u'[[en:Wikipedia:Registered bots]]')
matt@oak:~/pywiki$ python login.py
Checked for running processes. 1 processes currently running, including the current process.
Password for user Monobi on wikipedia:en:
Logging in to wikipedia:en as Monobi
Traceback (most recent call last):
File "login.py", line 277, in ?
main()
File "login.py", line 273, in main
loginMan.login()
File "login.py", line 220, in login
if not self.botAllowed():
File "login.py", line 91, in botAllowed
for linkedPage in botListPage.linkedPages():
File "/home/matt/pywiki/wikipedia.py", line 1473, in linkedPages
thistxt = removeLanguageLinks(self.get(get_redirect=True),
File "/home/matt/pywiki/wikipedia.py", line 600, in get
self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
File "/home/matt/pywiki/wikipedia.py", line 707, in _getEditPage
raise UserBlocked(self.site(), self.aslink(forceInterwiki = True))
wikipedia.UserBlocked: (wikipedia:en, u'[[en:Wikipedia:Registered bots]]')
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865598&group_…
Bugs item #1864919, was opened at 2008-01-06 03:11
Message generated for change (Settings changed) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864919&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: Interface (example)
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'obsolete' problem stop interwiki
Initial Comment:
Traceback (most recent call last):
File "interwiki.py", line 1587, in ?
bot.run()
File "interwiki.py", line 1364, in run
self.queryStep()
File "interwiki.py", line 1343, in queryStep
subj.finish(self)
File "interwiki.py", line 950, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1043, in replaceLinks
newtext = wikipedia.replaceLanguageLinks(oldtext, new, site = page.site())
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 3040, in replaceLanguageLinks
s = interwikiFormat(new, insite = site)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 3095, in interwikiFormat
site = insite.getSite(code = code)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4988, in getSite
return getSite(code = code, fam = self.family, user=self.user)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 5109, in getSite
_sites[key] = Site(code=code, fam=fam, user=user, persistent_http=persistent_http)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 3670, in __init__
raise KeyError("Language %s in family %s is obsolete" % (self.lang, self.family.name))
KeyError: 'Language cho in family wikipedia is obsolete'
I cannot run interwiki because this error in any project.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-06 16:08
Message:
Logged In: YES
user_id=1327030
Originator: NO
I fixed the problem and added the exception back in r4823. The exception
may be shown again if the bot tries to add a link to a closed site, but it
shouldn't do so; if it does, please post it here (or in another report),
including the whole traceback.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-06 12:21
Message:
Logged In: YES
user_id=1327030
Originator: NO
Disabled exception for the moment in r4822. I will check the problem
later.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864919&group_…
Bugs item #1864547, was opened at 2008-01-05 13:12
Message generated for change (Settings changed) made by leogregianin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864547&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: add_text damages interwiki encoding
Initial Comment:
When running add_text.py on pl.wikipedia with:
add_text.py -cat:"III wiek" -text:"{{Commonscat}}" -except:"\{\{(?:[Ss]zablon:|)[Cc]ommonscat}}"
text is added correctly but the interwiki links encoding is destroyed ie. not UTF-8 anymore.
example of live change:
http://pl.wikipedia.org/w/index.php?title=201&diff=10859565&oldid=10786774
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-01-05 16:08
Message:
Logged In: NO
It really works in r4816. You can close it.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-05 14:23
Message:
Logged In: YES
user_id=1327030
Originator: NO
Should be fixed in r4816.
----------------------------------------------------------------------
Comment By: Filnik (filnik)
Date: 2008-01-05 13:29
Message:
Logged In: YES
user_id=1834469
Originator: NO
Uhm, unfortunately that's a really big problem. I've tried almost
everything, so I would be glad if anyone can help fixing the problem
(search .decode(' in the code, you can't lose it). Maybe the old version
works better (but I think not). Try
http://botwiki.sno.cc/w/index.php?title=Python:Add_text.py&action=history
until I can work on it.
Filnik
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864547&group_…
Bugs item #1865284, was opened at 2008-01-06 12:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865284&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: replace.py broken?
Initial Comment:
Hello,
What's up, replace.py doesn't seem to work....
(using latest python for windows)
C:\Program Files\Development\Python25\pywikipedia>replace.py -cat:"SFC_Stub" -regex "\{{SFC_ROM_OUTPUT" "{{SFC_Stub}}\r\n{{SFC_ROM_OUTPUT"
Checked for running processes. 1 processes currently running, including the curr
ent process.
Getting [[Category:SFC Stub]]...
Traceback (most recent call last):
File "C:\Program Files\Development\Python25\pywikipedia\replace.py", line 454,
in <module>
main()
File "C:\Program Files\Development\Python25\pywikipedia\replace.py", line 449,
in main
bot.run()
File "C:\Program Files\Development\Python25\pywikipedia\replace.py", line 198,
in run
for page in self.generator:
File "C:\Program Files\Development\Python25\pywikipedia\pagegenerators.py", li
ne 329, in PreloadingGenerator
for page in generator:
File "C:\Program Files\Development\Python25\pywikipedia\pagegenerators.py", li
ne 79, in CategorizedPageGenerator
for page in category.articles(recurse=recurse):
File "C:\Program Files\Development\Python25\pywikipedia\catlib.py", line 211,
in articles
for title in self.catlist(recurse)[0]:
File "C:\Program Files\Development\Python25\pywikipedia\catlib.py", line 71, i
n catlist
self._catlistT = self._make_catlist(recurse = recurse)
File "C:\Program Files\Development\Python25\pywikipedia\catlib.py", line 135,
in _make_catlist
ibegin = txt.index('"clear:both;"')
ValueError: substring not found
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1865284&group_…
Bugs item #1864970, was opened at 2008-01-06 11:21
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864970&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot detect page protected in zh-wikinews.
Initial Comment:
I tried to make interwiki in a protected page, it cannot use sysop account automatic.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-06 21:13
Message:
Logged In: YES
user_id=1327030
Originator: NO
Does it try to use the sysop account? If so, what happens when it tries?
Did you write the sysop account in sysopnames in user-config.py, and did
you login using this account?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864970&group_…
Bugs item #1864659, was opened at 2008-01-05 21:35
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864659&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot input parameter without english
Initial Comment:
I run interwiki.py and replace.py, all reback "UnicodeDecodeError: 'utf8' codec can't decode byte...." when I type Chinese and Japanese
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-06 21:10
Message:
Logged In: YES
user_id=1327030
Originator: NO
It doesn't for me. Which operating system do you use, and what are your
encoding settings in user-config.py?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864659&group_…
Bugs item #1864919, was opened at 2008-01-06 08:11
Message generated for change (Comment added) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864919&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: Interface (example)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: 'obsolete' problem stop interwiki
Initial Comment:
Traceback (most recent call last):
File "interwiki.py", line 1587, in ?
bot.run()
File "interwiki.py", line 1364, in run
self.queryStep()
File "interwiki.py", line 1343, in queryStep
subj.finish(self)
File "interwiki.py", line 950, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 1043, in replaceLinks
newtext = wikipedia.replaceLanguageLinks(oldtext, new, site = page.site())
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 3040, in replaceLanguageLinks
s = interwikiFormat(new, insite = site)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 3095, in interwikiFormat
site = insite.getSite(code = code)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 4988, in getSite
return getSite(code = code, fam = self.family, user=self.user)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 5109, in getSite
_sites[key] = Site(code=code, fam=fam, user=user, persistent_http=persistent_http)
File "/usr/home/alexsh/mwbot/pywikipedia/wikipedia.py", line 3670, in __init__
raise KeyError("Language %s in family %s is obsolete" % (self.lang, self.family.name))
KeyError: 'Language cho in family wikipedia is obsolete'
I cannot run interwiki because this error in any project.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-06 21:08
Message:
Logged In: YES
user_id=1327030
Originator: NO
I fixed the problem and added the exception back in r4823. The exception
may be shown again if the bot tries to add a link to a closed site, but it
shouldn't do so; if it does, please post it here (or in another report),
including the whole traceback.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss)
Date: 2008-01-06 17:21
Message:
Logged In: YES
user_id=1327030
Originator: NO
Disabled exception for the moment in r4822. I will check the problem
later.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1864919&group_…