-
Notifications
You must be signed in to change notification settings - Fork 195
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
Windows build/freeze: Missing DLL points to the incorrect download page #147
Comments
I just had a similar problem in Windows 10. Trying the redistributable from that link just gave an error saying I had a newer version. Then I installed the redistributable 2015-2019 from this page: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads which seems to always point to the latest one so it might be a better link. But my problem was with the api-ms-win-crt-multibyte-l1-1-0.dll file missing and I couldn't find it anywhere after installing the redistributable. Ultimately, I copied it from my fman install into the target/project folder for freeze to work. |
Just to chime in, I'm having the same I'm by no means a Windows expert, but is there a particular reason that |
@stevenbedrick you could try to remove the |
Yup, I actually just commented out the call to _add_missing_dlls() and that seemed to do the trick- the resulting .exe file does run (at least on my Windows VM) and I was able to create an installer from it. No idea if it'll run anywhere else, yet- that's the next test. :-) But thanks! So I guess my question at this point is what that function is doing, and if it's something that I might actually need at some point. My non-Windows-expert hunch is that perhaps on a naïve computer (i.e., one that doesn't have any of the visual studio stuff installed) I might expect to run into trouble running the resulting .exe, correct, since it doesn't include those DLLs and they presumably wouldn't be present on the system already? |
The DLLs are simply required on some people's systems. But maybe it's just an issue with older Windows 7 versions. |
Huh! Well, for now, it seems to be doing the trick, at least for my use case. Thanks so much for the reply and the help, and also for the really useful library! :-D |
I lost my job because of the DLL problem. |
I know what your talking about here these dlls are hard to find and really should always be included for windows in I had a few people on super old systems which had issues until i had all of the below files. Needed for older cpu and integrated gpus Like it makes no sense why you would need ANGLE support but having the libEGL.dll was absolutely the only thing needed for those few edge cases and it has not caused any issues for the newer stuff. You should obviously find an official source for these files but in the off chance you cannot i have provided them here. a few of these i found by grabbing other opensource projects compiled apps installing them and then checking installation path for these files and saving them. Once you get the winning combination you can then check them into git and as long as there in src/main/resources/windows when you freeze they should always be included. |
That was my experience as well. That's why fbs adds them to the frozen binary. I haven't yet had the need for |
I had to dig through my notes but yeah i would say these should probably be in every app's windows version. I think the problem in my case was most apparent due the fact i heavily use QtWebengine and on older systems they may not have good OpenGL rendering or compatible dlls installed and these dlls are not like provided by Microsoft dev stuff or base install. Qtwebengine and some of the other visual stuff which relies on: Some context https://www.riverbankcomputing.com/pipermail/pyqt/2020-February/042531.html
I spent months jumping through hoops as have others trying to get QTwebengine based apps to compile and work uniformly across both old and new systems which may not have the same OpenGL drivers or graphics cards. Note that the above is just the Windows side of the fix. There is also some really weird Linux ones too where if i compiled on old ones things would fail on newer ones due to the libz thing or the linux OpenGL loading the wrong library or being incompatible with the wayland/mesa/nvidia drivers, OpenGL the libz thing is also real issue which there was another open issue about i had commented on last year I know its alot of information but these are real common issues with pyinstaller which if accounted for in fbs would make things for newcomers without good debugging and research skills experience alot smoother :) |
As per:
fbs/fbs/freeze/windows.py
Lines 40 to 52 in bd93efb
Missing DLL's for redist 2010, 2012, and 2015 points the user to download only the 2012 version.
MSVCR100 refers to 2010.
MSVCR110 is 2012.
MSVCR140 is 2015
Apologies for no PR. I am not a Python programmer.
The text was updated successfully, but these errors were encountered: