[Pywikipedia-l] SVN: [5414] trunk/pywikipedia/wikipedia.py

nicdumz at svn.wikimedia.org nicdumz at svn.wikimedia.org
Tue May 20 19:35:57 UTC 2008


Revision: 5414
Author:   nicdumz
Date:     2008-05-20 19:35:57 +0000 (Tue, 20 May 2008)

Log Message:
-----------
Better, user-friendly error message : Stating that installing python 2.5 *does* solve the cElementTree issue.

Modified Paths:
--------------
    trunk/pywikipedia/wikipedia.py

Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py	2008-05-20 18:16:48 UTC (rev 5413)
+++ trunk/pywikipedia/wikipedia.py	2008-05-20 19:35:57 UTC (rev 5414)
@@ -4435,7 +4435,7 @@
                     try:
                         from elementtree.ElementTree import XML
                     except ImportError:
-                        output('ERROR: You need to install cElementTree, or ElementTree module to be able to parse mediawiki messages')
+                        output('ERROR: One of the cElementTree, or the ElementTree module is now needed to be able to parse mediawiki messages. Please install (c)ElementTree. (Note that python 2.5 natively includes these librairies : upgrading to python 2.5 will solve this issue.)')
                         stopme()
                         sys.exit(1)
         # Allmessages is retrieved once for all in a session





More information about the Pywikipedia-l mailing list