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

Build error when including black #518

Open
justvanrossum opened this issue Jan 27, 2024 · 1 comment
Open

Build error when including black #518

justvanrossum opened this issue Jan 27, 2024 · 1 comment

Comments

@justvanrossum
Copy link

If the black package is included in the app, running python setup.py py2app ends with this error:

Usage: setup.py [OPTIONS] SRC ...
Try 'setup.py -h' for help.

Error: Invalid value for 'SRC ...': Path 'py2app' does not exist.

This happens all the way at the end of the build process, and as far as I can tell, the app actually builds correctly.

This is on macOS 14.2.1 with Python 3.12.1, and black 24.1.0

This could also be a problem with black, in fact the problem does not occur with black 23.10.0. But then again, could it relate to the black recipe?

@mrclary
Copy link

mrclary commented Feb 5, 2024

Seeing the same issue with spyder-ide/spyder.

I don't know if OP is an issue with the updated black recipe, altgraph 0.16->0.17.3, or macholib 1.16->1.16.2. All these were introduced in py2app 0.28.5.

Our original error under py2app 0.28.4 was

error: [Errno 2] No such file or directory: '/Users/runner/hostedtoolcache/Python/3.9.14/x64/lib/python3.9/site-packages/black-23.12.0.dist-info/top_level.txt'

Our workaround is to manually add some missing files (see this comment).

py2app 0.28.5, I believe, was intended to fix that issue but introduced the issue observed in the OP.

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

2 participants