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
MacOS 11.5.2 crash on startup #756
Comments
Hi, thank for the report! Were you using Pyzo before, and is there something that changed after which you got this error? E.g. upgraded either Pyzo or your Mac? |
It's on a fresh computer that has not seen Pyzo before this installation. |
This looks like this description of a bug recently fixed in pyinstaller: "(macOS) Fix python shared library detection for non-framework python builds when the library path cannot be inferred from imports of the python executable. (#6021)" |
I just ran a new build with the latest PyInstaller. With some luck this fixes it. Could you please try? https://github.com/pyzo/pyzo/releases/download/v4.11.2/pyzo-4.11.2-maybefix1-macos.dmg |
LOL, I cannot open the image you linked: it cannot be displayed because it contains errors. What curse is this? :P I uploaded another artifact. Try this one: https://github.com/pyzo/pyzo/releases/download/v4.11.2/pyzo-4.11.2-maybefix2-macos.dmg |
Strange curse indeed because I can see it. No luck with the new one. Even worse: on an older MacOS (10.15.7), it's not working anymore with the same error message. |
Hi ! Same issue with this download on MacOS 12 beta. Can you check the size of the downloaded dmg ? 86,5 MB or 86 484 551 bytes for me.
—
Samuel Chalifour
06 16 30 13 28
4 lotissement des Champs de la Croix
88600 Fremifontaine
—
Le 8 sept. 2021 à 14:22 +0200, Jean-Julien Joseph Fleck ***@***.***>, a écrit :
… Strange curse indeed because I can see it.
But it's just an image of the error message that says (in French so I have to translate): Pyzo is damaged and can't be open. You should put this item in the trash (and you're given the choice: put in trash or cancel).
No luck with the new one. Even worse: on an older MacOS (10.15.7), it's not working anymore with the same error message.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Only 32M for me, but coherent with previous downloads
|
I meant the Pyzo size. Not the dmg.
—
Samuel Chalifour
06 16 30 13 28
4 lotissement des Champs de la Croix
88600 Fremifontaine
—
Le 8 sept. 2021 à 18:18 +0200, Jean-Julien Joseph Fleck ***@***.***>, a écrit :
… > Hi ! Same issue with this download on MacOS 12 beta. Can you check the size of the downloaded dmg ? 86,5 MB or 86 484 551 bytes for me.
Only 32M for me, but coherent with previous downloads
~/Downloads>du -h pyzo*dmg
34M pyzo-4.11.2-macos.dmg
32M pyzo-4.11.2-maybefix2-macos.dmg
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
There it is:
|
So, if I understand correctly, the DMG opens, and when you extract Pyzo that all works, but on starting Pyzo it produces the error? |
That's right. |
Another attempt, using PySide2: https://github.com/pyzo/pyzo/releases/download/v4.11.2/pyzo-4.11.2-maybefix3-macos.dmg I'm not even sure whether this is an issue with the freezing process itself of related to Qt ... |
Still the same error either on MacOS 11.5.2 or 10.15.7. Sorry. |
My guess is that there is an outdated python3.7.0 somewhere on the computer that crashes and this also takes down pyzo. On the first run, when there was no pyzo on the computer before, pyzo will search for all python binaries in specific places and it will run all of these binaries in a subprocess with the "-V" argument to obtain the python version string, so pyzo can suggest the user to use the binary with the highest version. On a Linux system, invalid or missing libraries will just cause the subprocess to terminate, but I guess, that macOS 11 will also take down the parent process (pyzo). @jjfPCSI1:
|
I revamped the whole freezing process. Could the people who are watching this please try the binary here? https://github.com/almarklein/pyzo/releases/tag/vt201 Please let me know whether it works for you! |
Unfortunately not. I tried this version against MacOS 10.15.7 (Catalina) and still got the same "Pyzo is damaged" error as in #756 (comment) |
@adddvent
all of them are working versions that I use from time to time directly from the command line. I also tried your One thing though for @almarklein , when I copy pyzo from the .dmg and start it for the first time, it takes several seconds before answering the "Pyzo is damaged" error, whereas when I start it a second (or third) time, it gives the error right away. |
Thanks for testing. I just read this page explaining that it might just be something regarding the signing: https://qiagen.secure.force.com/KnowledgeBase/KnowledgeNavigatorPage?id=kA41i000000L5swCAC I wonder if its because we add files to the |
I tried preventing editing the .app after it has been created. Could you try this please: https://github.com/pyzo/pyzo/releases/download/v4.11.7/pyzo-4.11.7-macos_x86_64_02.dmg If it works, please also try it a second time, I'm not sure what happens to any .pyd files that may have been created in the first run.
Yeah, the very first time is known to take longer. I suppose its due to the compilation of py files, though there are not that many so it's actually surprising that the difference is so large not that I think about it. Could also be that file system caching plays a role. |
Ok then:
|
Could you test either/both of these please: https://github.com/pyzo/pyzo/releases/download/v4.11.7/pyzo-4.11.7.11-macos_x86_64.zip |
I have a Mac M1 now, and I can reproduce the original error. The latest binaries that I linked do work for me, except that I get a warning "Pyzo can’t be opened because Apple cannot check it for malicious software." I then had to control-click it, click open, and tell it to open anyway. I'm a Mac newby, is this normal for downloaded apps, or is there something we can do to make that warning go away (e.g. signing the binary with our own signature?) In the mean time I will probably make a new release tomorrow. |
Looks like pyinstaller/pyinstaller#5434 and may have been fixed in pyinstaller by pyinstaller/pyinstaller#5451 |
When installing the last MacOS pyzo version from the website (4.11.2), it seems to crash on startup with the given error message.
As you seem to have solve the last MacOS update problem in #731, is this somehow related or is it a new problem ?
The text was updated successfully, but these errors were encountered: