DLL Load Failed, Not a Valid Win32 App showing for

2019-09-05 06:16发布

问题:

Trying to run the latest version of heatmap. http://jjguy.com/heatmap/

DLL load keeps crapping out on me in both 64 & 32 bit dlls. (Similar questions on this seemed irrelevant as I've tried loading both DLLs)

I'm running Windows 7. I have uninstalled and re-installed 2.7.3 64 bit.

Idle Top line:

Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on win32

I've tried loading

C:\Python27\DLLs\cHeatmap-x86.dll

ImportError: DLL load failed: %1 is not a valid Win32 application.

C:\Python27\DLLs\cHeatmap-x64.dll

ImportError: DLL load failed: %1 is not a valid Win32 application.

I can run heatmap 1.1 but that was before DLLs were added.

回答1:

Do you have this dll? C:\Windows\System32\msvcr110.dll

Copying the dll from another computer fixed the problem for me, not sure how.



回答2:

Resolved. Blank DLL files were created by the build.bat because the environment variable vcinstalldir is blank if a full version of visual studio isn't installed. DLLs were blank, filesize 0KB

Loaded clean DLLs from github. Filesize 9 & 10kb.

Heatmap library imports & functions as designed.



标签: python dll