On 2/14/06, Rotondari Raphael wrote:
>
> hello everybody.
>
> i'm new with jython/python and try to run loadtest with grinder on a wind=
ows maschine.
>
> when i add
>
> import re
>
> to my script, i get the error msg:
>
> AssertionError: SRE module mismatch
> File "C:\jython\install\Lib\sre_compile.py", line 17, in ?
> File "C:\jython\install\Lib\sre.py", line 97, in ?
> File "C:\jython\install\Lib\re.py", line 7, in ?
> File "myTestFile.py", line 6, in ?
>
> i found a post saying this has been fixed, but??? i tried jython21 and 20=
as well.
>
> it works fine from the command line though! import sys, os, string... wor=
ks fine as well.
>
> has anybody a solution for me and/or experience with grinder??
>
> cheers,
> raphi
>
Is your grinder environment picking up a version of the python
libraries from 2.3 or newer?
AFAICT, sre support is split between the python module and java code
(or C code in standard python), and kept in sync via a magic constant.
Apparently CPython bumped the constant going from 2.2 to 2.3. Jython
of course hasn't reached 2.3 yet, so if you drop in python libraries
from version 2.3 or better, you'll trip this assertion. Check your
python path settings.
- kz
|