-
Notifications
You must be signed in to change notification settings - Fork 446
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
Old flet client app versions do not launch on Mac #161
Comments
just reinstall flet) |
Sorry, I do not understand what you mean. flet apps cannot stop working just because a new version of flet is released. |
I'm testing in a virtual environment. Apple M1. Just did Was able to run sample app without any issues and with In the same time there is still
|
Thanks for the effort! The issue I was describing is that when you next release 0.1.49, the app that now runs fine on 0.1.48, stops working (without any changes or updates). Virtual machine might not give an accurate result if you restart it between now and then. Next time when this happens for me, I will try restarting the machine instead of installing the latest version. |
I meant it was Python's virtual environment, in a separate folder. I'm testing on a physical machine. OK, let me check an a different Mac with Intel CPU. |
Same happened to me on Mac today. Upgrading also fixed the issue for me. |
Thanks @dsgibbons, this helps. In order to help pinpoint the cause, could you share which editor and package manager are you using? PyCharm and poetry for me. |
Could be related: #181 (comment) |
@mikaelho pip/venv, editing on VSCode, and running on bash terminal |
And one more thing, I am using M1, wonder if that has something to with this? Is the app compiled for M1 or are we emulating Intel? |
@mikaelho I'm using a 2015 MacBook Pro so no M1 here. |
@mikaelho It's build for Intel, so it uses Rosetta on M1. |
New flet 0.1.50 version. Same error. Without installing the new version, I tried manually launching the latest version I had installed:
Same error. Noticed that I only had 0.1.48 and 0.1.49 in the temp dir, so tried if removing the 0.1.48 directory changed anything. Same error. Then tried the launch services registering thing, and tried running again:
No errors from registering call. Still the same error. Updated flet. My test app launched normally, after which flet-0.1.50 directory was created, and also open from the command line worked, opening the empty app. |
As it somehow "knows" there is a new version available? :-/ |
it happens to me from time to time, reloading VScode doesn't fix the issue, restarting MAC completely does. Even if I am running over version 0.1.60
So the conclusion is:
|
That error is coming from macOS. Nothing in Flet is trying to contact GitHub and lookup for the latest version. Once Python Flet package is installed it contains everything it needs, including Flet macOS client and Fletd server. My guess it's related to some remote macOS executables checking service (kind of this https://eclecticlight.co/2020/11/16/checks-on-executable-code-in-catalina-and-big-sur-a-first-draft/). For example, when someone somewhere has already tried a newer macOS client version it starts failing checks for the previous one. You can see the error while trying to run a previous Flet client from a command line:
It's uncharted territory for me as well. Need to google, need to find what exactly that error means. Signing could be an answer. |
can you try the following command on your mac:
|
Another thing to try when it happens: in Finder go to |
|
I've implemented, hopefully, a solution to this issue - let see if it's going to work in the next update scheduled later this week. |
@FeodorFitsner sadly. I still see the same error on the new version:
Running the app:
|
What do you have in $TMPDIR/flet-0.1.62 folder? |
Here is the tree:
|
What files do you have in |
Nothing, it is empty:
|
OK, great. Now, could you please delete the entire |
@FeodorFitsner That works, thanks. What do you suggest as a permanent solution? |
Thanks for the update! I don't know if it's going to be permanent, but the solution would be moving Flet executables out of |
I'm getting the error
and these errors in my system console when it happens
System restart seems to fix the problem. Is this related, should I file a separate issue, or did the PR that closed this issue also fix the issue I am having? |
It's related problem I guess though errors are always different and cryptic in all cases. |
Have repeatedly seen the following behavior on Mac:
I get this error when trying to launch a flet app in "local app mode":
The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x60000374d650 {Error Domain=NSPOSIXErrorDomain Code=111 "Unknown error: 111" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}
Web mode works normally.
When I check flet version, I see that there is a new version available.
After upgrading to latest version, app launches normally.
While this is in a way great, as it keeps me motivated to quickly upgrade to the latest version, it is not good for stable application use.
Speculation: Mac only considers the latest flet Flutter client app valid.
Would be great if anyone else using a Mac could verify this behavior.
The text was updated successfully, but these errors were encountered: