[GH-ISSUE #193] warning file already exists but should not #175

Closed
opened 2026-02-26 12:20:43 +03:00 by kerem · 4 comments
Owner

Originally created by @llluuulll on GitHub (Aug 26, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/193

Hi,

Just let you know, the probleme of Pyinstaller warning dialogues popup at start of the exe about warning file already exists but should not ... Jus reading about and it appear it is a old problem defenetly not resolved since all that years ...

This probleme hit me a soon as i have start adding pyd as additional files etc...
It seem to affect especially the --onefile build and especially the command line build without providing a spec file ... this is really sad it is exactly my setup.

This is a pure annoyance and unfortunately affect your programm to, because the generated exe using your programm have this problem witch make the use of your program useless.

The only way seem to manually modify the generated spec file to turnaround this problem, but this turnaround obligate to provide a modified spec file witch is not dynamique at all.

I know the source of the problem is not in your programm, but your programm suffer of this problem.

In case, do you have any idea of other turnaround than the one of modifying the spec file ?

Thx

Originally created by @llluuulll on GitHub (Aug 26, 2021). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/193 Hi, Just let you know, the probleme of Pyinstaller warning dialogues popup at start of the exe about warning file already exists but should not ... Jus reading about and it appear it is a old problem defenetly not resolved since all that years ... This probleme hit me a soon as i have start adding pyd as additional files etc... It seem to affect especially the --onefile build and especially the command line build without providing a spec file ... this is really sad it is exactly my setup. This is a pure annoyance and unfortunately affect your programm to, because the generated exe using your programm have this problem witch make the use of your program useless. The only way seem to manually modify the generated spec file to turnaround this problem, but this turnaround obligate to provide a modified spec file witch is not dynamique at all. I know the source of the problem is not in your programm, but your programm suffer of this problem. In case, do you have any idea of other turnaround than the one of modifying the spec file ? Thx
kerem 2026-02-26 12:20:43 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@llluuulll commented on GitHub (Aug 26, 2021):

Hi,

instead of --add-data, using --ad-binary for the pyd files solve the problem.

<!-- gh-comment-id:906731852 --> @llluuulll commented on GitHub (Aug 26, 2021): Hi, instead of --add-data, using --ad-binary for the pyd files solve the problem.
Author
Owner

@llluuulll commented on GitHub (Aug 26, 2021):

So,

The real cause was a unknown behaviour of auto filling of extensions list by Pyinstaller.
In my case the main script import two of all my pyd files, and this two pyd are automatically added in the extensions list, and when i was add them in the --add-data i was getting the problem about ... warning file already exists but should not ...

By using --add-binary for the pyd, Pyinstaller luckilly perform a check between the binaries and the extensions and skip the doble entry and fire an output warning for each file during the packaging.

And lastly, by just not adding at all the pyd who are imported inside the main script, all is finally ok, because the imported pyd are auto added in the extensions list and there is no need to add them anywhere else.

<!-- gh-comment-id:906770701 --> @llluuulll commented on GitHub (Aug 26, 2021): So, The real cause was a unknown behaviour of auto filling of extensions list by Pyinstaller. In my case the main script import two of all my pyd files, and this two pyd are automatically added in the extensions list, and when i was add them in the --add-data i was getting the problem about ... warning file already exists but should not ... By using --add-binary for the pyd, Pyinstaller luckilly perform a check between the binaries and the extensions and skip the doble entry and fire an output warning for each file during the packaging. And lastly, by just not adding at all the pyd who are imported inside the main script, all is finally ok, because the imported pyd are auto added in the extensions list and there is no need to add them anywhere else.
Author
Owner

@brentvollebregt commented on GitHub (Aug 27, 2021):

Thank you for sharing your resolution!

<!-- gh-comment-id:906991279 --> @brentvollebregt commented on GitHub (Aug 27, 2021): Thank you for sharing your resolution!
Author
Owner

@github-actions[bot] commented on GitHub (Oct 27, 2021):

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.

<!-- gh-comment-id:952440729 --> @github-actions[bot] commented on GitHub (Oct 27, 2021): This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#175
No description provided.