Python program to exe file problem

hello, im new to programming, but thought id give it a try, you know something new, im using python version 2.6, ive installed py2exe.Ive changed the path in enviroment variables to the python directory.All my python files(.py) are located the same place as where the command prompt looks for it. I wrote a simple program(the comments are just from an earlier thing)(which may be the reason to whats not working):
####x = 3
####x = x*x
####print x
##y = raw_input('enter a number: ' )
##print y
##y = float(raw_input('Enter a number: ' ))
##print y

hello, im new to programming, but thought id give it a try, you know something new, im using python version 2.6, ive installed py2exe.Ive changed the path in enviroment variables to the python directory.All my python files(.py) are located the same place as where the command prompt looks for it. I wrote a simple program(the comments are just from an earlier thing)(which may be the reason to whats not working):
####x = 3
####x = x*x
####print x
##y = raw_input('enter a number: ' )
##print y
##y = float(raw_input('Enter a number: ' ))
##print y

Reinstall the set-up. Take your backup before it. Which version you are using?

Im using python 2.6 and py2exe 0.6.9, which i understand are the correct versions to use together, ive tried reinstalling both of them, no such luck and im unsure of what you mean by'take your backup before it'

This should be pretty clear. You have a syntax error in line one of program.py. Does program.py actually run in python without errors? Can you copy and paste line 1 exactly to this forum?

If i run it in IDLE it comes up with syntax error, but if i open idle and then just a 'new window'(which doesnt have all the copyright stuff and writing at the top) then try to run it, it will execute the script with IDLE and work fine

If i run it in IDLE it comes up with syntax error, but if i open idle and then just a 'new window'(which doesnt have all the copyright stuff and writing at the top) then try to run it, it will execute the script with IDLE and work fine

It would be more helpful if you'd just post line 1 of your program. There's clearly a syntax error there.