[GH-ISSUE #306] Infinite initialization when trying to import config #269

Closed
opened 2026-02-26 12:21:01 +03:00 by kerem · 10 comments
Owner

Originally created by @kapertdog on GitHub (Aug 31, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/306

Originally assigned to: @brentvollebregt on GitHub.

Quick Checks For You

  • I have read/searched in the help post
  • I have searched other issues looking for an issue similar to mine
  • I have made sure my applicaiton/script runs before trying to package

Describe the bug
Failed to import config: application closes, browser window goes into infinite initialization

To Reproduce
Steps to reproduce the behavior:

  1. Run auto-py-to-exe
  2. Try to import config file
  3. Infinity initializing

If you have example code, please provide a minimal reproducible example.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image
image

Your Environment:

  • Python version (python --version): Python 3.10.6
  • auto-py-to-exe version (pip show auto-py-to-exe): 2.22.0
  • PyInstaller version (pip show pyinstaller): 5.3
  • Eel version (pip show eel): 0.14.0

Additional context
Add any other context about the problem here.

Originally created by @kapertdog on GitHub (Aug 31, 2022). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/306 Originally assigned to: @brentvollebregt on GitHub. **Quick Checks For You** - [x] I have read/searched in the [help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe) - [x] I have [searched other issues](https://github.com/brentvollebregt/auto-py-to-exe/issues?q=is%3Aissue+) looking for an issue similar to mine - [x] I have made sure my applicaiton/script runs before trying to package **Describe the bug** Failed to import config: application closes, browser window goes into infinite initialization **To Reproduce** Steps to reproduce the behavior: 1. Run auto-py-to-exe 2. Try to import config file 3. Infinity initializing > If you have example code, please provide a [minimal reproducible example](https://en.wikipedia.org/wiki/Minimal_reproducible_example). **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** ![image](https://user-images.githubusercontent.com/40202917/187697285-814bb4a5-3f60-4b47-b563-432f9e2af13d.png) ![image](https://user-images.githubusercontent.com/40202917/187697314-84aa3872-b567-42cc-9457-c39849e106aa.png) **Your Environment:** - Python version (`python --version`): Python 3.10.6 - auto-py-to-exe version (`pip show auto-py-to-exe`): 2.22.0 - PyInstaller version (`pip show pyinstaller`): 5.3 - Eel version (`pip show eel`): 0.14.0 **Additional context** Add any other context about the problem here.
kerem 2026-02-26 12:21:01 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@brentvollebregt commented on GitHub (Sep 1, 2022):

I just performed those reproduction steps and was unable to reproduce the issues. Is there a certain config file that makes this happen?

In terms of debugging, can you look at these for me:

  • Open dev tools in the auto-py-to-exe UI (F12); is there anything in the console tab?
  • Did the command in the terminal finish? Or is it still running?
  • Is there any errors in the terminal?
<!-- gh-comment-id:1233999204 --> @brentvollebregt commented on GitHub (Sep 1, 2022): I just performed those reproduction steps and was unable to reproduce the issues. Is there a certain config file that makes this happen? In terms of debugging, can you look at these for me: - Open dev tools in the auto-py-to-exe UI (F12); is there anything in the console tab? - Did the command in the terminal finish? Or is it still running? - Is there any errors in the terminal?
Author
Owner

@kapertdog commented on GitHub (Sep 1, 2022):

Happens to anyone config file
Entered again all the parameters manually, saved the config, loaded it, everything still the same

  • See some errors in web console:
    image
  • Yes, command in the terminal stopped
    image
  • No one error in terminal
  • My config files: my_configs.zip

The problem appeared after updating auto-py-to-exe (don’t remember what version it was before)
If don't import config, all's work

<!-- gh-comment-id:1234038843 --> @kapertdog commented on GitHub (Sep 1, 2022): Happens to anyone config file Entered again all the parameters manually, saved the config, loaded it, everything still the same - See some errors in web console: ![image](https://user-images.githubusercontent.com/40202917/187882427-9d735e79-dfd9-483d-ae3d-23eed4282cea.png) - Yes, command in the terminal stopped ![image](https://user-images.githubusercontent.com/40202917/187882653-e555017f-9269-4d83-92ea-732d4a3f7d03.png) - No one error in terminal - My config files: [my_configs.zip](https://github.com/brentvollebregt/auto-py-to-exe/files/9468759/my_configs.zip) The problem appeared after updating auto-py-to-exe (don’t remember what version it was before) If don't import config, all's work
Author
Owner

@brentvollebregt commented on GitHub (Sep 1, 2022):

Potentially 886bac6789 broke this. If you checkout and use 7b708cb59b, does this still happen?

<!-- gh-comment-id:1234046576 --> @brentvollebregt commented on GitHub (Sep 1, 2022): Potentially 886bac6789113c10c16695802a5174b0c815d0af broke this. If you checkout and use 7b708cb59b53e4705cadc08c55c0921f3b020b6b, does this still happen?
Author
Owner

@kapertdog commented on GitHub (Sep 1, 2022):

No, everything works on 2.21.0

<!-- gh-comment-id:1234052969 --> @kapertdog commented on GitHub (Sep 1, 2022): No, everything works on 2.21.0
Author
Owner

@kapertdog commented on GitHub (Sep 1, 2022):

This error hangs in the web console, but everything is successfully imported and converted
image

<!-- gh-comment-id:1234057179 --> @kapertdog commented on GitHub (Sep 1, 2022): This error hangs in the web console, but everything is successfully imported and converted ![image](https://user-images.githubusercontent.com/40202917/187889263-419877cb-9f70-4c61-9484-5aa331b649ff.png)
Author
Owner

@brentvollebregt commented on GitHub (Sep 1, 2022):

Sweet, so definitely is an issue with 886bac6789 then. The issue would be caused by when the config is loaded, the whole page reloads. Typically this works completely fine (like on my machine) but potentially yours may be loading slower for some reason.

Digging into Eel's source, I see that it calls _shutdown = gvt.spawn_later(1.0, _detect_shutdown) when a websocket disconnects - this makes the application wait 1 second to see if any more websockets are connected and if there are none, terminate.

Just as I was thinking of ways to get around this. I see ChrisKnott/Eel#529 was added recently - increasing this value should fix this issue! I'll drag it up to three seconds and get you to test the fix. Dam, a release hasn't been made for this yet.

Side note: That error is related to "userscript" and is not associated with this project

<!-- gh-comment-id:1234075474 --> @brentvollebregt commented on GitHub (Sep 1, 2022): Sweet, so definitely is an issue with 886bac6789113c10c16695802a5174b0c815d0af then. The issue would be caused by when the config is loaded, the whole page reloads. Typically this works completely fine (like on my machine) but potentially yours may be loading slower for some reason. Digging into Eel's source, I see that it calls `_shutdown = gvt.spawn_later(1.0, _detect_shutdown)` when a websocket disconnects - this makes the application wait 1 second to see if any more websockets are connected and if there are none, terminate. ~Just as I was thinking of ways to get around this. I see ChrisKnott/Eel#529 was added recently - increasing this value should fix this issue! I'll drag it up to three seconds and get you to test the fix.~ Dam, a release hasn't been made for this yet. > Side note: That error is related to "userscript" and is not associated with this project
Author
Owner

@brentvollebregt commented on GitHub (Sep 24, 2022):

Sorry for the delay on this - I have moved away from the reload-based import to clearing everything before importing the config.

The changes will be in 2.23.1 in a bit

<!-- gh-comment-id:1256942026 --> @brentvollebregt commented on GitHub (Sep 24, 2022): Sorry for the delay on this - I have moved away from the reload-based import to clearing everything before importing the config. The changes will be in 2.23.1 in a bit
Author
Owner

@chaush-server commented on GitHub (Sep 25, 2023):

image
image
image

<!-- gh-comment-id:1733196293 --> @chaush-server commented on GitHub (Sep 25, 2023): ![image](https://github.com/brentvollebregt/auto-py-to-exe/assets/79080580/3a6cabe9-ccd8-4ca5-a1e8-de420d341dd3) ![image](https://github.com/brentvollebregt/auto-py-to-exe/assets/79080580/c7ce0c31-12b8-428a-8980-650a32255086) ![image](https://github.com/brentvollebregt/auto-py-to-exe/assets/79080580/d253dcbd-1fb7-4f5b-b3ff-62cf69a9e8b8)
Author
Owner

@brentvollebregt commented on GitHub (Sep 25, 2023):

@chaush-server this was fixed in 2.40.0 - see #431

<!-- gh-comment-id:1733199109 --> @brentvollebregt commented on GitHub (Sep 25, 2023): @chaush-server this was fixed in 2.40.0 - see #431
Author
Owner

@chaush-server commented on GitHub (Sep 25, 2023):

wow so fast answer ty

<!-- gh-comment-id:1733199774 --> @chaush-server commented on GitHub (Sep 25, 2023): wow so fast answer ty
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#269
No description provided.