Patches item #2762697, was opened at 2009-04-14 20:14
Message generated for change (Tracker Item Submitted) made by drtrigon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2762697&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: Stability in wikipedia.py
Initial Comment:
Recently I've had some problems with the stability of 'wikipedia.put(...)' sometimes this method had some issues and that killed my bot.
I was able to track the problem down to 'wikipedia._getEditPage(...)' and following code (in 'wikipedia.py' around line 725):
********************************
while not textareaFound:
text = self.site().getUrl(path, sysop = sysop)
if text.find("<title>Wiki does not exist</title>") != -1:
raise NoSuchSite(u'Wiki %s does not exist yet' % self.site())
********************************
and I have changed it that way, to hold my bot/script running:
********************************
while not textareaFound:
try:
text = self.site().getUrl(path, sysop = sysop)
except:
time.sleep(1)
continue
if text.find("<title>Wiki does not exist</title>") != -1:
raise NoSuchSite(u'Wiki %s does not exist yet' % self.site())
********************************
and I am "pretty" sure that this solved my problem. :)
Probably you are also intressted in this solution?! I would assume that the delay of 1sec is neither critical nor needed.
Greetings
DrTrigon
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2762697&group_…
Bugs item #1908157, was opened at 2008-03-05 18:08
Message generated for change (Comment added) made by nicdumz
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: Closed
Resolution: Wont Fix
Priority: 7
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: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-14 19:57
Message:
See https://trac.macports.org/ticket/18376 the issue has been fixed in all
python ports except python25. I wont spend time coding a high-level
workaround for a lower-level issue, knowing that the said low-level bug is
going to be fixed in no more than a couple of weeks.
But again, that's only me :)
http://bugs.python.org/issue5154 is the relevant Python issue
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-14 18:54
Message:
I really want see this fixed as possible, avoiding problems to users. We
can add a simple workaround based on O.S. type and Python version, for
example (in case, just print a warning of a missing feature). Another
possible solution is to add support for the cURL library and recommend it
in the installation instruction, that is very useful to resolve easily also
others very ugly and high priority problems with the current PyWikipediaBot
network code...
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-14 18:25
Message:
1) using socket_timeout = None in your user-config.py should "fix" the
issue on pywikipedia.
") If you want to fix more durably the issue, please follow the
instructions on the last post of http://www.cherrypy.org/ticket/598
(bottom). It involves customizing the Python build under MacOS to avoid
defining the HAVE_POLL constant.
3) The fix applied by cherrypy here (
http://www.cherrypy.org/changeset/1915 ) is not applicable for pywikipedia:
they basically re-implement a complete new socket file descriptors to use
non-blocking socket calls, to avoid calling the broken poll() of MacOS.
Clearly, we're not going to do this here
I'm closing this as Wont Fix because it is a python+MacOS issue, and that
fixing the issue on the Python side is more relevant than implement complex
structures in pywikipedia to overcome that Python issue.
Comments are left open purposely.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-10 00:35
Message:
What about latest Python version (2.6.1)?
Doesn't look as reported to Python issue tracker, though.
----------------------------------------------------------------------
Comment By: Pietrodn (pietrodn)
Date: 2008-04-18 17:29
Message:
Logged In: YES
user_id=1887175
Originator: NO
I have the same problem (and use Mac OS X 10.5.2).
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 02:15
Message:
Logged In: YES
user_id=1738850
Originator: YES
There is a much easier solution:
Add the following line to user-config.py:
socket_timeout = None
Note: Apparently, the socket timeout is broken in the combination python
2.5 and MacOS 10.4. If socket_timeout is set to any number, error 35 occurs
when putting pages larger than ca. 30 kb.
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 00:27
Message:
Logged In: YES
user_id=1738850
Originator: YES
After reading the following thread:
http://www.cherrypy.org/ticket/598
I came up with the following solution:
conn.endheaders()
if hasattr(conn.sock, 'setblocking'): #####
conn.sock.setblocking(1) ######
conn.send(data)
I am not 100% sure if this is safe, but maybe someone socket-savvy can
find out by reading the above thread.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-03-08 23:19
Message:
Logged In: NO
Sitll doesn't work:
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2008-03-08 21:53
Message:
Logged In: YES
user_id=687283
Originator: NO
This probably is a bug in an updated version of urllib2 in python2.5+.
Could you try updating your python install and see if the problem remains?
----------------------------------------------------------------------
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_…
Bugs item #1999787, was opened at 2008-06-22 06:27
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1999787&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: Alex S.H. Lin (lin4h)
Assigned to: Nobody/Anonymous (nobody)
Summary: InvocationException in interwiki_graph.py
Initial Comment:
Version:
Microsoft Windows XP Professional with SP3
Pywikipedia [http] trunk/pywikipedia (r5604, Jun 21 2008, 20:20:16)
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
installed Modules and softwares:pydot,graphviz.
command:interwiki.py -lang:zh -family:wikipedia "插花" -autonomous
It cannot write pictures and return these error:
======Aborted processing [[zh:插花]]======
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Python25\lib\threading.py", line 486, in __bootstrap_inner
self.run()
File "D:\My Documents\SOURCE\pybot\trunk\pywikipedia\interwiki_graph.py", line
36, in run
if self.graph.write(filename, prog = 'dot', format = format):
File "build\bdist.win32\egg\pydot.py", line 1696, in write
dot_fd.write(self.create(prog, format))
File "build\bdist.win32\egg\pydot.py", line 1796, in create
status, stderr_output) )
InvocationException: Program terminated with status: 69. stderr follows: Error:
c:\docume~1\admini~1\locals~1\temp\tmpyfxn5k:2: syntax error near line 2
context: "he:蛂???蚳 蚺蚳???" >>> [URL=http: <<< //he.wikipedia.org/w/index.php
?useskin=monobook&title=D70X1.370093P-10191D7%D7%D7%D70X1.2F7000P-10228_D70X1.32
BA07P-10194D70X1.01DEF0P+6848D7%D7%D7D&redirect=no, shape=rectangle, fontsize=11
, style=filled, fillcolor=white];
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-14 18:57
Message:
Thanks for your help mpupat!
Looking at http://www.graphviz.org/doc/info/lang.html I understood that
the only way to pass non-alphanumeric strings to dot was to double-quote
them. This has been done in r6605, and it should fix the issue.
----------------------------------------------------------------------
Comment By: Matthieu Pupat (mpupat)
Date: 2009-01-19 03:48
Message:
I did look at the issue and found that:
* you need to put some double-quotes around the URL address
* pydot does some processing on node names containing columns
Knowing this the following patch makes interwiki_graph work
49c49
< return (u'"%s:%s"' % (page.site().language(),
page.title())).encode('utf-8')
---
> return (u'"%s|%s"' % (page.site().language(),
page.title())).encode('utf-8')
53c53
< node.set_URL('http://%s%s' % (page.site().hostname(),
page.site().get_address(page.urlname())))
---
> node.set_URL('"http://%s%s' % (page.site().hostname(),
page.site().get_address(page.urlname())) + '"')
----------------------------------------------------------------------
Comment By: Matthieu Pupat (mpupat)
Date: 2009-01-18 05:16
Message:
Same thing here:
$ python ./interwiki.py -lang:fr Acadie
[...]
Which variant should be used [number, (n)one, (g)ive up] : Exception in
thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/home/almabot/pywikipedia/interwiki_graph.py", line 36, in run
if self.graph.write(filename, prog = 'dot', format = format):
File "/usr/lib/python2.5/site-packages/pydot.py", line 1696, in write
dot_fd.write(self.create(prog, format))
File "/usr/lib/python2.5/site-packages/pydot.py", line 1796, in create
status, stderr_output) )
InvocationException: Program terminated with status: 220. stderr follows:
Error: /tmp/tmpWpo-hB:2: syntax error near line 2
context: "lt:Akadija" >>> [URL=http: <<<
//lt.wikipedia.org/w/index.php?useskin=monobook&title=Akadija&redirect=no,
shape=octagon, fontsize=11, style=filled, fillcolor=white];
$ python ./version.py
Pywikipedia [http] trunk/pywikipedia (r6264, Jan 15 2009, 23:28:54)
Python 2.5.2 (r252:60911, Sep 30 2008, 15:41:38)
[GCC 4.3.2 20080917 (Red Hat 4.3.2-4)]
I hope this helps figuring out the issue.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1999787&group_…
Bugs item #1908157, was opened at 2008-03-05 18:08
Message generated for change (Comment added) made by cosoleto
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: Closed
Resolution: Wont Fix
Priority: 7
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: Francesco Cosoleto (cosoleto)
Date: 2009-04-14 18:54
Message:
I really want see this fixed as possible, avoiding problems to users. We
can add a simple workaround based on O.S. type and Python version, for
example (in case, just print a warning of a missing feature). Another
possible solution is to add support for the cURL library and recommend it
in the installation instruction, that is very useful to resolve easily also
others very ugly and high priority problems with the current PyWikipediaBot
network code...
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-14 18:25
Message:
1) using socket_timeout = None in your user-config.py should "fix" the
issue on pywikipedia.
") If you want to fix more durably the issue, please follow the
instructions on the last post of http://www.cherrypy.org/ticket/598
(bottom). It involves customizing the Python build under MacOS to avoid
defining the HAVE_POLL constant.
3) The fix applied by cherrypy here (
http://www.cherrypy.org/changeset/1915 ) is not applicable for pywikipedia:
they basically re-implement a complete new socket file descriptors to use
non-blocking socket calls, to avoid calling the broken poll() of MacOS.
Clearly, we're not going to do this here
I'm closing this as Wont Fix because it is a python+MacOS issue, and that
fixing the issue on the Python side is more relevant than implement complex
structures in pywikipedia to overcome that Python issue.
Comments are left open purposely.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-10 00:35
Message:
What about latest Python version (2.6.1)?
Doesn't look as reported to Python issue tracker, though.
----------------------------------------------------------------------
Comment By: Pietrodn (pietrodn)
Date: 2008-04-18 17:29
Message:
Logged In: YES
user_id=1887175
Originator: NO
I have the same problem (and use Mac OS X 10.5.2).
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 02:15
Message:
Logged In: YES
user_id=1738850
Originator: YES
There is a much easier solution:
Add the following line to user-config.py:
socket_timeout = None
Note: Apparently, the socket timeout is broken in the combination python
2.5 and MacOS 10.4. If socket_timeout is set to any number, error 35 occurs
when putting pages larger than ca. 30 kb.
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 00:27
Message:
Logged In: YES
user_id=1738850
Originator: YES
After reading the following thread:
http://www.cherrypy.org/ticket/598
I came up with the following solution:
conn.endheaders()
if hasattr(conn.sock, 'setblocking'): #####
conn.sock.setblocking(1) ######
conn.send(data)
I am not 100% sure if this is safe, but maybe someone socket-savvy can
find out by reading the above thread.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-03-08 23:19
Message:
Logged In: NO
Sitll doesn't work:
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2008-03-08 21:53
Message:
Logged In: YES
user_id=687283
Originator: NO
This probably is a bug in an updated version of urllib2 in python2.5+.
Could you try updating your python install and see if the problem remains?
----------------------------------------------------------------------
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_…
Bugs item #2590324, was opened at 2009-02-11 21:02
Message generated for change (Settings changed) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2590324&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: raven24 (raven24)
Assigned to: Nobody/Anonymous (nobody)
>Summary: not well-formed XML (invalid token)
Initial Comment:
Seems to me like an error while trying to parse the mediawiki messages...
My Version:
Pywikipedia [http] trunk/pywikipedia (r6338, Feb 08 2009, 13:58:13)
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2]
Traceback (most recent call last):
File "category.py", line 974, in <module>
bot.run()
File "category.py", line 446, in run
comment=self.editSummary, inPlace=self.inPlace)
File "/home/florian/Share/Code/pywikipedia/catlib.py", line 506, in change_category
article.put(text, comment)
File "/home/florian/Share/Code/pywikipedia/wikipedia.py", line 1416, in put
newPage, self.site().getToken(sysop = sysop), sysop = sysop)
File "/home/florian/Share/Code/pywikipedia/wikipedia.py", line 1546, in _putPage
if self.site().has_mediawiki_message("spamprotectiontitle")\
File "/home/florian/Share/Code/pywikipedia/wikipedia.py", line 4953, in has_mediawiki_message
v = self.mediawiki_message(key)
File "/home/florian/Share/Code/pywikipedia/wikipedia.py", line 4921, in mediawiki_message
tree = XML(decode)
File "<string>", line 85, in XML
SyntaxError: not well-formed (invalid token): line 1, column 1
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-14 18:33
Message:
This was due to some mediawiki extensions adding white lines in top of
generated XML, which makes the XML invalid.
The obvious solution is to fix your installation to remove that empty
line.
We, however, have also "fixed" the issue on the pywikipedia side, to
remove the headers before parsing the XML.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2590324&group_…
Bugs item #2555767, was opened at 2009-02-01 17:25
Message generated for change (Settings changed) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2555767&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.py removes redirects
Initial Comment:
interwiki.py vers. 6312
My interwiki-options are -autonomous -force -noredirect .
As I found at this link e.g. [http://it.wikipedia.org/w/index.php?title=Assiomi_di_Huzita-Hatori&diff=217…] interwiki.py removes redirected interwiki links instead of fixing it during -noredirect option. I supposed that -noredirect ignores links coming from the redirected page and keep or fix the redirect link but not deleting it. In this given case, the english page has been moved before the bot does its work. Here are some statements from the logfile depending on this matter:
[[折り紙公ç†]]: [[ja:折り紙公ç†]] gives new interwiki [[it:Assiomi di Huzita-Hatori]]
[[折り紙公ç†]]: [[ja:折り紙公ç†]] gives new interwiki [[en:Huzita-Hatori axioms]]
[[折り紙公ç†]]: [[ja:折り紙公ç†]] gives new interwiki [[ru:Правила Худзита]]
[[折り紙公ç†]]: [[ja:折り紙公ç†]] gives new interwiki [[fa:اصل هوزیتا-هاتوری]]
Getting 60 pages from wikipedia:en...
NOTE: [[en:Huzita-Hatori axioms]] is redirect to [[en:Huzita–Hatori axioms]]
NOTE: not following redirects.
======Post-processing [[ja:折り紙公ç†]]======
Updating links on page [[it:Assiomi di Huzita-Hatori]].
Changes to be made: Aggiungo: [[ja:折り紙公ç†]] Tolgo: [[en:Huzita-Hatori axioms]]
- [[en:Huzita-Hatori axioms]]
+ [[ja:折り紙公ç†]]
ERROR: Found incorrect link to en in [[it:Assiomi di Huzita-Hatori]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Changing page [[it:Assiomi di Huzita-Hatori]]
Updating links on page [[ja:折り紙公ç†]].
Changes to be made: 除去: [[en:Huzita-Hatori axioms]]
- [[en:Huzita-Hatori axioms]]
ERROR: Found incorrect link to en in [[ja:折り紙公ç†]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Changing page [[折り紙公ç†]]
Updating links on page [[ru:Правила Худзита]].
Changes to be made: добавил: [[ja:折り紙公ç†]] удалил: [[en:Huzita-Hatori axioms]]
- [[en:Huzita-Hatori axioms]]
+ [[ja:折り紙公ç†]]
ERROR: Found incorrect link to en in [[ru:Правила Худзита]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Changing page [[ru:Правила Худзита]]
Updating links on page [[fa:اصل هوزیتا-هاتوری]].
Changes to be made: اÙزودن: [[ja:折り紙公ç†]] ØØ°Ù: [[en:Huzita-Hatori axioms]]
- [[en:Huzita-Hatori axioms]]
+ [[ja:折り紙公ç†]]
ERROR: Found incorrect link to en in [[fa:اصل هوزیتا-هاتوری]]
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Changing page [[fa:اصل هوزیتا-هاتوری]]
[w:de:User:Xqt]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2555767&group_…
Bugs item #1908157, was opened at 2008-03-05 18:08
Message generated for change (Comment added) made by nicdumz
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: Closed
>Resolution: Wont Fix
Priority: 7
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: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-14 18:25
Message:
1) using socket_timeout = None in your user-config.py should "fix" the
issue on pywikipedia.
") If you want to fix more durably the issue, please follow the
instructions on the last post of http://www.cherrypy.org/ticket/598
(bottom). It involves customizing the Python build under MacOS to avoid
defining the HAVE_POLL constant.
3) The fix applied by cherrypy here (
http://www.cherrypy.org/changeset/1915 ) is not applicable for pywikipedia:
they basically re-implement a complete new socket file descriptors to use
non-blocking socket calls, to avoid calling the broken poll() of MacOS.
Clearly, we're not going to do this here
I'm closing this as Wont Fix because it is a python+MacOS issue, and that
fixing the issue on the Python side is more relevant than implement complex
structures in pywikipedia to overcome that Python issue.
Comments are left open purposely.
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2009-04-10 00:35
Message:
What about latest Python version (2.6.1)?
Doesn't look as reported to Python issue tracker, though.
----------------------------------------------------------------------
Comment By: Pietrodn (pietrodn)
Date: 2008-04-18 17:29
Message:
Logged In: YES
user_id=1887175
Originator: NO
I have the same problem (and use Mac OS X 10.5.2).
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 02:15
Message:
Logged In: YES
user_id=1738850
Originator: YES
There is a much easier solution:
Add the following line to user-config.py:
socket_timeout = None
Note: Apparently, the socket timeout is broken in the combination python
2.5 and MacOS 10.4. If socket_timeout is set to any number, error 35 occurs
when putting pages larger than ca. 30 kb.
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2008-03-10 00:27
Message:
Logged In: YES
user_id=1738850
Originator: YES
After reading the following thread:
http://www.cherrypy.org/ticket/598
I came up with the following solution:
conn.endheaders()
if hasattr(conn.sock, 'setblocking'): #####
conn.sock.setblocking(1) ######
conn.send(data)
I am not 100% sure if this is safe, but maybe someone socket-savvy can
find out by reading the above thread.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-03-08 23:19
Message:
Logged In: NO
Sitll doesn't work:
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2008-03-08 21:53
Message:
Logged In: YES
user_id=687283
Originator: NO
This probably is a bug in an updated version of urllib2 in python2.5+.
Could you try updating your python install and see if the problem remains?
----------------------------------------------------------------------
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_…
Bugs item #1733703, was opened at 2007-06-08 19:27
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1733703&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: 3
Private: No
Submitted By: Byrial Ole Jensen (byrial)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tries to update locked semiprotected page
Initial Comment:
Interwiki.py tries to update semiprotected even after it has found out that it is no possible. (The bot account has not been in use long enough to edit semiprotected pages, and it has no access to other accounts.)
Page [[de:Dwayne Johnson]] is semi-protected. Getting edit page to find out if we are allowed to edit.
Page is locked, using sysop account.
Getting page to get a token.
Sleeping for 11.3 seconds, 2007-06-08 19:10:41
Changing page [[de:Dwayne Johnson]]
Retrieving MediaWiki messages for wikipedia:de
Sleeping for 13.6 seconds, 2007-06-08 19:10:54
Parsing MediaWiki messages
Loaded 2041 values from wikipedia:de
Changing page has failed. Retrying.
Getting page to get a token.
Changing page [[de:Dwayne Johnson]]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...... Content of page [[de:Dwayne Johnson]] .......
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-14 18:07
Message:
lowering priority since it only affects unconfirmed bots. Anyone has
reproduced the bug since then?
----------------------------------------------------------------------
Comment By: Byrial Ole Jensen (byrial)
Date: 2007-06-08 19:41
Message:
Logged In: YES
user_id=23252
Originator: YES
Here is another example were the program does not seem to know that the
page it is trying to update, is semiprotected:
Updating links on page [[de:Bundeswehr]].
Changes to be made: Ergänze: [[da:Bundeswehr]]
+ [[da:Bundeswehr]]
Checked for running processes. 1 processes currently running, including
the curr
ent process.
NOTE: Performing a recursive query first to save time....
NOTE: Nothing left to do 2
NOTE: Updating live wiki...
Sleeping for 13.9 seconds, 2007-06-08 19:34:21
Changing page [[de:Bundeswehr]]
Changing page has failed. Retrying.
Getting page to get a token.
Sleeping for 11.0 seconds, 2007-06-08 19:34:39
Changing page [[de:Bundeswehr]]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.or
g/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...... Page for [[de:Bundeswehr]] follows .......
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1733703&group_…
Bugs item #1783487, was opened at 2007-08-28 17:44
Message generated for change (Comment added) made by nicdumz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1783487&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: Fixed
Priority: 5
Private: No
Submitted By: Multichill (multichill)
Assigned to: Nobody/Anonymous (nobody)
Summary: Interwiki crash on deleted page
Initial Comment:
Updating links on page [[nl:Cultuurcentrum de Kruisboog (Kazerne)]].
Dump nl (wikipedia) saved
Traceback (most recent call last):
File "interwiki.py", line 1542, in ?
bot.run()
File "interwiki.py", line 1325, in run
self.queryStep()
File "interwiki.py", line 1304, in queryStep
subj.finish(self)
File "interwiki.py", line 924, in finish
if self.replaceLinks(page, new, bot):
File "interwiki.py", line 961, in replaceLinks
for iw in re.finditer('<!-- *\[\[(.*?:.*?)\]\] *-->', page.get()):
File "/home/bot/pywikipedia/wikipedia.py", line 524, in get
raise self._getexception
wikipedia.NoPage
The page was deleted, see http://nl.wikipedia.org/w/index.php?title=Cultuurcentrum_de_Kruisboog_%28Ka…
----------------------------------------------------------------------
>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-04-14 18:05
Message:
Fixed in r6604
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1783487&group_…