Anyone have any ideas as to why the jython build process is not working for me:

(Note - this build is done on an absolutely clean cvs checkout of the full jython source.  The only file changed is the ant.properties file modified to specify the outside jars.)

Although the build succeeds, after deploying the jar, I get this error message:

[root@sleepingbear jython-2.1]# jython
Jython 2.1+ on java1.3.0 (JIT: null)
error importing site
Traceback (innermost last):
  File "/usr/local/jython/jython-2.1/Lib/site.py", line 62, in ?
  File "/usr/local/jython/jython-2.1/Lib/javaos.py", line 32, in ?
  File "/usr/local/jython/jython-2.1/Lib/re.py", line 7, in ?
  File "/usr/local/jython/jython-2.1/Lib/sre.py", line 17, in ?
  File "/usr/local/jython/jython-2.1/Lib/sre_compile.py", line 15, in ?
AssertionError: SRE module mismatch

Here is the output of the build:


[scohen@sleepingbear jython]$ ant clean jar
ANT_HOME=/home/scohen/jakarta-ant/dist
Buildfile: build.xml

init:
     [echo] --- Build environment for jython ---
     [echo] --- Flags (Note: If the {property name} is displayed,
     [echo] --- then the component is not present)
     [echo]
     [echo] --- Optional Libraries ---
     [echo] java2 coll  = true
     [echo] servlet     = true
     [echo] readline    = true
     [echo] oracle      = ${oracle.present}
     [echo] informix    = true
     [echo] mysql       = ${mysql.present}
     [echo] postgresql  = ${postgresql.present}
     [echo] jndi        = true
     [echo] jdbc        = true

clean:
   [delete] Deleting directory /home/scohen/jython/build
   [delete] Deleting: /home/scohen/jython/org/python/parser/python.jj
   [delete] Deleting: /home/scohen/jython/org/python/parser/PythonGrammar.java
   [delete] Deleting: /home/scohen/jython/org/python/parser/PythonGrammarConstants.java
   [delete] Deleting: /home/scohen/jython/org/python/parser/PythonGrammarTokenManager.java
   [delete] Deleting: /home/scohen/jython/org/python/parser/PythonGrammarTreeConstants.java
   [delete] Deleting: /home/scohen/jython/org/python/parser/Node.java
   [delete] Deleting: /home/scohen/jython/org/python/parser/Token.java
   [delete] Deleting: /home/scohen/jython/org/python/parser/JJTPythonGrammarState.java

init:
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
[available] DEPRECATED - <available> used to overide an existing property.
 Build writer should not reuse the same property name for
different values.
     [echo] --- Build environment for jython ---
     [echo] --- Flags (Note: If the {property name} is displayed,
     [echo] --- then the component is not present)
     [echo]
     [echo] --- Optional Libraries ---
     [echo] java2 coll  = true
     [echo] servlet     = true
     [echo] readline    = true
     [echo] oracle      = ${oracle.present}
     [echo] informix    = true
     [echo] mysql       = ${mysql.present}
     [echo] postgresql  = ${postgresql.present}
     [echo] jndi        = true
     [echo] jdbc        = true

prepare:
    [mkdir] Created dir: /home/scohen/jython/build

tree:
   [jjtree] Java Compiler Compiler Version 2.1 (Tree Builder)
   [jjtree] Copyright (c) 1996-2001 Sun Microsystems, Inc.
   [jjtree] Copyright (c) 1997-2001 WebGain, Inc.
   [jjtree] (type "jjtree" with no arguments for help)
   [jjtree] Reading from file /home/scohen/jython/org/python/parser/python.jjt . . .
   [jjtree] File "/home/scohen/jython/org/python/parser/Node.java" does not exist.  Will create one.
   [jjtree] Annotated grammar generated successfully in /home/scohen/jython/org/python/parser/python.jj

parser:
   [javacc] Java Compiler Compiler Version 2.1 (Parser Generator)
   [javacc] Copyright (c) 1996-2001 Sun Microsystems, Inc.
   [javacc] Copyright (c) 1997-2001 WebGain, Inc.
   [javacc] (type "javacc" with no arguments for help)
   [javacc] Reading from file /home/scohen/jython/org/python/parser/python.jj . . .
   [javacc] Note: UNICODE_INPUT option is specified. Please make sure you create the parser/lexer usig a Reader with the correct character encoding.
   [javacc] Warning: TokenMgrError.java: File is obsolete.  Please rename or delete this file so that a new one can be generated for you.
   [javacc] File "Token.java" does not exist.  Will create one.
   [javacc] Parser generated with 0 errors and 3 warnings.
   [javacc] Warning: ParseException.java: File is obsolete.  Please rename or delete this file so that a new one can be generated for you.
   [javacc] Warning: CharStream.java: File is obsolete.  Please rename or delete this file so that a new one can be generated for you.

compile:
    [javac] Compiling 220 source files to /home/scohen/jython/build
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] Compiling 5 source files to /home/scohen/jython/build
     [copy] Copying 1 file to /home/scohen/jython/build/org/python/modules
     [copy] Copying 1 file to /home/scohen/jython/build/com

jar:
      [jar] DEPRECATED - The jarfile attribute is deprecated. Use file attribute instead.
      [jar] Building jar: /home/scohen/jython/jython.jar

BUILD SUCCESSFUL
Total time: 29 seconds