Hack Forums
[Python] Python.exe and .py files opens calculator - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Python.exe and .py files opens calculator (/showthread.php?tid=5321047)

Pages: Pages 1 2


Python.exe and .py files opens calculator - muroseu - Jun 28, 2016

So yeah.. tittle says it all..

Even if i open python.exe it opens a calculator.. i can't run .py files because it opens a calculator.. I'v tried opening them in cmd and same thing.. I don't know whats the problem..


* - Goodies - Jun 28, 2016

lmao you fucked up and renamed the binary. Or you were fucking around with binary poisoning and injected a calculator into it. Open a command prompt and type this:
PHP Code

<?php 
where python 

Post the path.


* - muroseu - Jun 28, 2016

(Jun 28, 2016 03:19 PM)Goodies Wrote:  lmao you fucked up and renamed the binary. Or you were fucking around with binary poisoning and injected a calculator into it. Open a command prompt and type this:
PHP Code

<?php 
where python 

Post the path.

C:\Python27\python.exe


* - Goodies - Jun 28, 2016

Uninstall then reinstall.


* - muroseu - Jun 28, 2016

(Jun 28, 2016 03:51 PM)Goodies Wrote:  Uninstall then reinstall.

i have done that like 5+ times. deleted all python files and reinstalled. still same thing..


* - ihatevim - Jun 29, 2016

What an unusual error. Have you tried installing python3.5? Also has python worked in the past for you?


* - @beef - Jun 29, 2016

This is really strange. wtf if reinstalling doesn't work then idk tbh


* - muroseu - Jun 29, 2016

(Jun 29, 2016 12:00 AM)Schwagstika Wrote:  What an unusual error. Have you tried installing python3.5? Also has python worked in the past for you?

yeah i have tried installing python3.5 and same thing happens.. it worked like 3 weeks ago like a charm but now this.. cant even open .py files because it opens a fucking calculator.


(Jun 29, 2016 12:55 AM)@beef Wrote:  This is really strange. wtf if reinstalling doesn't work then idk tbh

reinstalling windows. Because it works great on my linux machine


* - garkolym - Jul 2, 2016

Try to clean your regedit :)


* - Goodies - Jul 2, 2016

Something tells me you have malware... that's looking for "Python.exe"


* - muroseu - Jul 4, 2016

(Jul 2, 2016 09:26 PM)Goodies Wrote:  Something tells me you have malware... that's looking for "Python.exe"

Nope not malware. Scanned my PC with every fucking program and checked a lot of files/regedit etc manually


* - ihatevim - Jul 4, 2016

Regardless of what it is, a format and reinstall of Windows/Your OS should fix it.


* - NCluke - Jul 5, 2016

Since no one has asked, check the basics, are you sure your file association for python files is actually set to python? I assume you've tried to open python directly from the installation: ‪C:\Python<XX>\py.exe

Does it do the same thing if you try opening it from CMD? "start ‪C:\Python<XX>\py.exe"

You're not running any keybind/macro programs/hardware right?


* - muroseu - Jul 5, 2016

Edit: Reinstalled Windows 10 on the machine with python problems.

I have linux and windows machines


* - Grimm Reaper - Jul 6, 2016

have u tried checking "gpedit.msc" ? :P ( some of the policies might be altered and thus the problem? maybe >> )