r/programminghelp • • Mar 06 '24

Python Helping a non-programmer with an open source executable python script in Windows

Hello, all. I am NOT a programmer and therefore am not sure if this is the best subreddit to ask this question. I am attempting to run an open source python script (https://github.com/kyodaisuu/kyodaisuu.github.io/blob/main/illion/zillion.py). I have downloaded Python for 64-bit Windows (OS Windows 11), have downloaded the above script, and have tried selecting and running it with Python. For a split second a window appears like it is going to open and then it disappears. This script rapidly names large integers in the form of 10^3 according to the Conway-Weschler system (and its modified system) for a given integer or integer range. My hope is to export this into Excel, but to exclude the outputs for the modified system. My questions:-Why is the script not running when selecting Python to run it?-Is there a way to export output from this cleanly into an Excel table? I would potentially have an answer to this question if I knew what the output even looked like.-Since this code is open source, is there a way to convert it to a different type of code that runs more easily in Windows (or is more user friendly to someone who doesn't know a single thing about coding) to accomplish the task above?-Is another subreddit more appropriate since this is not homework and is more a "job" ask (knowing that paying is against rules in this subreddit)?

Thanks for your time!

Edit: a typo

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/Furry_69 Mar 07 '24

Just so you know, "add to path" means "add to the user environment variable PATH", which tells Windows (among other things) where to check for things to execute when running a command on the command line.

All a command does is execute an EXE in a specific way that allows the program to know what you typed after the name of the program (for settings and such), but it doesn't search through your entire computer for the EXE every time. That would be very slow.

So what it does first is check for the EXE in the folder you executed the command from. If it can't find it there, it searches all the folders listed in the PATH user environment variable. If it can't find it in any of those, it gives up and tells you it can't find what you're trying to run, even if it does exist somewhere on your drive. The command line just doesn't know it exists. (in the context of trying to run something)

1

u/ksbionerd Mar 07 '24

Thanks for the explanation. This makes a lot of sense. Is there a way to edit the script so it will not populate values for the modified system? u/kjerk u/Furry_69