#577 Install error in pywin32-216.win32-py2.6


I am getting following error when trying to install pywin32-216.win32-py2.6

Traceback (most recent call last):
File "<string>", line 604, in <module>
File "<string>", line 314, in install
File "<string>", line 152, in LoadSystemModule
ImportError: DLL load failed: The specified module could not be found.

I am on Win7 Enterprise 64 bit. First I installed the following:

VC++ 2008 Redistributable -x86 9.0.21022
VC++ 2010 x64 Redistributable - 10.0.30319

Then I installed Python 2.6 ( I need to use python 2.6 ONLY)

Then I am trying to install the above. But it fails. Please advise.



  • Anonymous

    Anonymous - 2012-05-16

    I got the same error, and this fix worked for me, installing on windows 7:

    1. extract the installer file to a directory using the free 7zip (or similar) program
    2. Copy everything in the PLATLIB directory to C:\Python26\Lib\site-packages
    3. open a command prompt to the SCRIPT directory and type:
    python pywin32_postinstall.py -install

    You must have Python already installed (perhaps obviously) and in your windows PATH environment variable for this to work. You can also try the testall script in that directory, though for me it hung and I was able to import pywin32 modules from the Python IDLE just fine.

    From looking around the web for solutions to this error, it seems the cause may be a script not finding a dll file.

  • Mark Hammond

    Mark Hammond - 2012-05-16

    Should be fixed in build 217.

  • Mark Hammond

    Mark Hammond - 2012-05-16
    • status: open --> closed-out-of-date
  • Glenn Linderman

    Glenn Linderman - 2012-07-05

    Seems not to be... also seems to be lots of duplicate bugs for this symptom.

    The workaround suggested by openhatch didn't work for me, either... Python 3.3 64-bit.

    I get the same result running the script manually as the installer displays:

    Traceback (most recent call last):
    File "pywin32_postinstall.py", line 612, in <module>
    File "pywin32_postinstall.py", line 322, in install
    LoadSystemModule(lib_dir, "pywintypes")
    File "pywin32_postinstall.py", line 160, in LoadSystemModule
    ('.dll', 'rb', imp.C_EXTENSION))
    File "c:\python33\lib\imp.py", line 181, in load_module
    raise ImportError(msg, name=name)
    ImportError: Don't know how to import pywintypes (type code 3