tags:

views:

2129

answers:

3

I'm building an open source project that uses python and c++ in Windows. I came to the following error message:

 ImportError: No module named win32con

The same happened in a "prebuilt" code that it's working ( except in my computer :P )

I think this is kind of "popular" module in python because I've saw several messages in other forums but none that could help me.

I have Python2.6, should I have that module already installed? Is that something of VC++?

Thank you for the help.

I got this url http://sourceforge.net/projects/pywin32/ but I'm not sure what to do with the executable :S

+4  A: 

This module contains constants related to Win32 programming. It is not part of the Python 2.6 release, but should be part of the download of the pywin32 project.

Edit: I imagine that the executable is an installation program, though the last time I downloaded pywin32 it was just a zip file.

Curt Hagenlocher
Ok, so it is something common. There are .exe files and yes a zip file.
OscarRyz
UPDTE: The exe in a python installer..
OscarRyz
+2  A: 

See the Python Programming On Win32 for details on this package.

S.Lott
Thanks you for the link
OscarRyz
+1  A: 

Note that the Pywin32 download page contains installers for version 2.6 (i386 and AMD64). The ActiveState distribution is a single installer that includes pywin32 - currently at version 2.5.2.

gimel