Hello all,
 
        I am new to jython. While building jython it was successful, with some warnings,  only javac, javacc and python is used. I have created two files called, jython and jythonc.
 
In jython, i have code:
 
"/opt/java1.4/jre/bin/java" -Dpython.home="/home/pra/products/jython/jython" -classpath "/home/pra/products/jython/jython/jython.jar:$CLASSPATH" "org.python.util.jython" "$@"
 
 
In jythonc, i have code:
 
"/home/pra/products/jython/jython/jython" "/home/pra/products/jython/jython/Tools/jythonc/jythonc.py" "$@"
 
        While running jythonc script, i found an error saying
 
# ./jythonc
Traceback (innermost last):
  File "/home/pra/products/jython/jython/Tools/jythonc/jythonc.py", line 4, in ?
  File "/home/pra/products/jython/jython/Tools/jythonc/main.py", line 70, in ?
  File "/home/pra/products/jython/jython/Tools/jythonc/compile.py", line 7, in ?
  File "/home/pra/products/jython/jython/Tools/jythonc/SimpleCompiler.py", line 15, in ?
ImportError: no module named warnings
 
        I solved this by adding the following code in SimpleCompiler.py
 
import sys
if "/usr/local/lib/python2.3" not in sys.path :
        sys.path.append("/usr/local/lib/python2.3")
import warnings
 
        But after that, i got an another error saying,
 
#./jythonc
Traceback (innermost last):
  File "/home/pra/products/jython/jython/Tools/jythonc/jythonc.py", line 4, in ?
  File "/home/pra/products/jython/jython/Tools/jythonc/main.py", line 70, in ?
  File "/home/pra/products/jython/jython/Tools/jythonc/compile.py", line 7, in ?
  File "/home/pra/products/jython/jython/Tools/jythonc/SimpleCompiler.py", line 15, in ?
  File "/usr/local/lib/python2.3/warnings.py", line 258, in ?
NameError: OverflowWarning
 
        I don't know how to solve this problem. Please help me in solveing this problem.
 
 
Thanks in Advance,
Prakash.A