Try:
import platform print platform.system(), platform.release()
I tried this on my computer with Python 2.6, and I got this as output:
Windows XP
After your last changes, I see that you have called your script platform.py. This causes a naming problem, for example, when you call platform.system() and platform.release() , it looks in your file, not the Python platform module. If you change the name of your file, all your problems should be resolved.
Thomas Owens
source share