{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2170","repository_url":"https://api.github.com/repos/pyinstaller/pyinstaller","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2170/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2170/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2170/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/2170","id":174280434,"node_id":"MDU6SXNzdWUxNzQyODA0MzQ=","number":2170,"title":"Pyinstaller error with python 3.5 and dll dependency","user":{"login":"Sattar1","id":12796536,"node_id":"MDQ6VXNlcjEyNzk2NTM2","avatar_url":"https://avatars2.githubusercontent.com/u/12796536?v=4","gravatar_id":"","url":"https://api.github.com/users/Sattar1","html_url":"https://github.com/Sattar1","followers_url":"https://api.github.com/users/Sattar1/followers","following_url":"https://api.github.com/users/Sattar1/following{/other_user}","gists_url":"https://api.github.com/users/Sattar1/gists{/gist_id}","starred_url":"https://api.github.com/users/Sattar1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sattar1/subscriptions","organizations_url":"https://api.github.com/users/Sattar1/orgs","repos_url":"https://api.github.com/users/Sattar1/repos","events_url":"https://api.github.com/users/Sattar1/events{/privacy}","received_events_url":"https://api.github.com/users/Sattar1/received_events","type":"User","site_admin":false},"labels":[{"id":147222856,"node_id":"MDU6TGFiZWwxNDcyMjI4NTY=","url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/duplicate","name":"duplicate","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-08-31T13:58:15Z","updated_at":"2018-10-03T20:44:47Z","closed_at":"2017-09-12T10:00:10Z","author_association":"NONE","body":"Hi\n\nUsing Pyinstaller in Python 3.5, the exe file shows this error: \"The procedure entry point ucrtbase.terminate could not be located in the dynamic link library api-ms-win-crt-runtime-l1-1-0.dll\" which means there is a dependency to a dll file, but dll is not found in client's windows.\n\nI downgraded to Python 3.4, the issue solved. I can run the exe on Win XP. But I'm not sure, whether some other dll files are missing but i didn't notice. I don't want to be informed for other problems after publishing the app. Is there any way to become sure that all DLL dependencies are solved?\n\nThanks.\n"},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/426795554","html_url":"https://github.com/pyinstaller/pyinstaller/issues/2170#issuecomment-426795554","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/2170","id":426795554,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjc5NTU1NA==","user":{"login":"ptth222","id":25493640,"node_id":"MDQ6VXNlcjI1NDkzNjQw","avatar_url":"https://avatars3.githubusercontent.com/u/25493640?v=4","gravatar_id":"","url":"https://api.github.com/users/ptth222","html_url":"https://github.com/ptth222","followers_url":"https://api.github.com/users/ptth222/followers","following_url":"https://api.github.com/users/ptth222/following{/other_user}","gists_url":"https://api.github.com/users/ptth222/gists{/gist_id}","starred_url":"https://api.github.com/users/ptth222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptth222/subscriptions","organizations_url":"https://api.github.com/users/ptth222/orgs","repos_url":"https://api.github.com/users/ptth222/repos","events_url":"https://api.github.com/users/ptth222/events{/privacy}","received_events_url":"https://api.github.com/users/ptth222/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T20:44:47Z","updated_at":"2018-10-03T20:44:47Z","author_association":"NONE","body":"I hate to re-open old wounds, but the solutions indicated [here](https://pyinstaller.readthedocs.io/en/stable/usage.html#windows) don't seem to work (at least options 1 and 3), and I think I have new information.\r\n\r\nMy setup:\r\nWindows 7 x64 (with all current updates)\r\nPython 3.6.5\r\npyinstaller 3.3.1\r\n\r\nI am creating an exe of my program on a Windows 7 VM that has all of the updates and moving it to another Windows 7 VM that does not have the UCRT update. If I create the exe of my program using the onefile option I get the same error mentioned in this issue, \"The procedure entry point ucrtbase.terminate could not be located in the dynamic link library api-ms-win-crt-runtime-l1-1-0.dll\". If I create the exe using the onedir option, however, the program runs perfectly fine. I can confirm that the indicated DLL is in both the onedir directory and the temp directory created by the onefile exe. \r\n\r\nSince I am creating the exe on Windows 7 this suggests that option 1 in the above link does not work, and I also tried option 3 by following the example [here](https://github.com/pyinstaller/pyinstaller/pull/2821#issuecomment-343289068). It is worth mentioning that the DLL got pulled in whether or not I modified the pathex. I did not test option 2 from the docs but I don't see a reason why it wouldn't work. More than likely this is the solution I will end up doing.\r\n\r\nAll of this suggests to me that there is some difference in how the exe looks for the DLL depending on whether it was made with the onedir or onefile option. The DLL is in the folder that the exe is operating out of for both options, but only the onedir option can find the DLL. I do not know enough about the internals of pyinstaller to go any further, but I thought someone else might instantly know what the difference is and be able to suggest a solution. I also don't see a reason that this problem couldn't effect other DLLs and not just the UCRT ones. Suggesting a deeper root cause than simply not having the UCRT update.\r\n\r\nSince the DLL does get pulled into the exe though I am wondering if the exe would work across bit versions. For example, if I built the exe and the x64 DLL got pulled in would the exe still work on an x86 Windows 7 or vice versa even assuming it had the UCRT update? I wish I had one to test with.\r\n\r\nI apologize if this specific situation has already been seen and explained, but I didn't see anything about it in any of the related issues, and only one mention on SO [here](https://stackoverflow.com/questions/34218333/pyinstaller-onefile-does-not-start-on-some-windows-7-machines/34283691#34283691)."}}
{"actor":{"display_login":"ptth222"}}