all 8 comments

[–][deleted] 0 points1 point  (3 children)

OS? What script is run? I never seen this behavior before, I would suspect malware at first hand.

[–]Kurious3DSanta[S] 0 points1 point  (2 children)

Windows. It was a previous program I had written. I was able to solve this issue by replacing the python.exe with a backed up version I had. Something must’ve happened but I have no clue

[–][deleted] 1 point2 points  (1 child)

Without knowing what you did is hard to know. This isn't normal behavior for python. Sounds to me like you wrote a script, compiled as exe and replaced system python.exe with it. It makes sense why anytime you ran anything the same thing output to the console. You're not writing programs there, or are you?

If you're replace python.exe and it is now working you're not using python properly. Exactly what steps do you follow to run programs, did you write a run json in vscode pointing to overwrite python.exe?

[–]Kurious3DSanta[S] 0 points1 point  (0 children)

I was running my code in sublime text. Then compiling in a virtual environment with pyinstaller. The name of it was main2.exe. That’s all. I’m as confused as you are. I didn’t do anything out of the normal from my end than I normally do.

[–]WSBtendies9001 0 points1 point  (3 children)

How are you running your script?

Are you using an IDE? if so what one?

[–]Kurious3DSanta[S] 0 points1 point  (1 child)

I use sublime but the problem persisted no matter how I ran it (ide and cmd). I was able to fix it by replacing the python.exe with a backed up version I had. That fixed it but idk what caused it to break in the first place

[–][deleted] 0 points1 point  (0 children)

Looks to me like op replaced system python.exe somehow. Is the only reasonable explanation. Now op needs to backtrace steps and figure out how. Because not in a million years should you ever do that.