|
From: Stanley, S. <Sco...@we...> - 2003-03-18 17:05:04
|
We are using Jython as part of our installer and are encountering the = following SRE module mismatch error when running on Solaris (works fine = under Windows and Linux). It appears that the MAGIC number is = different, which causes the assertion. Traceback (innermost last): File "<string>", line 1, in ? File "/tmp/0885.tmp/scripts/jython/Lib/shutil.py", line 91, in = copytree File "/tmp/0885.tmp/scripts/jython/Lib/javaos.py", line 32, in ? File "/tmp/0885.tmp/scripts/jython/Lib/re.py", line 7, in ? File "/tmp/0885.tmp/scripts/jython/Lib/sre.py", line 17, in ? File "/tmp/0885.tmp/scripts/jython/Lib/sre_compile.py", line 15, in ? AssertionError: SRE module mismatch Could the Python interpreter be finding another DLL library in its path = or a compiled Python file from another distribution? Any assistance = would be appreciated. Cheers, Scott |
|
From: Darrin E. <de...@de...> - 2003-04-10 20:35:32
|
Hello Jython Users, I've managed to screw something up at http://www.personaltelco.net:8180/adhocracy/user.html The first time I hit this page after restarting Tomcat I get the following error: javax.servlet.ServletException: exception from JPython: Traceback (innermost last): File "", line 1, in ? File "/usr/lib/python2.2/smtplib.py", line 44, in ? File "/usr/lib/python2.2/warnings.py", line 3, in ? File "/usr/lib/python2.2/re.py", line 27, in ? File "/usr/lib/python2.2/sre.py", line 97, in ? File "/usr/lib/python2.2/sre_compile.py", line 17, in ? AssertionError: SRE module mismatch Each following access to the page results in: javax.servlet.ServletException: exception from JPython: Traceback (innermost last): File "", line 28, in ? AttributeError: module 'smtplib' has no attribute 'SMTP' I'm assuming the former is producing the latter. Any thoughts on how I've managed to screw up this installation? Even better, any thoughts on how I might resolve this block? Thanks, -Darrin |
|
From: Charles D. <cd...@sp...> - 2003-04-10 20:42:50
|
Darrin Eden wrote: > Any thoughts on how I've managed to screw up this installation? Even > better, any thoughts on how I might resolve this block? Looks to me like your Jython installation is attempting to use CPython libraries. I'm not sure exactly *why* this would be happening, though -- your PYTHONPATH or somesuch, perhaps? |
|
From: Darrin E. <de...@de...> - 2003-04-10 20:53:16
|
In the registry file I've placed: python.path=/usr/lib/python2.2 -Darrin |
|
From: Charles D. <cd...@sp...> - 2003-04-10 21:04:00
|
Darrin Eden wrote: > In the registry file I've placed: > > python.path=/usr/lib/python2.2 Ahh. Don't do that. :) The cpython re module imports an implimentation-specific python module which imports a C module which doesn't exist in Jython (which has a re implementation which is under-the-hood quite different), IIRC. |
|
From: Darrin E. <de...@de...> - 2003-04-10 21:10:54
|
In order to get smtplib I point it where? Many Thanks, -Darrin Charles Duffy wrote: > Darrin Eden wrote: > >> In the registry file I've placed: >> >> python.path=/usr/lib/python2.2 > > > Ahh. Don't do that. :) > > The cpython re module imports an implimentation-specific python module > which imports a C module which doesn't exist in Jython (which has a re > implementation which is under-the-hood quite different), IIRC. |
|
From: Hasan D. <has...@gm...> - 2005-09-24 22:48:15
Attachments:
PGP.sig
|
I have written a few classes to fetch UseNet news, which work under cPython. I'd like to import messages and put them into a lucene index. pylucene is broken under Debian and I don't feel like messing with Makefiles. After my existing classes didn't work with 2.1, I checked out the CVS. Once that didn't fix the problem, I decided to see where exactly it was failing: Jython 2.2a1 on java1.5.0_04 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import nntplib Traceback (innermost last): File "<console>", line 1, in ? File "/home/hdiwan/Jython/dist/./Lib/nntplib.py", line 32, in ? File "/home/hdiwan/Jython/dist/./Lib/re.py", line 7, in ? File "/home/hdiwan/Jython/dist/./Lib/sre.py", line 97, in ? File "/home/hdiwan/Jython/dist/./Lib/sre_compile.py", line 17, in ? AssertionError: SRE module mismatch >>> Looking through the list archives shows someone else with this exact error and no solution. My hope is that it will be solved this time. If there's a more appropriate place for such a message, please forward it and keep me informed of the outcome. Thank you very much. Cheers, Hasan Diwan <has...@gm...> |