On Wed, 6 Jul 2016 09:38:47 +1000, Chris Angelico <ros...@gmail.com> wrote:
>On Wed, Jul 6, 2016 at 9:04 AM, Seymore4Head ><Seymore4Head@hotmail.invalid> wrote: >> I am using XP and launching the program from another drive/folder than >> the boot drive. >> >> The program has .py extension and the icon shows it is associated with >> Python. >> >> I tried "start run" and then typed python and it did show the dos box >> with c:\python34/python.exe and the python shell. > >Okay. Step 1: Get a better operating system than Windows XP. Either >upgrade to a newer version of Windows, or (my recommended option) >switch to something like Debian Linux. > >Step 2, whether or not you do step 1: Become familiar with the command >line. If you're staying with Windows, that means Start, Run, cmd.exe. >Run your program from the terminal, and (this is the most important >part) *copy and paste* its output into your next email asking for >help. My suspicion is that your script is terminating with an >exception somewhere, and you're not seeing it because the Windows >association system gives you a Python that comes up and then >disappears promptly when the program terminates. > >Step 3: If the above hasn't trivially solved your problem, now it's >time for actual debugging work. Pepper your code with print() calls, >showing the values of various things, until you figure out what's >going on. > >Have fun! > >ChrisA Thanks for the suggestions. -- https://mail.python.org/mailman/listinfo/python-list