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

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

Open
albertosottile opened this issue Aug 11, 2024 · 5 comments
Open

Comments

@albertosottile
Copy link

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

  • /build/bdist.macosx-10.9-universal2/python3.10-standalone/app/collect/typing_extensions-4.12.2.dist-info
  • /build/bdist.macosx-10.9-universal2/python3.10-standalone/app/collect/tomli-2.0.1.dist-info
  • /build/bdist.macosx-10.9-universal2/python3.10-standalone/app/collect/packaging-24.1.dist-info

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
Copy link
Author

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

@jwojcik999
Copy link

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
Copy link

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

@RancoX
Copy link

RancoX commented Sep 1, 2024

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

glyph added a commit to glyph/Pomodouroboros that referenced this issue Sep 3, 2024
This commit was sponsored by Devin Prater, and my other patrons.  If
you want to join them, you can support my work at
https://glyph.im/patrons/.
@glyph
Copy link
Contributor

glyph commented Sep 3, 2024

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

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

5 participants