mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 11:45:49 +03:00
[GH-ISSUE #473] Clicking the select file button will freeze on macOS 14.4 arm64 #373
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jiayouzl on GitHub (Mar 23, 2024).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/473
Originally assigned to: @brentvollebregt on GitHub.
macos 14.4 arm64 最新版本的auto-to-exe无法选择文件,点击选择文件按钮,就卡死了.
@github-actions[bot] commented on GitHub (Mar 23, 2024):
👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.
Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.
@brentvollebregt commented on GitHub (Mar 23, 2024):
When you say "the latest version" - does an older version work for you currently?
@jiayouzl commented on GitHub (Mar 23, 2024):
All have this problem!
@brentvollebregt commented on GitHub (Mar 23, 2024):
Does this look related to #304 by any chance?
If you run this script in Python, does it lead to the same issue?
@jiayouzl commented on GitHub (Mar 24, 2024):
Yes, Python 3.9.19 encountered the same problem when running.
@jiayouzl commented on GitHub (Mar 24, 2024):
Delete the code line above and it will be normal.
@brentvollebregt commented on GitHub (Mar 24, 2024):
Great find, however when removing
root.withdraw(), I imagine there is another small window that appears which looks like this:Do you also get this same window?
Aside from answering that question, could you also try this:
Wondering if
root.wm_attributes('-topmost', 1)is the issue as it's trying to interact with a window that's no longer there.@jiayouzl commented on GitHub (Mar 24, 2024):
No, the problem is not solved.
@jiayouzl commented on GitHub (Mar 24, 2024):
I tried to change the code, and the final code is as follows. You can refer to it, and my test here is already working properly.
@brentvollebregt commented on GitHub (Mar 24, 2024):
Oh, that's really interesting; dropping
parent=rootfrom theaskopenfilenamecall. Thank you very much for testing this - I'll take a look at that parameter and see if it makes sense to drop.@brentvollebregt commented on GitHub (Mar 24, 2024):
I've just released auto-py-to-exe 2.43.2 with this change - hopefully this fixes the issue. Let me know if it doesn't and we can look into this more.
@jiayouzl commented on GitHub (Mar 24, 2024):
Okay, 2.43.2 can be used now.
There are still some minor issues, such as after selecting a file once, when selecting the file again, the file selection dialog is in the background of the program instead of in the foreground, and you have to manually bring it up.
@brentvollebregt commented on GitHub (Mar 24, 2024):
I've just put a change on the master branch that may fix this. Instead of creating a new
tkinter.Tkobject each time, only one is created.