py2app icon indicating copy to clipboard operation
py2app copied to clipboard

RuntimeError: Cannot sign bundle

Open Playtimekz opened this issue 2 years ago • 13 comments

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

Playtimekz avatar Aug 14 '22 17:08 Playtimekz

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 avatar Sep 05 '22 16:09 hasii2011

look at this

hasii2011 avatar Sep 10 '22 23:09 hasii2011

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

ronaldoussoren avatar Sep 30 '22 07:09 ronaldoussoren

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

What version of macOS are you using?

ronaldoussoren avatar Sep 30 '22 08:09 ronaldoussoren

I'll pick up the latest release

hasii2011 avatar Sep 30 '22 15:09 hasii2011

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.

giantqtipz avatar Dec 20 '22 02:12 giantqtipz

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

huskyhuh avatar Jan 27 '23 14:01 huskyhuh

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.

pavlinbl4 avatar May 08 '23 20:05 pavlinbl4

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

aneczka8 avatar Oct 12 '23 08:10 aneczka8

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

aneczka8 avatar Oct 13 '23 07:10 aneczka8

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.

remixer-dec avatar Jan 07 '24 19:01 remixer-dec

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?

leifadev avatar Apr 07 '24 03:04 leifadev

@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

remixer-dec avatar Apr 07 '24 10:04 remixer-dec