Skip to content
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

Missing files in C:\users\root\Application Data\pyinstaller\bincache10_py3* #104

Closed
mapto opened this issue Jan 7, 2021 · 2 comments
Closed

Comments

@mapto
Copy link

mapto commented Jan 7, 2021

pyinstaller is reporting the following error message when I try building for windows:

4996 INFO: Executing - strip C:\users\root\Application Data\pyinstaller\bincache10_py37_64bit\api-ms-win-crt-stdio-l1-1-0.dll
----------------------------------------
Error running 'strip C:\users\root\Application Data\pyinstaller\bincache10_py37_64bit\api-ms-win-crt-stdio-l1-1-0.dll':
[WinError 2] File not found
----------------------------------------
Error: Executing command failed!
Inspecting the directory immediately after that shows that the listed file is the only one present.
Running the entrypoint script again results in a similar result (again only one file present, explicitly mentioned in the error message) with a different DLL.

On top of the cdrx/pyinstaller-windows image from the Docker Hub, I've tried it with both the -py3-win32 and -py3-win64 Dockerfiles. I had to switch to winehq-stable as reported here to be able to get to this point. With the same result I've also tried the following combinations of python3 (with 3.5 and 3.6 could not reach this point) and pyinstaller versions, all with winehq-stable, with both Dockerfiles:
py3.7.5; pyinstaller-3.5
py3.7.5; pyinstaller-3.6
py3.7.9; pyinstaller-3.6
py3.7.5; pyinstaller-4.1
py3.8.7; pyinstaller-4.1
py3.9.1; pyinstaller-4.1

@mapto
Copy link
Author

mapto commented Jan 8, 2021

I have this issue also when I run pyinstaller in a Windows virtual machine

@mapto
Copy link
Author

mapto commented Jan 9, 2021

Resolved by specifying strip=False to the EXE(...) in the spec file.

@mapto mapto closed this as completed Jan 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant