Bugs item #1909559, was opened at 2008-03-07 21:59
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=1909559&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: category
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: shizhao (wikishizhao)
Assigned to: Nobody/Anonymous (nobody)
Summary: wikipedia.getCategoryLinks NOT work
Initial Comment:
source code:
pg=wikipedia.Page(site,title)
text=pg.get()
plist=wikipedia.getCategoryLinks(text, site)
print plist
Return:
Checked for running processes. 1 processes currently running, including the current process.
[]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909559&group_…
Bugs item #1909468, was opened at 2008-03-07 06:28
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909468&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: Invalid
Priority: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: AssertionError when running in others wikisite
Initial Comment:
I tried to run redirect.py in this wiki (http://twbsball.dils.tku.edu.tw/), but it rollback this error.
Traceback (most recent call last):
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 436, in <module>
main()
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 432, in main
bot.run()
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 386, in run
self.delete_broken_redirects()
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 251, in delete_broken_redirects
for redir_name in self.generator.retrieve_broken_redirects():
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 180, in retrieve_broken_redirects
maintenance_txt = mysite.getUrl(path)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4162, in getUrl
self._getUserData(text, sysop = sysop)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4183, in _getUserData
blocked = self.isBlocked(sysop = sysop)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 3863, in isBlocked
% self.api_address(), sysop=sysop)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4151, in getUrl
self.checkCharset(charset)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 5241, in checkCharset
% (repr(self), self.charset, charset)
AssertionError: charset for twbsball:twbsball changed from UTF-8 to iso-8859-1
(I think maybe my family files lost some settings, so I update my file)
----------------------------------------------------------------------
>Comment By: Russell Blau (russblau)
Date: 2008-03-07 08:12
Message:
Logged In: YES
user_id=855050
Originator: NO
You need to add a method to the twbsball_family.py file:
def apipath(self, code):
raise NotImplementedError, "api.php not implemented on the twbsball
wiki"
You also need to find out what the variable {{SCRIPTPATH}} converts to on
this wiki, and then add a method:
def scriptpath(self, code):
return "{{SCRIPTPATH}}" # Replace with actual value of variable on the
wiki
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909468&group_…
Bugs item #1909468, was opened at 2008-03-07 19:28
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=1909468&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: AssertionError when running in others wikisite
Initial Comment:
I tried to run redirect.py in this wiki (http://twbsball.dils.tku.edu.tw/), but it rollback this error.
Traceback (most recent call last):
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 436, in <module>
main()
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 432, in main
bot.run()
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 386, in run
self.delete_broken_redirects()
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 251, in delete_broken_redirects
for redir_name in self.generator.retrieve_broken_redirects():
File "D:\My Documents\SOURCE\mwbot\pywikipedia\redirect.py", line 180, in retrieve_broken_redirects
maintenance_txt = mysite.getUrl(path)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4162, in getUrl
self._getUserData(text, sysop = sysop)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4183, in _getUserData
blocked = self.isBlocked(sysop = sysop)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 3863, in isBlocked
% self.api_address(), sysop=sysop)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 4151, in getUrl
self.checkCharset(charset)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\wikipedia.py", line 5241, in checkCharset
% (repr(self), self.charset, charset)
AssertionError: charset for twbsball:twbsball changed from UTF-8 to iso-8859-1
(I think maybe my family files lost some settings, so I update my file)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1909468&group_…
Bugs item #1905228, was opened at 2008-03-01 18:38
Message generated for change (Comment added) made by lin4h
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1905228&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: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: ValueError in category.py
Initial Comment:
>category.py tidy
Target Category is [[zh:Category:日本天皇]].When the script reading the article [[大友皇子即位論]], it rollback this error:
Treating page 大友皇子即位論, currently in Category:日本天皇
Dumping to category.dump.bz2, please wait...
Traceback (most recent call last):
File "D:\My Documents\SOURCE\mwbot\pywikipedia\category.py", line 896, in <mod
ule>
bot.run()
File "D:\My Documents\SOURCE\mwbot\pywikipedia\category.py", line 697, in run
self.move_to_category(article, cat, cat)
File "D:\My Documents\SOURCE\mwbot\pywikipedia\category.py", line 601, in move
_to_category
contextLength = full_text.index('\n\n', contextLength+2)
ValueError: substring not found
----------------------------------------------------------------------
>Comment By: Alex S.H. Lin (lin4h)
Date: 2008-03-06 17:06
Message:
Logged In: YES
user_id=1902991
Originator: YES
fixed in r5105, thanks nicdumz's patch.
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2008-03-01 22:41
Message:
Logged In: YES
user_id=1963242
Originator: NO
Index: category.py
===================================================================
--- category.py (révision 5095)
+++ category.py (copie de travail)
@@ -595,7 +595,7 @@
contextLength = 500
if full_text.startswith(u'[['): # probably an image
# Add extra paragraph.
- contextLength = full_text.index('\n\n', contextLength+2)
+ contextLength = full_text.find('\n\n', contextLength+2)
if contextLength > 1000 or contextLength < 0:
contextLength = 500
print
Simply replacing "index()" by find() line 601 (597 in trunk) will do :
If the substring is not found, then contextLength will be -1 ; and will
get defaulted to 500 on the next line
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1905228&group_…
Patches item #1908438, was opened at 2008-03-06 04:30
Message generated for change (Settings changed) made by rotemliss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1908438&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: Accepted
Priority: 5
Private: No
Submitted By: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: Locale and namespace update
Initial Comment:
>category.py:fix and add zh locale and fix bugs 1905228.
>featured.ppy:add ia locale
>families:update by update_namespaces.py in 3/6 2:00 (UTC)
----------------------------------------------------------------------
>Comment By: Rotem Liss (rotemliss)
Date: 2008-03-06 09:40
Message:
Logged In: YES
user_id=1327030
Originator: NO
Applied, with some more updates, in r5105.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1908438&group_…
Patches item #1908438, was opened at 2008-03-06 10:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1908438&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: Locale and namespace update
Initial Comment:
>category.py:fix and add zh locale and fix bugs 1905228.
>featured.ppy:add ia locale
>families:update by update_namespaces.py in 3/6 2:00 (UTC)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1908438&group_…
Bugs item #1908157, was opened at 2008-03-05 18:08
Message generated for change (Comment added) made by pietrodn
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1908157&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: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot edit large page in Python 2.5
Initial Comment:
Cannot edit large page in Python 2.5.
A socket error 35 occurs. It consistently occurs if the page is > about 30 kbyte.
Woks OK in python 2.3.
andreas-schwabs-computer:~/Desktop/pywikipedia andreas$ python basic.py -family:wikipedia -lang:en -page:User:AndreasJS/test
Checked for running processes. 1 processes currently running, including the current process.
Getting 1 pages from wikipedia:en...
>>> User:AndreasJS/test <<<
- Test Test [[image:Wikipedia.png|thumb|This is the [[logo]] of Wikinews]]
+ Test Test Test [[image:Wikipedia.png|thumb|This is the [[logo]] of Wikinews]]
Do you want to accept these changes? ([y]es, [N]o) y
Sleeping for 5.6 seconds, 2008-03-05 11:57:19
Changing page [[en:User:AndreasJS/test]]
Traceback (most recent call last):
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 1287, in _putPage
response, data = self.site().postForm(address, predata, sysop)
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 4014, in postForm
raise ServerError(e)
ServerError: (35, 'Resource temporarily unavailable')
Got a server error when putting [[User:AndreasJS/test]]; will retry in 1 minute.
Changing page [[en:User:AndreasJS/test]]
Traceback (most recent call last):
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 1287, in _putPage
response, data = self.site().postForm(address, predata, sysop)
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 4014, in postForm
raise ServerError(e)
ServerError: (35, 'Resource temporarily unavailable')
Got a server error when putting [[User:AndreasJS/test]]; will retry in 2 minutes.
Changing page [[en:User:AndreasJS/test]]
Traceback (most recent call last):
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 1287, in _putPage
response, data = self.site().postForm(address, predata, sysop)
File "/Users/andreas/Desktop/pywikipedia/wikipedia.py", line 4014, in postForm
raise ServerError(e)
ServerError: (35, 'Resource temporarily unavailable')
Got a server error when putting [[User:AndreasJS/test]]; will retry in 4 minutes.
----------
andreas-schwabs-computer:~/Desktop/pywikipedia andreas$ python
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
System Software Overview:
System Version: Mac OS X 10.4.11 (8S2167)
Kernel Version: Darwin 8.11.1
Boot Volume: Macintosh HD
Computer Name: Andreas Schwab’s Computer
User Name: Andreas Schwab (andreas)
----------------------------------------------------------------------
Comment By: Pietrodn (pietrodn)
Date: 2008-03-05 21:51
Message:
Logged In: YES
user_id=1887175
Originator: NO
I also have Mac OS X 10.4.11 + Python 2.5 and have the same problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1908157&group_…