Search code examples
pythonpywinauto

no module named pywinauto


when I type the following on python2.5 IDLE (windows vista 32-bit)--

from pywinauto import Application

I get this error message--

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import pywinauto
ImportError: No module named pywinauto

I followed the instructions from this site, and did not get any error message during installation. What did I not get right here?

Thanks!


Solution

  • Do you have multiple versions of Python installed? Maybe the python.exe that was used for python.exe setup.py install is not Python 2.5. To check, open a command prompt and run python.exe -V.

    If that is the problem, you need to go to the directory where you extracted the pywinauto zip file, and run C:\python25\python.exe setup.py install