Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't import win32crypt python module

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?

like image 933
Kevin L. Avatar asked May 01 '14 11:05

Kevin L.


2 Answers

A more modern solution:

pip install pypiwin32

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

like image 186
David Metcalfe Avatar answered Sep 22 '22 02:09

David Metcalfe


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.

like image 23
Kevin L. Avatar answered Sep 20 '22 02:09

Kevin L.