In some cases, scriptForPI.py does not start at all with an error like:
CASA <2>: execfile('scriptForPI.py')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/usr/local/casa/casa-release-4.5.3-el6/lib/python2.7/casapy.py in <module>()
----> 1
2
3
4
5
/usr/local/casa/casa-release-4.5.3-el6/lib/python2.7/casapy.py in <module>()
61
62
---> 63
64
65
ValueError: invalid literal for int() with base 10: ''
CASA <3>:
One reason for this error is the language setting in your machine. This setting can be checked by the command "echo $LANG". If it returns non-English language (e.g. ja_JP.UTF-8 for Japanese), setting it to English (e.g. en_US.UTF-8) can fix the problem.