Bugs item #2870574, was opened at 2009-09-30 10:30
Message generated for change (Comment added) made by siebrand
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870574&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: replace.py crashes with wikipedia.py (?)
Initial Comment:
An error occurs when my bot submit the new version of a page to the server, which has lasted for around two weeks. Due to this error, the bot will stop right after its first edit, but the page is correctly saved. The error message is as follows:
Traceback (most recent call last):
File "replace.py", line 711, in <module>
main()
File "replace.py", line 707, in main
bot.run()
File "replace.py", line 431, in run
page.put(new_text, self.editSummary)
File "c:\python26\pywikipedia\wikipedia.py", line 1448, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag
, maxTries=maxTries)
File "c:\python26\pywikipedia\wikipedia.py", line 1480, in _putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "c:\python26\pywikipedia\wikipedia.py", line 1827, in _putPageOld
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\python26\pywikipedia\wikipedia.py", line 5478, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\python26\pywikipedia\wikipedia.py", line 5443, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 637, column 117
Output of python version.py:
Pywikipedia [http] trunk/pywikipedia (r7338, 2009/09/29, 20:33:35)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-09-30 10:33
Message:
Please try again with the following in your user-config.py:
use_api = True
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870574&group_…
Bugs item #2870574, was opened at 2009-09-30 08:30
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870574&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: replace.py crashes with wikipedia.py (?)
Initial Comment:
An error occurs when my bot submit the new version of a page to the server, which has lasted for around two weeks. Due to this error, the bot will stop right after its first edit, but the page is correctly saved. The error message is as follows:
Traceback (most recent call last):
File "replace.py", line 711, in <module>
main()
File "replace.py", line 707, in main
bot.run()
File "replace.py", line 431, in run
page.put(new_text, self.editSummary)
File "c:\python26\pywikipedia\wikipedia.py", line 1448, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag
, maxTries=maxTries)
File "c:\python26\pywikipedia\wikipedia.py", line 1480, in _putPage
newPage, token, newToken, sysop, captcha, botflag, maxTries)
File "c:\python26\pywikipedia\wikipedia.py", line 1827, in _putPageOld
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "c:\python26\pywikipedia\wikipedia.py", line 5478, in has_mediawiki_message
v = self.mediawiki_message(key)
File "c:\python26\pywikipedia\wikipedia.py", line 5443, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 637, column 117
Output of python version.py:
Pywikipedia [http] trunk/pywikipedia (r7338, 2009/09/29, 20:33:35)
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2870574&group_…
Bugs item #2869536, was opened at 2009-09-29 15:37
Message generated for change (Tracker Item Submitted) made by dingar
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2869536&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: v1.0 (example)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: dingar (dingar)
Assigned to: Nobody/Anonymous (nobody)
Summary: generate_user_files.py needs new parameter
Initial Comment:
user-config.py needs a new parameter when we run generate_user_files.py to get a new config.
use_api = True
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2869536&group_…
Bugs item #2783408, was opened at 2009-04-29 07:38
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2783408&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: xqt (xqt)
>Assigned to: Nobody/Anonymous (nobody)
Summary: weblinkchecker warning
Initial Comment:
__version__='$Id: weblinkchecker.py 6746 2009-04-28 06:25:09Z shizhao $'
no bug but a warning comes sometimes:
weblinkchecker.py:808: Syntax Warning: name 'day' is asigned to before global declaration global day
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-09-28 14:18
Message:
patch comes with #2868798
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-15 18:16
Message:
patch added
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-08-10 21:15
Message:
The reason is that day is assigned first in line 792:
day = 7
This bug came with r6639
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2783408&group_…
Patches item #2868798, was opened at 2009-09-28 14:16
Message generated for change (Tracker Item Submitted) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2868798&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: 6
Private: No
Submitted By: xqt (xqt)
Assigned to: Filnik (filnik)
Summary: Various bugfixes
Initial Comment:
censure.py
handle index error of page.previousRevision()
(solves #2848560)
config.py
set use_api default value to True
(solves various requests to r7267like #2867449, #2865679, #2862265, #2860410)
cosmetic_changes.py
additional features copied from fixes.py
redirect.py
additional exception handling
solve_disambiguation.py
deleted directories removed
weblinkchecker.py
(fix for #2783408)
wikipedia.py
patch #2848560 reverted
getting mediawiki-messages depending of current version
and solves various requests to r7267 like #2867449, #2865679, #2862265, #2860410
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2868798&group_…
Feature Requests item #2868076, was opened at 2009-09-27 20:54
Message generated for change (Tracker Item Submitted) made by wikishizhao
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2868076&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: shizhao (wikishizhao)
Assigned to: Nobody/Anonymous (nobody)
Summary: plese update refcheck.py
Initial Comment:
plese update refcheck.py. see http://en.wikipedia.org/wiki/Help:Footnotes#List-defined_references <ref> have update
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2868076&group_…
Bugs item #2867956, was opened at 2009-09-27 08:17
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2867956&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: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: imagetransfer.py does not work
Initial Comment:
While giving a command
imagetransfer.py -lang:en -tolang:uk
does not upload an image. The next text gives in output
Traceback (most recent call last):
File "D:\pywikipedia\imagetransfer.py", line 310, in <mod
main()
File "D:\pywikipedia\imagetransfer.py", line 306, in main
bot.run()
File "D:\pywikipedia\imagetransfer.py", line 252, in run
self.transferImage(imagelist[todo], debug = False)
File "D:\pywikipedia\imagetransfer.py", line 179, in tran
targetFilename = bot.run()
File "D:\pywikipedia\upload.py", line 302, in run
return self.upload_image()
File "D:\pywikipedia\upload.py", line 257, in upload_imag
success_msg = self.targetSite.mediawiki_message('succes
File "D:\pywikipedia\wikipedia.py", line 5443, in mediawi
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 656, column 165
Please help.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2867956&group_…
Patches item #1907586, was opened at 2008-03-05 01:14
Message generated for change (Settings changed) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1907586&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: None
Priority: 8
Private: No
Submitted By: Purodha B Blissenbach (purodha)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make edit tokens dynamic in wikipedia.py
Initial Comment:
Edit tokens in wikpedia.py were effectively constants up to this patch. When a token was outdated, a new one was not obtained, and edit access to the site never functioned again until the program was restarted.
The problem is described in more detail in:
https://sourceforge.net/tracker/index.php?func=detail&aid=1903113&group_id=…
The attached patch makes tokens a bit more dynamic, it allows loading of new ones when an edit page requires.
I have tested the code, with interwiki-py only, for about 20 hours in manually assisted mode in 3, sometimes 4, parallel sessions in verbose mode. The altered branch was executed several dozen times, no problems seen.
Nevertheless, I recommend a review. I am not knowledgeable enough to be sure that there are no sideffects. I am not a python expert, so maybe, I made it too complicated. Also, though I did run few other pywikipediabot programs which were using the altered wikipdia.py without apaprent problems, that cannot be called a valid test.
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2009-09-27 02:20
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2009-03-23 11:06
Message:
mmm sorry to take so long to review this... (whooa one year :/ ). No
excuses.
It seems that something is missing.
When entering _putpage the first time, newToken=0.
* Inside _putpage, newToken is never assigned a value.
* if newToken < 0, then a recursive call is made with newToken = newToken
+ 1 . That's the only possible call where newToken is changed.
If I get it right, whatever the workflow is, newToken will always be 0
Correct, or is it me?
If you're still motivated to code something Purodha, please update your
patch, I'll make sure to review it faster ;)
----------------------------------------------------------------------
Comment By: Purodha B Blissenbach (purodha)
Date: 2008-03-08 04:17
Message:
Logged In: YES
user_id=46450
Originator: YES
File Added: wikipedia.py-5107-diff.txt
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1907586&group_…
Bugs item #2867449, was opened at 2009-09-26 16:08
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2867449&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: Duplicate
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki does not work
Initial Comment:
Interwiki.py does not work. The command "interwiki.py" gives the next text is in an output:
Traceback (most recent call last):
File "D:\bot3\interwiki.py", line 2122, in <module>
mainpagename = site.mediawiki_message('mainpage')
File "D:\bot3\wikipedia.py", line 5418, in mediawiki_mess
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: undefined entity : line 656, column 165
Please help.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-09-26 19:54
Message:
fixed in r7267
Please set
use_api = True
in your user_config.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2867449&group_…