Отсутствует api ms win crt runtime l1 1 0 dll python
This is output of pyinstaller test.py where test.py is empty file(!).
The text was updated successfully, but these errors were encountered:
codewarrior0 commented Oct 1, 2015
Probably not. Those DLLs are part of the Universal CRT that Python 3.5 uses. I had to add them to the DLL whitelist to make sure they get included. They should be installed by the Python 3.5 installer They are installed as part of Windows 10 itself so I'm curious why they aren't found. maybe it's related to Windows 10, or to having them installed via Windows Update. instead of by the Python 3.5 installer.
AcidWeb commented Oct 2, 2015
Separate installer for every windows release? That is major pain in the ass.
The Visual Studio 2015 VCRedist package includes the above mentioned Windows Update packages, so simply installing the VCRedist will install both the Visual C++ libraries and the Universal CRT. This is our recommended deployment mechanism. On Windows XP, for which there is no Universal CRT Windows Update MSU, the VCRedist will deploy the Universal CRT itself.
AcidWeb commented Sep 12, 2017 •
Somebody need to do a comprehensive check if binaries created on Windows 10 + Windows SDK really create binaries that work on all currently used Windows releases. I'm not 100% sure that DLLs taken from SDK will work correctly on older Windows versions.
Otherwise there should be big red note in documentation that using Windows 10 as build environment might not be good idea if somebody need backward compatibility. And inform that in this case VSCRT should be distributed with application.
OS X binaries created by PyInstaller are already affected by the same type of problem for long time and apparently it's time for Windows too :-)
AcidWeb commented Oct 1, 2015
Well I don't have any api-ms-win-* DLL files. And I got entire Visual Studio installed here.
Both Python and files created by PyInstaller work correctly.
codewarrior0 commented Oct 1, 2015
Needs more investigation. I don't even know where to begin fixing it.
I wouldn't say they're harmless, but I don't know if making them fatal is right, either. The built app still works as long as the CRT is installed at the system level, after all.
Dependency Walker say they are missing.
That's just baffling.
I can't reproduce the warnings on my Windows 7 machine. I wonder if Windows 10 is doing some kind of magic to load those DLLs from a location that's invisible to both Dependency Walker and PyInstaller.
@AcidWeb Since I don't have Windows 10, do you feel like searching your entire Windows folder for the file api-ms-win-crt-runtime-l1-1-0.dll for me?
htgoebel commented Sep 9, 2017
Guys, sorry to say, but this "discussion" is not suitable for solving the issue. Please stop offending and suggest what we as PyInstaller team can do to improve the situation.
To repeat my questions (in a bit different way):
- In which cases is it necessary to install the VSCRT along with an application? For which Python versions? For which Windows versions? Always or only is some extensions are used? Or in different cases for different version of Python?
- Should PyInstaller collect additional dlls? Is this feasible?
- Should PyInstaller issue some warning?
- Should we add a note to the documentation or the Changelog? Please provide a scratch.
Side note: I don't care about any licensing issues here. It's the developers responsibility to verify he/she is allowed to (re-) distribute the software he/she is bundling. He/she has to verify this anyway, so the VSCRT is just one more component. (Although we can help by adding a note to the documentation or issuing a warning.) So it would be okay if PyInstaller collects and VSCRT dlls and adds them to the bundle – if this solves the problem.
cy2k commented Sep 8, 2017 •
@xoviat , personally, I don't consider that a solution. I thought the whole I idea of something like pyinstaller is that it's self-contained? Needing the end user to install other dependencies is problematic, in my opinion.
Not trying to be combative, I'm just trying to think about the end user perspective.
codewarrior0 commented Oct 1, 2015
For the record, I was wrong about the Python installer earlier. It doesn't install the CRT itself; instead, I had to install The UCRT Release for Windows Vista,7,8 from Microsoft before installing Python 3.5. This release isn't needed on Windows 10 because the UCRT is preinstalled.
codewarrior0 commented Oct 2, 2015
Thanks. Hopefully I should have this figured out in time for PyInstaller 3.1.
codewarrior0 commented Oct 2, 2015
Thanks! I almost forgot about ModernIE.
dimansf commented Apr 14, 2019
Win 10 Python 37
I have resolve this problem.
Just: cmd> pyinstaller --paths "C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x86" -F main.py
You may use x64 dlls just change last dir.
In this path cointains all "api-ms-win-crt" dlls and i have succesfull compiled exe file with PyQt5.
codewarrior0 commented Oct 1, 2015
@matysek Since this isn't fixed for 3.0, is there somewhere we can note this as a known issue?
"Apps built with Windows 10 and Python 3.5 may not run on Windows versions earlier than 10."
paulocoutinhox commented Feb 6, 2019
Inside folder "urct" you can point the path inside spec to "x64" folder.
b. The "workaround" is download all required dlls for your python.exe (32 or 64 bits) and put it on folders that pyinstaller can found it. Because on Windows 10 it don't come with this DLLs.
AcidWeb commented Oct 2, 2015
@codewarrior0 @matysek Just confirming Visual C++ Redistributable for Visual Studio 2015 contain all missing DLLs and for now must be distributed with PyInstaller output when Windows 10 + Python 3.5 is used.
codewarrior0 commented Oct 1, 2015
Probably not. Those DLLs are part of the Universal CRT that Python 3.5 uses. I had to add them to the DLL whitelist to make sure they get included. They should be installed by the Python 3.5 installer They are installed as part of Windows 10 itself so I'm curious why they aren't found. maybe it's related to Windows 10, or to having them installed via Windows Update. instead of by the Python 3.5 installer.
tjt263 commented Feb 7, 2019
@prsolucoes, so you're saying it still doesn't actually work anyway?
holdenweb commented Jul 5, 2019
@prsolucoes
Okay, seems none of the developers are interested in helping out with this one. (Which seems strange, given that this is Windows10 were talking about; with ~40% of the desktop/laptop market share, I thought it would be priority no1). So, I guess it's up to us. I'll e-mail you and try to come up with a proper solution for everyone.
Just a quick reminder that this is open source, and while they rarely say it, very few open source developers are at all motivated by "desktop/laptop market share". Given that there are 68 PRs currently outstanding, we might conclude that either
- the developers have lost interest
- the developers have urgent family issues, or are distracted by the need to earn a living
- any number of other imaginable and unimaginable circumstances
Thanks for concluding it needed some community input, and thanks for the experimental results.
The conversation so far would suggest that nobody involved is familiar with the formulation of git patches or Github pull requests, which is unfortunate as it's much easier to look at a branch in a git repository containing actual working code than it is to decipher Just: cmd> pyinstaller --paths "C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x86" -F main.py You may use x64 dlls just change last dir followed by another user-specific "works for me" alternative.
It really isn't hard to contribute what you learn in the form of working code. Try it. I'm pretty sure you'll enjoy it. Test each others' idea by sharing branches in your own fork. Write tests. Ask other people to run them. And then we really will have a "proper solution."
Whatever the result, you will certainly end up with more empathy for the developers, and more insight into collaborative software development.
cesarac1994 commented Apr 14, 2019
Win 10 Python 37
I have resolve this problem.
Just: cmd> pyinstaller --paths "C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x86" -F main.py
You may use x64 dlls just change last dir.
In this path cointains all "api-ms-win-crt" dlls and i have succesfull compiled exe file with PyQt5.
But in my Win 10 Pro, the folder
"C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x86"
is:
"C:\Program Files (x86)\Windows Kits\10\Redist\10.0.17763.0\ucrt\DLLs\x86"
Replies (10)
Hello Alan, I’m a volunteer on this site.
This error is usually cause by the missing Visual C++ Redistributable for Visual Studio 2015 on your Windows. You can solve the problem through installing the software.
Here is two ways for you to install Visual C++ Redistributable for Visual Studio 2015. Choose any one you prefer.
1. Install the software via Windows update
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
920 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
See if this fix helps you:
Let us know if this helps!
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
318 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Give back to the community. Help the next person who has this issue by indicating if this reply solved your problem. Click Yes or No below.
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
56 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Hello Alan, I’m a volunteer on this site.
This error is usually cause by the missing Visual C++ Redistributable for Visual Studio 2015 on your Windows. You can solve the problem through installing the software.
Here is two ways for you to install Visual C++ Redistributable for Visual Studio 2015. Choose any one you prefer.
1. Install the software via Windows update
Thank you for your reply. Windows update wont work on my computer, dont know why. Ive tried the diagnostic tool to no avail. I tried the download you suggested but it doesnt install properly.
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
131 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Has Windows update worked previously? Are you running the fall update (you can update via the media creation tool)?
Have you run any windows update troubleshooter?
In the Control Panel list of troubleshooters, in the “System and Security” section, click “Fix problems with Windows Update.”
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
38 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Thank you again but already tried thpse, i think i may have a cmputer peoblem
rather than software problem might have to seek from a shop
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
22 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
17 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Thank you again for your help, im running windows 8.1 at the moment but have been advised by a local computer shop that upgrading to windows 10 will solve the problem. Im not too keen on the idea as when the free upgrade was out I got windows 10 & had all sorts of problems with printers, hard drives & software not working properley & i done a factory reset to go back to 8.1 & the computer's never been the same since! im led to believe that a lot of those kind of problems have been ironed out, hope that's right because at the moment it doesnt look like i have much choice.
Thank you again for trying. Alan
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
23 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Hopefully Windows 10 will fix the problem you’re having. You could always use disc imaging software like Macrium reflect to backup your 8.1 before updating to 10 then if it doesn’t fix the problem or you experience other problems you can quickly return to 8.1.
It is unfortunately true that upgrades to Windows can make other hardware & software incompatible.
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
18 people found this reply helpful
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Hopefully Windows 10 will fix the problem you’re having. You could always use disc imaging software like Macrium reflect to backup your 8.1 before updating to 10 then if it doesn’t fix the problem or you experience other problems you can quickly return to 8.1.
It is unfortunately true that upgrades to Windows can make other hardware & software incompatible.
Just thought I'd let you know the problem has been solved following a conversation with an I T guy at work. After describing to him how I restore the computer too factory settings he asked me what I do next. The computer had on it a free trial of Office 365 & Macafee, I would un install those then,thinking I'm doing the sensible thing I would run 'CC Cleaner'
This appears to be the problem.
I've reapeated the steps to restore the computer again but this time without running CC Cleaner. Now both ITunes and Windows Update are running perfecty. Seems to me that CC cleaner is either to abrasive or for some reason it just doesn't agree with my computer. Hopefully you might be able to advise someone else with the same problem in the future. Once again thank you for your help & hope this proves to be some use to somebody else. Alan
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
Ситуация такова: есть у меня старый, но очень даже рабочий ноутбук на Windows 7, которым пользуюсь довольно редко. На днях после месяца простаивания понадобилось вордом воспользоваться, а при попытке открытия его и других программ пакета Office выскакивает ошибка "api-ms-win-crt-runtime-l1-1-0.dll" и, естественно, ничего не запускается. Попробовал незапускаемые программы переустановить - ничего не поменялось. Установил все обновления ОС - безрезультатно. Нагуглил, что всегда эта ошибка решается удалением и установкой заново Visual C++, это тоже не помогло. Никаких сисиклинеров и прочего шлака не ставил. Со всеми остальными программами либо проблем нет, либо после выскакивания ошибки они все-таки запускаются. В моем представлении единственный оставшийся вариант - переустановка ОС, но как-то совсем не хочется. Есть какие-нибудь еще варианты решения проблемы, которые я упустил из виду?
Не проходит регистрация api-ms-win-crt-runtime-l1-1-0.dll
Добрый день, на windows 7 SP1 (x64) нужно зарегистрировать библиотеку.
Не запускается Питон, выдаёт ошибку Api-ms-win-crt-runtime-l1-1-0.dll
Здравствуйте! Установил тут Питон 3.5 на свою win7 x64, но он не запускается и выдавал ошибку.
Запуск приложения невозможен, на компьютере отсутствует api-ms-win-crt-runtime-l1-0-0.dll
Здравствуйте, недавно хотел поиграть в игрушку но новообновленной винде, но она выдала данную.
Ladyzhenskiievg, пробовали другого пользователя создать с админ правами?
как там себя офис поведет? и отключить! обновы.
--------
второй раз за неделю подобная хрень с офисом. (тачки все на лицензии. )
окат обновлений. но у меня по расписанию. каждые 60 дн. какое конкретно выносит. хз. не колупал. пока тупо отключил. со временем коллапс.
Выполнял, выдало "защита ресурсов выявила поврежденные файлы, но не может их восстановить etc.", после чего выполнил сканирование DISM, которое ничего не обнаружило. Что делать в данных ситуациях еще не знаю
Добавлено через 3 минуты
Я их не включал года два, только сейчас поставил из-за этой проблемы, мало ли что. В итоге только хуже стало
Выполнял, выдало "защита ресурсов выявила поврежденные файлы, но не может их восстановить etc.", после чего выполнил сканирование DISM, которое ничего не обнаружило. Что делать в данных ситуациях еще не знаю
2016-05-19 22:27:40, Info CSI 000001ef [SR] Cannot repair member file [l:26<13>]"sppcomapi.dll" of Microsoft-Windows-Security-SPP-UX, Version = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001f0 [SR] Cannot repair member file [l:18]"slmgr.vbs" of Microsoft-Windows-Security-SPP-Tools, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001f1 [SR] Cannot repair member file [l:26<13>]"systemcpl.dll" of Microsoft-Windows-systemcpl, Version = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001f2 [SR] Cannot repair member file [l:20]"winver.exe" of Microsoft-Windows-winver, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001f3 [SR] Cannot repair member file [l:14]"sfc.exe" of Microsoft-Windows-WRP-Integrity-Client, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001f4 [SR] Cannot repair member file [l:18]"slmgr.vbs" of Microsoft-Windows-Security-SPP-Tools, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001f5 [SR] This component was referenced by [l:198]"Microsoft-Windows-Foundation-Package~31bf3856ad364e35~x86~~6.1.7601.17514.WindowsFoundati onDelivery"
2016-05-19 22:27:40, Info CSI 000001f6 [SR] Cannot repair member file [l:26<13>]"systemcpl.dll" of Microsoft-Windows-systemcpl, Version = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001f7 [SR] This component was referenced by [l:198]"Microsoft-Windows-Foundation-Package~31bf3856ad364e35~x86~~6.1.7601.17514.WindowsFoundati onDelivery"
2016-05-19 22:27:40, Info CSI 000001f8 [SR] Cannot repair member file [l:20]"winver.exe" of Microsoft-Windows-winver, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001f9 [SR] This component was referenced by [l:198]"Microsoft-Windows-Foundation-Package~31bf3856ad364e35~x86~~6.1.7601.17514.WindowsFoundati onDelivery"
2016-05-19 22:27:40, Info CSI 000001fa [SR] Cannot repair member file [l:14]"sfc.exe" of Microsoft-Windows-WRP-Integrity-Client, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001fb [SR] This component was referenced by [l:198]"Microsoft-Windows-Foundation-Package~31bf3856ad364e35~x86~~6.1.7601.17514.WindowsFoundati onDelivery"
2016-05-19 22:27:40, Info CSI 000001fc [SR] Cannot repair member file [l:26<13>]"sppcomapi.dll" of Microsoft-Windows-Security-SPP-UX, Version = 6.1.7601.17514, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = , Type neutral, TypeName neutral, PublicKey neutral in the store, file cannot be checked
2016-05-19 22:27:40, Info CSI 000001fd [SR] This component was referenced by [l:198]"Microsoft-Windows-Foundation-Package~31bf3856ad364e35~x86~~6.1.7601.17514.WindowsFoundati onDelivery"13>
I see this question has been asked frequently elsewhere on the web, but it seems to go unnoticed or ignored, and people either don't find a solution, or they find a solution and just move on without bothering to update or inform anybody.
I've managed to create a lovely macOS .app and UNIX style executable with no dramas. I'm very happy with it, but now I'm trying to create a Windows10 .exe and it just won't play ball.
If I've overlooked something, I apologize. I have spent a considerable amount of time and effort on finding the solution for myself. If the solution is known, I suggest putting it on the tin in all caps where nobody can miss it. Anyway, here's the io:
Input:
Output:
The text was updated successfully, but these errors were encountered:
tjt263 commented Feb 7, 2019 •
@prsolucoes
Okay, seems none of the developers are interested in helping out with this one. (Which seems strange, given that this is Windows10 were talking about; with ~40% of the desktop/laptop market share, I thought it would be priority no 1). So, I guess it's up to us. I'll e-mail you and try to come up with a proper solution for everyone.
ghost commented Sep 8, 2017
Well I don't see a way forward on this issue. PyInstaller cannot bundle these libraries because of MS licensing restrictions and they are required to run on Windows < 10.
An option to bundle the DLL files would be nice and is now supported by Microsoft. See: https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/ especially points 6, 3, and 1. In other words, having the end user install the redistributable (or assuming that it will be present as part of the operating system) is one approach. But for portability, bundling the DLL’s would be nice. According to the link above: "Updated September 11, 2015: App-local deployment of the Universal CRT is supported. To obtain the binaries for app-local deployment, install the Windows Software Development Kit (SDK) for Windows 10. The binaries will be installed to C:\Program Files (x86)\Windows Kits\10\Redist\ucrt. You will need to copy all of the DLLs with your app (note that the set of DLLs are necessary is different on different versions of Windows, so you must include all of the DLLs in order for your program to run on all supported versions of Windows).” I haven’t tried deploying with Py 3.5 for a while (I have been staying with Py 3.4 precisely because of this problem.) But last I tried things out, things did not work even when the Microsoft redistributable was installed.
Building different windows binaries based on version seems to be the only realistic workaround so far. Unless others are suffering a different problem have found that building a binary with pyinstaller on win7, win8 & win10 separately works fine for each end-user of those products.
codewarrior0 commented Oct 1, 2015
Tomorrow I will check it on some clean Windows 10 environments.
Any more info you can get would be helpful. Thanks.
AcidWeb commented Sep 8, 2017
matysek commented Oct 1, 2015
@codewarrior0 Moving this issue to 3.1 milestone. If you think it should be in 3.0 do otherwise.
matysek commented Oct 1, 2015
@codewarrior0 Are you going to fix this for 3.0?
matysek commented Oct 1, 2015
Or does it require more investigation?
matysek commented Oct 1, 2015
@codewarrior0 I think either README.rst or doc/CHANGES.rst.
cy2k commented Sep 8, 2017
The solution to this problem is to install "Visual C++ Redistributable for Visual Studio 2015."
Sorry, just to be clear, do you mean that the developer that is packaging the code needs to have this installed, or that the end user of the application will need to have this installed in order to run it?
codewarrior0 commented Oct 8, 2015
I found out that there is, in fact, some magic involved.
On Windows 10, the DLLs api-ms-win-crt-*.dll do not actually exist. They are magic words that when passed to the LoadLibrary function, will load a completely different DLL as part of what Windows calls an API Set. This completely different DLL seems to be in all cases ucrtbase.dll .
However, on Windows Vista/7/8, those DLLs do exist. They export functions using the "forwarded exports" feature, where the DLL is redirecting those exports to a different DLL, which is again ucrtbase.dll . So on versions of Windows
The runtime is also made available via Windows Update and should be installed on any machine that has automatic updates running.
codewarrior0 commented Oct 2, 2015
This is the ultimate proof that Win10 was created by black magic! :-P
I am intrigued and terrified. Someday I'll have to install Win10 myself to get to the bottom of this. All I know is, Microsoft says those DLLs are included with Win10 by default, and I know I have them on Win7 because I installed the UCRT package.
AcidWeb commented Oct 1, 2015
Eh apparently wildcard search don't work on Windows 10. That is reason why I not found any -.-
Still I don't have any in Windows directory. But i have multiple copies as part of VS and Windows SDK.
I'm going to sleep now - I will try provide some additional information tomorrow.
matysek commented Oct 1, 2015
@codewarrior0 Are those warnings harmless in general?
AcidWeb commented Oct 1, 2015
Dependency Walker say they are missing.
Tomorrow I will check it on some clean Windows 10 environments.
htgoebel commented Sep 12, 2017
I'm not 100% sure that DLLs taken from SDK will work correctly on older Windows versions.
Neither am I, but I'd trust Microsofts statement here. It' better then what we have now (which is: nothing).
When I use PyInstaller to create a stand-alone exe file of a Python script, I get the ouput below.
Anybody know how to solve this?
3765 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python.exe
3950 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python.exe
4107 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python.exe
4247 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python.exe
4382 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python.exe
4519 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\VCRUNTIME140.dll
4641 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\VCRUNTIME140.dll
4772 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\VCRUNTIME140.dll
4919 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\VCRUNTIME140.dll
5073 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\VCRUNTIME140.dll
5262 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
5409 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
5541 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
5679 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
5810 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
5942 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
6080 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
6213 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
6414 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
6541 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
6656 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
6788 WARNING: lib not found: api-ms-win-crt-process-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\python35.dll
7305 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
7458 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
7644 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
7776 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
7914 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
8057 WARNING: lib not found: api-ms-win-crt-filesystem-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
8191 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
8324 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
8457 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
8591 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ssl.pyd
8806 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\unicodedata.pyd
8941 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\unicodedata.pyd
9075 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\unicodedata.pyd
9224 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ctypes.pyd
9363 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ctypes.pyd
9497 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_ctypes.pyd
9619 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\pyexpat.pyd
9766 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\pyexpat.pyd
9951 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\pyexpat.pyd
10082 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\pyexpat.pyd
10220 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\pyexpat.pyd
10352 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
10483 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
10621 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
10768 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
10900 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
11053 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
11223 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
11354 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
11485 WARNING: lib not found: api-ms-win-crt-conio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_hashlib.pyd
11623 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\select.pyd
11770 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_bz2.pyd
11902 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_bz2.pyd
12040 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_bz2.pyd
12156 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_bz2.pyd
12356 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_bz2.pyd
12488 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_lzma.pyd
12626 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_lzma.pyd
12757 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\arie\appdata\local\programs\python\python35-32\DLLs\_socket.pyd
This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread.
This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread.
Report abuse
Harassment is any behavior intended to disturb or upset a person or group of people. Threats include any threat of suicide, violence, or harm to another. Any content of an adult theme or inappropriate to a community web site. Any image, link, or discussion of nudity. Any behavior that is insulting, rude, vulgar, desecrating, or showing disrespect. Any behavior that appears to violate End user license agreements, including providing product keys or links to pirated software. Unsolicited bulk mail or bulk advertising. Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct. Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation.
AcidWeb commented Sep 9, 2017 •
@htgoebel main problem there is a fact that there is no universal solution for this problem. The solution varies from project to project and that caused this lengthy discussion and multiple false positive "It works!" posts.
Answering your first question - All binaries prepared by PyInstaller that use Python 3.5+ and Windows as build environment are more or less affected by this problem.
If you use Python 3.5+ most error resistant "solution" is distribute standalone VSCRT installer with your application. But that make PyInstaller output not really stantdalone.
I don't have idea how to really fix this issue.
Apologies Hartmut, do understand this isn't a forum. It is a valid workaround though and perhaps someone can make use of that. A solution that works for everyone involves large dependencies for many who don't need them. Windows offer trial licensing for all versions, run in a VM, compile the binary, simple enough fix.
On Sun, Sep 10, 2017 at 4:49 AM, Paweł Jastrzębski ***@***.*** > wrote: @htgoebel main problem there is a fact that there is no universal solution for this problem. The solution varies from project to project and that caused this lengthy discussion and multiple false positive "It works!" posts. Answering your first question - All binaries prepared by PyInstaller that use Python 3.5+ and Windows as build environment are more or less affected by this problem. If you use Python 3.5+ most error resistant "solution" is distribute standalone VSCRT installer with your application. But that make PyInstaller output not really standalone. I don't have idea how to really fix this issue. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .
paulocoutinhox commented Feb 7, 2019
I don't know where is the problem, but it is compiling.
htgoebel commented Sep 12, 2017 •
@AcidWeb Well, what is your advice to developers then? Abstain form Windows? (SCNR). Looking at the mentions of this ticket in other projects and at the duplicates within this project, we need to at least document a solution.
So I see several possible solutions:
Are these proper solutions? Which one should we implement?
codewarrior0 commented Oct 2, 2015
Yep. Here's the link for the redist needed for Python 3.5:
AcidWeb commented Oct 2, 2015
tjt263 commented Feb 6, 2019
@prsolucoes Thanks. I was going to use your thing, but it seems to be 32-bit only.
Can you tell me:
a. Why do we need a workaround? Why doesn't it just.. work?
b. What exactly is the workaround? Just obtain the DLLs manually?
If I can come to understand it, maybe I can come up with a long-term solution for everyone.
AcidWeb commented Oct 2, 2015
So I guess for now a "fix" is bundling proper redist packages with application installer.
AcidWeb commented Oct 2, 2015
@codewarrior0
Clean Windows 10 - My executable work. Dependency Walker say that api-ms-win-* are missing. Not found that DDLs anywhere.
This is the ultimate proof that Win10 was created by black magic! :-P
codewarrior0 commented Oct 1, 2015
Well I don't have any api-ms-win-* DLL files.
Both Python and files created by PyInstaller work correctly.
At least one of these must be false. Would you mind using Dependency Walker on your python.exe and tell me where it is loading the api-ms-win-crt-*.DLL files from?
Both Python and files created by PyInstaller work correctly.
This is expected. Even if PyInstaller doesn't bundle the CRT files, the built app will still run on your system, since you have the CRT files installed system wide. I'd also expect the built app to fail when moved to a system that doesn't have the Universal CRT installed.
Читайте также: