Replies: 2 comments 1 reply
-
If you would like to know what errors show when i run the `if name == "main": update_process = multiprocessing.Process(target=check_for_updates, args=(queue,)) message = queue.get() update_process.join()` And stuff, what comes out is just showing that stuff loops, i ran the application in CMD, and i pressed ctrl + c to see what would the responce be, and all of this came out Traceback (most recent call last): !io ton! Now im not 100% sure what all of this means, as i said im a starter in coding, so this doesnt make the most sense to me |
Beta Was this translation helpful? Give feedback.
-
I suggest that you don't do this. Code that modifies itself is not a good idea.
As per the docs, this is an infinite recursive spawn loop. |
Beta Was this translation helpful? Give feedback.
-
So i have been trying to code an app, kinda for me and my friends, the purpose of the code is to like, update the code from github, and the code will release to their side, im kinda of a newbie, so this is just something to teach myself with, heres the code i have been working with:
This is the code i have been working for, but if i were to ran this normally (Without the multiprocessing in the console without it being an exe), it would work normally, Now before i added multiprocessing, after i turned it into a onefile exe, it would loop on, like this:
You are using the latest version.
Running main application...
You are using the latest version.
Running main application...
You are using the latest version.
Running main application...
You are using the latest version.
Running main application...
You are using the latest version.
Running main application...
You are using the latest version.
Running main application...
So i searched up online how to fix this error, and i found this:
https://stackoverflow.com/questions/54065079/processes-stuck-in-loop-with-pyinstaller-executable
I tried to do the code like
Yet it still didnt work
So i kept searching and i found this: #1921
So i tried to use the code, and this is how it looked:
And yet still nothing happend, it still continued to loop
So i tried other stuff online, and i found this:
And this:
But both of these that i shown, it doesnt loop the script, but it doesnt start it aswell, it freezes the script
Also i saw some sources online that it might be because its because im typing it wrong or rather that its my pc's fault
But im running this on a windows 10 pro, and im using auto-py-to-exe, and yet it wont work
Is there a way i could fix this or no?
Beta Was this translation helpful? Give feedback.
All reactions