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...
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: 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