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

No module named py2app.__main__; 'py2app' is a package and cannot be directly executed #500

Open
AdamVenn opened this issue Aug 6, 2023 · 4 comments

Comments

@AdamVenn
Copy link

AdamVenn commented Aug 6, 2023

Thank you for all your work on this project.

Is pyproject.toml support currently working? I was doing a test, looking to move from setup.py.

I followed the instructions in the docs - the pages 'Invoking py2app' and 'Py2app Configuration' - but when I call python -m py2app, I get the error No module named py2app.__main__; 'py2app' is a package and cannot be directly executed. I checked the tar.gz on PyPi and indeed there is none. Am I doing something wrong?

@MorningLightMountain713
Copy link

Same

@ronaldoussoren
Copy link
Owner

Oops. I didn't pay enough attention when pushing recent work to GitHub, which has resulted in documentation on readthedocs that describes a future situation.

For now only the "legacy setuptools workflow" is supported (https://py2app.readthedocs.io/en/latest/command-line.html#legacy-setuptools-interface), and py2app does not yet support using pyproject.toml.

The master branch in GitHub does contain support for the new interface, but is not yet useable (as in, the new code cannot yet build a working application bundle). I'm still hoping to get the new code base out before the end of the year.

@AdamVenn
Copy link
Author

AdamVenn commented Aug 9, 2023

Aha, okay. I'll be looking forward to the new interface and will be happy to contribute an example if it will be useful.

@sebastianhaberey
Copy link

Also looking forwward to the new workflow since I quite like py2app :)

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

4 participants