From: <bc...@wo...> - 2001-11-20 14:02:00
|
[Kevin Butler] > >> (somehow my Linux jython >> install is now giving 'AssertionError: SRE module mismatch', and I haven't chased >> that down yet). > >Looks like the reason is that I've installed python2.2 on this machine, so now jython >is using the python2.2 sre, etc. modules, instead of python2.1 which I had been using. > >This causes a problem because the sre_constants 'MAGIC' number was bumped from 20010320 >to 20010701. > >Seems like jython should probably ship with an sre_constants.py that is compatible with >_sre? It does. Jython-21a3 contains a sre magic of 20010320. The CVS version does not contain copies of CPython modules (except the module that we have had to modify to make them work with jython). >I assume the right thing to do for now would be to enhance the jython _sre module to be >20010701-compatible. Absolutely not. Jython-2.1 work with the modules form CPython-2.1.1. It is not tested or intended to work with CPython-2.2 modules. 20010701-compatibility should be added after the release of jython-2.1 final. >Instead, I just modified my python.path in /usr/share/jython/registry to point to >python2.1 And that is the right way to run the CVS version of jython. I do it by having this in my %HOME%/.jython file: python.path=d:\\python\\Python-2.1.1\\Lib >instead of letting jython (somehow?) find python2.2... How indeed! It should not attempt do that automaticly. Maybe it is done by site.py that is reading .pth files? regards, finn |