-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not copy vcruntime140.dll file #278
Comments
Duplicate of #259? |
Are you using a virtual environment? See issue #275. |
No, virtualenv is not used. |
I've got exactly same issue. I've worked around it using includes parameter, which works well. |
cx_Freeze was working for me as expected until Chocolatey installed Uninstalling the redist package solved the issue for me, tested in these environments:
|
I've got exactly the same issue. I can reproduce it using the simple sample (cx_Freeze\samples\simple). The setup.py script runs without error, but when one starts the executable (hello.exe) on a computer without Microsoft Visual C++ 2015 Redistributable package installed, the executable crashes with a system error
Python 3.6.5 64 bit Adding the build_exe option
Adding VCRUNTIME140.dll manually to the build directory solves the problem (but this is probably what the include_msvcr should do). Additional remarks:
|
The file VCRUNTIME140.dll is copied into cx_freeze |
Hello, I have noticed as well that simply adding |
I have this problem just now (cx_Freeze 6, Python 3.7, Windows 10). The vcruntime140.dll is present in my Python directory, but is not copied, even providing include_msvcr=True. The problem seems to be that the GetDependentFiles method, (which uses the imagehlp library according to a comment) does not detect a dependency between python37.dll and vcruntime140.dll, but then the built exe refuses to run on a machine without vcruntime140.dll. The workarounds above did not help me, though manually copying the DLL into the dist directory after the build is complete does work. |
OK, great. Hope to see them in a release soon then. |
With the unpatched version the include parameter works just fine, as I've mentioned about two years ago. |
cx_Freeze 6.1 has just been released. |
I got this error while executing the exe generated by cxfreeze: VCRUNTIME140.dll is missing I'm using Python 3.8.1, cxFreeze 6.1, my build options are: build_exe_options = {"packages": ["os","pathlib"], "excludes": ["tkinter"], 'include_msvcr': True} |
Me too |
Hello!
I make simplest script:
and setup.py:
But vcruntime140.dll file was not copied to the build directory.
Python 3.6.1 32 bit
Windows 10
cx_Freeze 5.0.2
virtualenv is not used.
The text was updated successfully, but these errors were encountered: