I wrote a python code which worked find on my laptop (python version 2.7.3), but it doesn’t seem to run on my university desktop (python version 2.5.2).
I don’t know if it is a version problem, but I got the error message about the following line:
os.chdir('../../pulsararchive/{0}'.format(pname))
and I got the following error message:
AttributeError: ‘str’ object has no attribute ‘format’
Does the “format” thing not work in the older versions of python?
http://docs.python.org/library/stdtypes.html#str.format
See also Is there a Python module for 2.5 that provides something similar to the "string".format() call in 2.6?