From: Steve C. <St...@ig...> - 2002-01-06 21:04:40
|
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=3D/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]=20 [echo] --- Optional Libraries --- [echo] java2 coll =3D true [echo] servlet =3D true [echo] readline =3D true [echo] oracle =3D ${oracle.present} [echo] informix =3D true [echo] mysql =3D ${mysql.present} [echo] postgresql =3D ${postgresql.present} [echo] jndi =3D true [echo] jdbc =3D 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.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [available] DEPRECATED - <available> used to overide an existing property.=20 Build writer should not reuse the same property name for=20 different values. [echo] --- Build environment for jython --- [echo] --- Flags (Note: If the {property name} is displayed, [echo] --- then the component is not present) [echo]=20 [echo] --- Optional Libraries --- [echo] java2 coll =3D true [echo] servlet =3D true [echo] readline =3D true [echo] oracle =3D ${oracle.present} [echo] informix =3D true [echo] mysql =3D ${mysql.present} [echo] postgresql =3D ${postgresql.present} [echo] jndi =3D true [echo] jdbc =3D 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 |
From: dman <ds...@ri...> - 2002-01-06 21:15:35
|
On Sun, Jan 06, 2002 at 03:04:54PM -0600, Steve Cohen wrote: | 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 problem is that in preparation for moving to version 2.2 the CVS sources are broken right now. Finn announced it today on jython-dev. The (j|cp)ython 2.1 version of SRE is a version mismatch, and the cpython 2.2 modules require new stuff like generators and the 'object', etc, classes. If you want stuff more recent that the last 2.1 release you should find out when the 2.2 modules were moved into cvs and get from a date earlier than that. (or just finish jython 2.2 ;-)) -D -- He who finds a wife finds what is good and receives favor from the Lord. Proverbs 18:22 |