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

RuntimeError: Cannot sign bundle #467

Open Playtimekz opened 2 years ago

Playtimekz commented 2 years ago

When i try to finish the setup, it "returns raise RuntimeError("Cannot sign bundle %r" % (bundle,))". Can anyone help me

Screen Shot 2022-08-14 at 13 51 13

?

Screen Shot 2022-08-14 at 13 51 58
hasii2011 commented 2 years ago

I just ran into this also in one app and in another I get IndexError: tuple index out of range

StraightShooter

Both apps are trying to use python 3.10.6 for the first time Tried py2app 0.28 and latest 0.28.2

hasii2011 commented 2 years ago

look at this

ronaldoussoren commented 2 years ago

@hasii2011 : Your error is different from the original question, and should be fixed in the latest release.

ronaldoussoren commented 2 years ago

@Playtimekz : What happens if you leave out the "-A" option?

What version of macOS are you using?

hasii2011 commented 2 years ago

I'll pick up the latest release

giantqtipz commented 1 year ago

I'm experiencing the same issue. On an M1 macbook, and ran "python3 setup.py py2app -A"

If I leave out "-A", I get a code signing error when opening the app.

huskyhuh commented 1 year ago

I tried every way but I can't solve it,too.:(

pavlinbl4 commented 1 year ago

Same issue. "RuntimeError: Cannot sign bundle '/Users/evgeniy/PycharmProjects/create_macos_app/dist/my_app.app'". MacOs 10.11.6, Python 3.10, py2app 0.28.5. I used both "python setup.py py2app" and "python setup.py py2app -A".

I think error reason is the old version of MacOs. There is no problem on Monterey.

aneczka8 commented 1 year ago

@pavlinbl4 I have got Monterey and have the same problem.

aneczka8 commented 1 year ago

In my case it was a problem with jpeg files. I fixed it with simple change them to png.

remixer-dec commented 9 months ago

For me the issue was that codesign binary was from homebrew and did not support some arguments. Changing path to /usr/bin/codesign fixed it.

leifadev commented 6 months ago

For me the issue was that codesign binary was from homebrew and did not support some arguments. Changing path to /usr/bin/codesign fixed it.

How did you do this?

remixer-dec commented 6 months ago

@leifadev just edit the file that is causing the issue.
alternatively you can try running the build in a clean environment env -i sh, with a full path to the python executable