poe-scambot icon indicating copy to clipboard operation
poe-scambot copied to clipboard

tkinter window closing

Open repmop opened this issue 7 years ago • 10 comments

Your app kill function in the main scipt crashes out on my setup, I fixed this by commenting out the loop that tries to kill each thread and changing self.kill to self.destroy.

repmop avatar Aug 04 '17 17:08 repmop

That only happens if you run it through idle. Idle uses sockthread which doesn't have a kill function. Running through python not idle works fine

MortimerMcMire avatar Aug 04 '17 17:08 MortimerMcMire

Gotcha thanks, I only ran it through idle because the main script didn't seem to launch correctly through cmd (maybe I'm just doing something wrong on my end, not sure).

repmop avatar Aug 04 '17 18:08 repmop

You shouldn't even need to use cmd, just double click on the script. If you do want to use cmd, you can run python scambot.pyw or I'm pretty sure just scambot.pyw works as well. I'll work on trying to fix the IDLE crash though.

Tonexus avatar Aug 04 '17 18:08 Tonexus

again, both cmd and executing like normal have no effect, leaving me only to launch via idle :(

repmop avatar Aug 04 '17 19:08 repmop

Not even any error messages?

Tonexus avatar Aug 04 '17 20:08 Tonexus

nope, just nothing happening

repmop avatar Aug 04 '17 21:08 repmop

Are you using python 3.4? Do you have a separate python 2.x installed? Can you try adding a print statement after if __name__ == '__main__': and see if it runs? If it doesn't work, try adding a print statement at the very beginning of the file.

Tonexus avatar Aug 04 '17 23:08 Tonexus

Python 3.5.2 and yes I do have a separate python2 install iirc. Print statements added, still nothing going on there (works normally through IDLE).

repmop avatar Aug 05 '17 08:08 repmop

Neither of the print statements work? Try using python3 scambot.pyw to confirm that you aren't defaulting to python 2. If the print statement before the imports doesn't work, there might be something wrong with your python installation, and maybe you should try reinstalling? Does the same behavior occur for other python 3 scripts?

Tonexus avatar Aug 06 '17 00:08 Tonexus

It seems something weird is going on with my how my system configuration recognizes .pyw files, since manually using python scambot.pyw in cmd like you suggested works fine (this rules out a python2 default as well). You might want to add a section talking about how to run the script through an editor as well, since that at least works for me at the moment, and is likely more convenient than running through cmd. Thanks so much for your help!

repmop avatar Aug 06 '17 06:08 repmop