cdrx / docker-pyinstaller

PyInstaller for Linux and Windows inside Docker
MIT License
616 stars 238 forks source link

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

Closed mapto closed 3 years ago

mapto commented 3 years ago

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 commented 3 years ago

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

mapto commented 3 years ago

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