Bugs item #2051877, was opened at 2008-08-14 20:09 Message generated for change (Comment added) made by nicdumz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2051877...
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: 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: NicDumZ Nicolas Dumazet (nicdumz)
Date: 2008-08-15 17:55
Message: Logged In: YES user_id=1963242 Originator: NO
Let me clarify my last -angry- message.
I have been experiencing a lot of issues with wikipedia User:WikiDreamer, and that last event was too much. Such an old version, damn. I am currently asking for the removal of his bot flag on fr: and other wikipedia projects should follow.
Sorry for the rudish comment, I'm willing to give support to any pywikipedia user that needs help
----------------------------------------------------------------------
Comment By: NicDumZ Nicolas Dumazet (nicdumz) Date: 2008-08-15 16:30
Message: Logged In: YES user_id=1963242 Originator: NO
http://www.justfuckinggoogleit.com/
This bugtracker is not a python helpdesk.
WikiDreamer, the fact that you were running such an outdated of our framework (Come on, more than ONE YEAR !) on such a big number of wikis (132 languages !!!!) seriously worries me
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto) Date: 2008-08-15 16:24
Message: Logged In: YES user_id=181280 Originator: NO
Why do you consider "C:\Python23"? Simply delete this folder if it exists and contain only an Python installation.
This may be a working PATH for you:
PATH=C:\Python25;C:\WI...
Please, verify expected PATH is correctly in memory by typing PATH in command line before to run Python.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2008-08-15 16:05
Message: Logged In: NO
I don't think. In the folder xml C:\Python25\Lib\xml , it have four folders and one file. Folders: dom, etree, parsers and sax File: __init__.py
I added ;C:\Python23 in the environment variable but I have the same error.
WikiDreamer
----------------------------------------------------------------------
Comment By: Francesco Cosoleto (cosoleto) Date: 2008-08-15 13:38
Message: Logged In: YES user_id=181280 Originator: NO
You can solve the problem if reinstall Python for example in C:\Python, then fix PATH variable similar to: PATH=C:\Python;C:\WINXP\system32;.... See also for details: http://www.python.org/doc/faq/windows/. Another alternative and install Cygwin (http://www.cygwin.com) and related Python version.
----------------------------------------------------------------------
Comment By: Multichill (multichill) Date: 2008-08-15 13:12
Message: Logged In: YES user_id=1777493 Originator: NO
Looks like this is not a pywikipedia problem. SAX is part of standard python ( http://docs.python.org/lib/module-xml.sax.html ). Do you have another xml package installed?
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2008-08-15 12:59
Message: Logged In: NO
Don't works for me.
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
Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named sax
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=9...
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...
pywikipedia-l@lists.wikimedia.org