ronaldoussoren / py2app

py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
Other
349 stars 35 forks source link

Crash: `error: [Errno 17] File exists` with `setuptools >= 71.0.2` #531

Open albertosottile opened 2 months ago

albertosottile commented 2 months ago

The app bundling process (python ... py2app) crashes with the message error: [Errno 17] File exists: [file path] when setuptools>=71.0.2 is installed.

So far, I have seen the error occurring on

but I guess this heavily depends on my app.

Reverting setuptools to version 71.0.0 or lower allows to build the app again.

Failed Actions run: https://github.com/Syncplay/syncplay/actions/runs/10330005141/job/28600913447 Successful Actions run (70.3.0): https://github.com/Syncplay/syncplay/actions/runs/10332215649/job/28603217869

albertosottile commented 2 months ago

Another workaround might be to add setuptools to OPTIONS['excludes'] but this might be impossible in some app bundles.

jwojcik999 commented 2 months ago

I too had the same issue using SetupTools 72.2.0. I reverted back to 70.3.0 and this issue went away. I was building using Python 3.12.5.

balcornc commented 2 months ago

I was having the same issue and reverted to 70.3.0, like @jwojcik999, and met with immediate success.

RancoX commented 1 month ago

same for me on macOS Sonoma with Python 3.12.5, reverted to 70.3.0 and problem solved

glyph commented 1 month ago

Me too. I had to convince pip-compile to pin setuptools which was annoying, but it did indeed fix the issue.