0

Hey there. I've been programming in Python for about a month now. I've created simple programs for myself, such as games and e-mail applications. Still getting GUI down, I'll post if I need help there. Anyways, here's my problem:
Running: Windows XP
Python: Python 2.6

I installed the newest version of the Python for Windows Applications for v2.6 of Python. That went fine. It includes the module pythoncom, which I require. However, when I try to import pythoncom, I get the following:

Traceback (most recent call last):
  File "<pyshell#20>", line 1, in <module>
    import pythoncom
  File "C:\Python26\lib\site-packages\pythoncom.py", line 2, in <module>
    import pywintypes
ImportError: No module named pywintypes

How do I fix this problem? I already searched Google for an answer, and got pretty much nothing. It took me forever to even find pythoncom to download.
Thanks
~ Hondros

3
Contributors
4
Replies
6
Views
7 Years
Discussion Span
Last Post by Eswarimallur
0

Um, I'm not quite sure what you mean. I installed the package from Source Forge, and I have a whole bunch of new modules, so I guess so.

0

Fixed it. Had to copy pywintypes.py, .pyc, and .pyo from:
C:\Python26\Lib\site-packages\win32\lib
to:
C:\Python26\Lib\site-packages
I then ran IDLE and typed:
import pythoncom
and it works fine :D

0

Hi,

I followed the same steps mentioned above, but still getting the same error:
ImportError: No module named pythoncom

Please suggest me how to resolve this error.

Thanks,
Eswari

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.