Bugs item #2051877, was opened at 2008-08-14 20:09
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2051877&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: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ImportError: No module named sax
Initial Comment:
Hello, I stopped my bot for an hour and when I wanted to restart, I get the same error every time:
C:\Bot>login.py -all
Traceback (most recent call last):
File "C:\Bot\login.py", line 49, in <module>
import wikipedia, config
File "C:\Bot\wikipedia.py", line 123, in <module>
import xml.sax, xml.sax.handler
ImportError: No module named sax
Do you know the problem? I reinstalled Python and Pywikipedia, but it changes nothing. Best regards, WikiDreamer
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-08-15 00:51
Message:
Logged In: YES
user_id=181280
Originator: NO
That is a outdated PyWikipedia version. You can get a newer version here:
http://toolserver.org/~valhallasw/pywiki/package/pywikipedia/.
If you have reported rightly the traceback, I guess your Python
installation is broken. Maybe you have reinstalled Python in a different
directory but the PATH enviroment variable point to previous directory.
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml.sax, xml.sax.handler
Works for me.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-08-15 00:15
Message:
Logged In: NO
Python 2.5.2 --> http://www.python.org/ftp/python/2.5.2/python-2.5.2.msi
Windows XP
The latest version -->
http://sourceforge.net/project/showfiles.php?group_id=93107&package_id=9869…
WikiDreamer
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-08-14 20:16
Message:
Logged In: YES
user_id=181280
Originator: NO
Please, provide manually Python version, operating system used,
PyWikipediaBot version or run python version.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2051877&group_…
Bugs item #2051877, was opened at 2008-08-14 18:09
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2051877&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: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ImportError: No module named sax
Initial Comment:
Hello, I stopped my bot for an hour and when I wanted to restart, I get the same error every time:
C:\Bot>login.py -all
Traceback (most recent call last):
File "C:\Bot\login.py", line 49, in <module>
import wikipedia, config
File "C:\Bot\wikipedia.py", line 123, in <module>
import xml.sax, xml.sax.handler
ImportError: No module named sax
Do you know the problem? I reinstalled Python and Pywikipedia, but it changes nothing. Best regards, WikiDreamer
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2008-08-14 22:15
Message:
Logged In: NO
Python 2.5.2 --> http://www.python.org/ftp/python/2.5.2/python-2.5.2.msi
Windows XP
The latest version -->
http://sourceforge.net/project/showfiles.php?group_id=93107&package_id=9869…
WikiDreamer
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-08-14 18:16
Message:
Logged In: YES
user_id=181280
Originator: NO
Please, provide manually Python version, operating system used,
PyWikipediaBot version or run python version.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2051877&group_…
Bugs item #2051877, was opened at 2008-08-14 20:09
Message generated for change (Comment added) made by cosoleto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2051877&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: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ImportError: No module named sax
Initial Comment:
Hello, I stopped my bot for an hour and when I wanted to restart, I get the same error every time:
C:\Bot>login.py -all
Traceback (most recent call last):
File "C:\Bot\login.py", line 49, in <module>
import wikipedia, config
File "C:\Bot\wikipedia.py", line 123, in <module>
import xml.sax, xml.sax.handler
ImportError: No module named sax
Do you know the problem? I reinstalled Python and Pywikipedia, but it changes nothing. Best regards, WikiDreamer
----------------------------------------------------------------------
>Comment By: Francesco Cosoleto (cosoleto)
Date: 2008-08-14 20:16
Message:
Logged In: YES
user_id=181280
Originator: NO
Please, provide manually Python version, operating system used,
PyWikipediaBot version or run python version.py.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2051877&group_…
Bugs item #2051877, was opened at 2008-08-14 18:09
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=2051877&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: ImportError: No module named sax
Initial Comment:
Hello, I stopped my bot for an hour and when I wanted to restart, I get the same error every time:
C:\Bot>login.py -all
Traceback (most recent call last):
File "C:\Bot\login.py", line 49, in <module>
import wikipedia, config
File "C:\Bot\wikipedia.py", line 123, in <module>
import xml.sax, xml.sax.handler
ImportError: No module named sax
Do you know the problem? I reinstalled Python and Pywikipedia, but it changes nothing. Best regards, WikiDreamer
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2051877&group_…
Revision: 5796
Author: nicdumz
Date: 2008-08-14 03:11:37 +0000 (Thu, 14 Aug 2008)
Log Message:
-----------
"<siebrand> someone please add a max_retries soon. CommonsDelinker gets fucking stuck on all kinds of silly server errors all the time.
<siebrand> Got a server error when putting [[wikipedia:ja:????]]; will retry in 30 minutes.
<siebrand> And that somehow never recovers."
Adding config.maxretries = 5, dying in _putPage with wikipedia.ServerError after config.maxretries retries
Modified Paths:
--------------
trunk/pywikipedia/config.py
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/config.py
===================================================================
--- trunk/pywikipedia/config.py 2008-08-11 12:48:14 UTC (rev 5795)
+++ trunk/pywikipedia/config.py 2008-08-14 03:11:37 UTC (rev 5796)
@@ -263,6 +263,9 @@
# what you are doing and have a good reason for it!
maxlag = 5
+# Number of retries before giving up when putting a page
+maxretries = 5
+
# Maximum of pages which can be retrieved by special pages. Increase this if
# you heavily use redirect.py with action "double", and especially if you're
# running solve_disambiguation.py with the -primary argument.
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2008-08-11 12:48:14 UTC (rev 5795)
+++ trunk/pywikipedia/wikipedia.py 2008-08-14 03:11:37 UTC (rev 5796)
@@ -1333,6 +1333,7 @@
predata['masteredit'] = '1'
retry_delay = 1
+ retry_attempt = 1
dblagged = False
while True:
# Check whether we are not too quickly after the previous
@@ -1373,6 +1374,9 @@
raise PageNotSaved('Bad status line: %s' % line.line)
except ServerError:
output(u''.join(traceback.format_exception(*sys.exc_info())))
+ retry_attempt += 1
+ if retry_attempt > config.maxretries:
+ raise
output(
u'Got a server error when putting %s; will retry in %i minute%s.'
% (self.aslink(), retry_delay, retry_delay != 1 and "s" or ""))
Feature Requests item #2049654, was opened at 2008-08-13 13:40
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=2049654&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
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: truncate log files
Initial Comment:
it would be helpful if a bot (namely, interwiki.py) can be configured to truncate the log file to a certain size. is it possible to implement this feature? thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2049654&group_…
Hi - how do I restrict the bot to making changes in certain namespaces? I
can comment out certain namespaces in the family file, but that doesn't deal
with (say) user or user_talk namespaces.
Sorry if that's an obvious question - I thought I saw the answer once, but
now can't find it.
--
Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a
percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most
mistaken, and have there given reins to passion, without that proper
deliberation and suspense, which can alone secure them from the grossest
absurdities. -- David Hume
Passing on a question from Seth Woodworth (working on the OLPC wiki):
Is there a way to find all pages on a wiki that contain more than three "@"
symbols?
Thanks
--
Chris Watkins (a.k.a. Chriswaterguy)
Appropedia.org - Sharing knowledge to build rich, sustainable lives.
Blog: chriswaterguy.livejournal.com/
Buying at Amazon, eBay etc? Start at http://appropedia.maatiam.com and a
percentage of your purchase supports Appropedia - at no extra cost.
Where men are the most sure and arrogant, they are commonly the most
mistaken, and have there given reins to passion, without that proper
deliberation and suspense, which can alone secure them from the grossest
absurdities. -- David Hume
Revision: 5795
Author: erwin85
Date: 2008-08-11 12:48:14 +0000 (Mon, 11 Aug 2008)
Log Message:
-----------
Fixed syntax error
Modified Paths:
--------------
trunk/pywikipedia/imagetransfer.py
Modified: trunk/pywikipedia/imagetransfer.py
===================================================================
--- trunk/pywikipedia/imagetransfer.py 2008-08-09 14:06:27 UTC (rev 5794)
+++ trunk/pywikipedia/imagetransfer.py 2008-08-11 12:48:14 UTC (rev 5795)
@@ -82,7 +82,7 @@
'en': u'File is now available on Wikimedia Commons.',
'eo': u'Dosiero nun estas havebla en la Wikimedia-Komunejo.',
'he': u'הקובץ זמין כעת בוויקישיתוף.',
- 'hu': u'A fájl most már elérhető a Wikimedia Commonson';
+ 'hu': u'A fájl most már elérhető a Wikimedia Commonson',
'ia': u'Le file es ora disponibile in Wikimedia Commons.',
'ja': u'ファイルはウィキメディア・コモンズにあります',
'it': u'L\'immagine è adesso disponibile su Wikimedia Commons.',