python2.1: "SRE module mismatch"
Fredrik Lundh
fredrik at pythonware.com
Fri Apr 27 17:19:30 EDT 2001
Francisco wrote:
> I compiled python2.1 with Debian (potato) Linux and I`m getting a
> problem with sre module. Anything that tries to use sre will end up
> like this:
> assert _sre.MAGIC == MAGIC, "SRE module mismatch"
> AttributeError: MAGIC
> any hints on what I can do to solve this?
get rid of any old modules you have in your Python path.
try this:
python -v -c "import sre"
and make sure it doesn't pick up any 2.0 modules (possible
culprits in this case are _sremodule.so or sre_constants.py)
Cheers /F
More information about the Python-list
mailing list