Hi Eddie,
the problem is not forcing a specific Python version. It's just that
there's a bug in the Pythonnator that makes it incompatible with Python
> 2.4 (i.e. any Python version worth using). Once that is fixed you can
build it on current systems, otherwise it just won't work.
Bye,
Jens
On 07/09/2012 03:17 PM, Eddie Epstein wrote:
Someone recently reported that swig executables can be hardwired to
a specific python versions. See the swig documentation for python
support.
Eddie
On Mon, Jul 9, 2012 at 8:50 AM, Jens Grivolla <[email protected]> wrote:
On 07/09/2012 02:36 PM, Jens Grivolla wrote:
[...] In order to compile with Python 2.6 we need to touch uima_wrap.cxx
once
it is generated. Otherwise we get the following error:
uima_wrap.cxx: In function ‘bool PyStringConvert(PyObject*,
icu_3_6::UnicodeString&)’:
uima_wrap.cxx:2844: error: cannot convert ‘int*’ to ‘Py_ssize_t*’ for
argument ‘3’ to ‘int PyString_AsStringAndSize(PyObject*, char**,
Py_ssize_t*)’
We needed to change "int len" to "Py_ssize_t len" in that function (it
would probably work without the change on 32bit systems). Since
uima_wrap.cxx gets generated automatically, we'd need to actually track
down the original source of this error.
Actually, it's the exact same function in scriptators/uima.i so the fix
should be easy.
Jens