Bugs item #1909946, was opened at 2008-03-07 22:26
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909946&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: Nightshadow28 (nightshadow28)
Assigned to: Filnik (filnik)
Summary: Welcome.py aborts with unexpected response from server.
Initial Comment:
from jawp:
welcome.py (r5108) aborts with unexpected response from server. This is raised after getting a token. See below:
-----
Leowhite has enough edits to be welcomed
Checked for running processes. 1 processes currently running, including the current process.
Creating page [[ja:利用者‐会話:Leowhite]]
Changing page has failed. Retrying.
Getting a token.
Sleeping for 28.6 seconds, 2008-03-08 12:03:40
Creating page [[ja:利用者‐会話:Leowhite]]
ERROR: Unexpected response from wiki server.
200 (OK)
<!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="ja" lang="ja" dir="ltr">
<head>
(-- HTML page text is omitted --)
</div>
<!-- Served by srv171 in 0.252 secs. --></body></html>
Traceback (most recent call last):
File "welcome.py", line 916, in ?
for x in main(settingsBot):
File "welcome.py", line 853, in main
usertalkpage.put(welcom, summ, minorEdit = False)
File "/home/John_Doe/pywikipedia/wikipedia.py", line 1215, in put
return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "/home/John_Doe/pywikipedia/wikipedia.py", line 1357, in _putPage
return self._putPage(text, comment, watchArticle, minorEdit, newPage, token=self.site().getToken(sysop = sysop, getagain = True), newToken = True, sysop = sysop)
File "/home/John_Doe/pywikipedia/wikipedia.py", line 1380, in _putPage
raise PageNotSaved
wikipedia.PageNotSaved
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2008-03-21 15:10
Message:
Logged In: YES
user_id=855050
Originator: NO
Although I cannot read Japanese, I strongly suspect the key to the error
is found in the following extract from the HTML dump:
<div
class='previewnote'><p><strong>セッションが切断されたため編集を保存できません。もう一度やりなおしてください。それでも失敗する場合、ログアウトしてからログインし直してください。</strong>
</p></div>
My guess is that this is the Japanese equivalent of the English string
"Sorry! We could not process your edit due to a loss of session data.
Please try again. If it still doesn't work, try logging out and logging
back in."
Once a bot starts getting this response on a page save, it will get it
forever as far as I can tell, so ignoring the PageNotSaved error and trying
again won't work. But stopping the bot and starting again often clears the
problem. I haven't been able to figure out what triggers this response (it
may be a server-side bug, not client-side, in which case there is nothing
we can do about it here, but I'm not even sure of that yet).
----------------------------------------------------------------------
Comment By: Nightshadow28 (nightshadow28)
Date: 2008-03-21 07:21
Message:
Logged In: YES
user_id=1971526
Originator: YES
I attach a HTML code.
File Added: welcome_abort_message.txt
----------------------------------------------------------------------
Comment By: Filnik (filnik)
Date: 2008-03-08 09:54
Message:
Logged In: YES
user_id=1834469
Originator: NO
It's difficult when you have the HTML code to take a look, without is
almost impossible... Filnik
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909946&group_…
Feature Requests item #1922120, was opened at 2008-03-21 04:31
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1922120&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: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: append data to interwikidump file
Initial Comment:
if interwikidump-*.txt is not zero-sized, append data to the existing file rather than overwrite it
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1922120&group_…
Bugs item #1909946, was opened at 2008-03-08 03:26
Message generated for change (Comment added) made by nightshadow28
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909946&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: Nightshadow28 (nightshadow28)
Assigned to: Filnik (filnik)
Summary: Welcome.py aborts with unexpected response from server.
Initial Comment:
from jawp:
welcome.py (r5108) aborts with unexpected response from server. This is raised after getting a token. See below:
-----
Leowhite has enough edits to be welcomed
Checked for running processes. 1 processes currently running, including the current process.
Creating page [[ja:利用者‐会話:Leowhite]]
Changing page has failed. Retrying.
Getting a token.
Sleeping for 28.6 seconds, 2008-03-08 12:03:40
Creating page [[ja:利用者‐会話:Leowhite]]
ERROR: Unexpected response from wiki server.
200 (OK)
<!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="ja" lang="ja" dir="ltr">
<head>
(-- HTML page text is omitted --)
</div>
<!-- Served by srv171 in 0.252 secs. --></body></html>
Traceback (most recent call last):
File "welcome.py", line 916, in ?
for x in main(settingsBot):
File "welcome.py", line 853, in main
usertalkpage.put(welcom, summ, minorEdit = False)
File "/home/John_Doe/pywikipedia/wikipedia.py", line 1215, in put
return self._putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "/home/John_Doe/pywikipedia/wikipedia.py", line 1357, in _putPage
return self._putPage(text, comment, watchArticle, minorEdit, newPage, token=self.site().getToken(sysop = sysop, getagain = True), newToken = True, sysop = sysop)
File "/home/John_Doe/pywikipedia/wikipedia.py", line 1380, in _putPage
raise PageNotSaved
wikipedia.PageNotSaved
----------------------------------------------------------------------
>Comment By: Nightshadow28 (nightshadow28)
Date: 2008-03-21 11:21
Message:
Logged In: YES
user_id=1971526
Originator: YES
I attach a HTML code.
File Added: welcome_abort_message.txt
----------------------------------------------------------------------
Comment By: Filnik (filnik)
Date: 2008-03-08 14:54
Message:
Logged In: YES
user_id=1834469
Originator: NO
It's difficult when you have the HTML code to take a look, without is
almost impossible... Filnik
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909946&group_…
Hi people,
I wrote a new program for the framework. It's called commonscat.py. You
can use it to add the commonscat template to categories in your home
wiki. I tested it at the nl wikipedia and now the template is used in
about one third of the categories.
I also did a rewrite of imagecopy.py. This list was in the source code:
Known issues/FIXMEs (no critical issues known):
* make it use pagegenerators.py
check
* Some variable names are in Spanish, which makes the code harder to read.
changed most of the variable names
* Depending on sorting within a file category, the "next batch" is sometimes
not working, leading to an endless loop
Pagegenerators.py doesnt have this problem
* Different wikis can have different exclusion lists. A parameter for the
exclusion list Uploadbot.localskips.txt would probably be nice.
still working on this
* Bot should probably use API instead of query.php
API, query? Pagegenerators
* Should request alternative name if file name already exists on Commons
Check
* Exits after last file in category was processed, aborting all pending
threads.
Fixxed the threading part (join at the end to wait for the open threads)
* Should take user-config.py as input for project and lang variables
Pagegenerators takes care of this
* Should require a Commons user to be present in user-config.py before
working
Not done (yet)
* Should probably have an input field for additional categories
Not done (yet)
* Should probably have an option to change uploadtext with file
Not done (yet)
* required i18n options for NowCommons template (f.e. {{subst:ncd}} on
en.wp. Currently needs customisation to work properly. Bot was tested
succesfully on nl.wp (12k+ files copied and deleted locally) and en.wp
(about 100 files copied and SieBot has bot approval for tagging {{ncd}}
with this bot)
Still working on this
* {{NowCommons|xxx}} requires the namespace prefix Image: on most wikis
and can be left out on others. This needs to be taken care of when
implementing i18n
Still working on this
* This bot should probably get a small tutorial at meta with a few
screenshots.
Not done (yet)
Beside this list i fixxed the support for "strange" characters, the old
bot didnt understand them.
It's still work in in progress, but the bot is stable (testing at nl)
and works much better than the old one.
I would like to have write access to the svn so i can commit my work. Do
the devs agree with that?
Maarten (aka Multichill)
Revision: 5148
Author: filnik
Date: 2008-03-20 12:46:48 +0000 (Thu, 20 Mar 2008)
Log Message:
-----------
Preloading for this script seems useless
Modified Paths:
--------------
trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py 2008-03-19 21:13:29 UTC (rev 5147)
+++ trunk/pywikipedia/checkimages.py 2008-03-20 12:46:48 UTC (rev 5148)
@@ -839,8 +839,7 @@
# No settings found, No problem, continue.
else: wikipedia.output(u'\t >> No additional settings found! <<')
# Not the main, but the most important loop.
- preloadingGen = pagegenerators.PreloadingGenerator(generator, pageNumber = 60)
- for image in preloadingGen:
+ for image in generator:
# If I don't inizialize the generator, wait part and skip part are useless
if wait:
printWithTimeZone(u'Waiting %s seconds before checking the images,' % wait_number)
Crash in replace.py
-------------------
Key: PYWP-7
URL: https://jira.ts.wikimedia.org/browse/PYWP-7
Project: pywikipedia
Issue Type: Bug
Components: Framework
Reporter: Pietrodn
Attachments: svn.diff
There is a crash in replace.py. It's caused by a missing comma in a list. Here is the patch.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.ts.wikimedia.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Bugs item #1920060, was opened at 2008-03-19 15:23
Message generated for change (Settings changed) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1920060&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: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: replace.py aborts at line 156
Initial Comment:
In r5143, replace.py aborts at line 156.
-----
File "replace.py", line 156
'zh': u'機器人:執行文字代換作業 %s',
^
SyntaxError: invalid syntax
-----
It seems that a comma is missing.
'sv':u'Bot: Automatisk textersättning: %s' <--!
'zh': u'機器人:執行文字代換作業 %s',
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2008-03-19 17:14
Message:
Logged In: YES
user_id=855050
Originator: NO
fixed in r 5147
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1920060&group_…
Bugs item #1920060, was opened at 2008-03-19 19:23
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=1920060&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: Nightshadow28 (nightshadow28)
Assigned to: Nobody/Anonymous (nobody)
Summary: replace.py aborts at line 156
Initial Comment:
In r5143, replace.py aborts at line 156.
-----
File "replace.py", line 156
'zh': u'機器人:執行文字代換作業 %s',
^
SyntaxError: invalid syntax
-----
It seems that a comma is missing.
'sv':u'Bot: Automatisk textersättning: %s' <--!
'zh': u'機器人:執行文字代換作業 %s',
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1920060&group_…