6

I have the 32 bit version of python 3.4 installed. I'm trying to use the win32crypt module after installing pywin32 but I get the following error message in git CLI:

import win32crypt ImportError: DLL load failed: The specified module could not be found.

As recommendedhere, I used dependency walker on the win32crypt.pyd file (located at C://Python34/Libsite-packages/win32 on my computer) and several dll are missing: PYTHON34.dll, PYWINTYPES34.DLL, GPSVC.DLL, IESHIMS.DLL.

Are these missing dll likely to cause the import failure? If so, how can I fix this?

Community
  • 1
  • 1
Kevin L.
  • 316
  • 1
  • 3
  • 8

4 Answers4

6

A more modern solution:

pip install pypiwin32

This contains .whl files to aid in installing on Windows.

David Metcalfe
  • 2,237
  • 1
  • 31
  • 44
4

You don't need to copy/paste any dll, simply add the pywin32 module to the windows environment variable Path. Default is: "C:\Python34\Lib\site-packages\pywin32_system32".

Please note that dependency walker still shows missing dll, so maybe it is of doubtful utility in some cases.

Kevin L.
  • 316
  • 1
  • 3
  • 8
0

I try to use python x64, and it work.

Assam
  • 179
  • 1
  • 13
-1

another solution is that you can copy 2 dll files from "C:\Python34\Lib\site-packages\pywin32_system32" and paste them where ur .py file location is,and then use the command --add-data ".*.dll;." just make sure there're no more dll files but these two in this path. this is suitable when you are using '-F' command