PyUpdater icon indicating copy to clipboard operation
PyUpdater copied to clipboard

[Errno 2] No such file or directory: 'projectname\\win.exe.manifest'

Open valdemonte opened this issue 4 years ago • 4 comments

Hi, I recently cleaned my machine and update the python distribution. After the update, I was not able to build my application anymore using PyUpdater. Here under the error returned:

Capture d’écran 2021-11-03 102305 .

Trying to troubleshoot the error, I found that rolling back to PyInstaller 4.0 solve the problem.

Python: 3.7.11 PyUpdater: 4.0 PyInstaller: 4.6 not working, 4.0 working

valdemonte avatar Nov 03 '21 09:11 valdemonte

i had the same problem.

Mezo1234-beep avatar Nov 09 '21 06:11 Mezo1234-beep

I have the same problem.

If splash screen feature is needed it work with pyinstaller==4.4, so it's seems the problem is introduced in version 4.5 or 4.6.

dimitriepirghie avatar Nov 10 '21 11:11 dimitriepirghie

This is caused by a change introduced in PyInstaller 4.6: https://pyinstaller.readthedocs.io/en/stable/CHANGES.html#id2

(Windows) Embed the manifest into generated onedir executables by default, in order to avoid potential issues when user renames the executable (e.g., the manifest not being found anymore due to activation context caching when user renames the executable and attempts to run it before also renaming the manifest file). The old behavior of generating the external manifest file in onedir mode can be re-enabled using the --no-embed-manifest command-line switch, or via the embed_manifest=False argument to EXE() in the .spec file. (#6248)

The PR above should fix this.

In the meantime, the easiest workaround I guess is to set EXE(..., embed_manifest=False) in your .spec file, as suggested in the quote above.

dennisvang avatar Dec 09 '21 14:12 dennisvang