[pylucene-dev] two different JCC modules in same VM; initVM()?
Bill Janssen
janssen at parc.com
Thu Mar 6 18:31:23 PST 2008
> >>> goodstuff.initVM(classpath=lucene.CLASSPATH, maxheap='2000m', env=lucene.getVMEnv())
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: <jcc.JCCEnv object at 0xb7ed0240>
> >>>
Hmmm, when I think about it, there's no way this can work. The
comparison in jcc.cpp is
if (!PyObject_TypeCheck((PyObject *) jccenv, &JCCEnvType))
and PyObject_TypeCheck compares the two pointers for equality, but the
two different "JCCEnvType" variables are in two different shared
libraries. So they'll never match.
Bill
More information about the pylucene-dev
mailing list