Hi Thomas, I just installed a new linux-system with python 2.5. Compiling the py-external I get the following error. What can I do? Thanks and all the best, Michael
is7:/pub/install/pure-data/externals/grill/py # sh ../flext/build.sh pd gcc
make -f ../flext/buildsys/gnumake-sub.mak PLATFORM=lnx RTSYS=pd
COMPILER=gcc BUILDPATH=../flext/buildsys/ PKGINFO=package.txt
BUILDCLASS=ext USRCONFIG=config.txt USRMAKE=build/gnumake-lnx-gcc.inc
TARGETMODE=release TARGETTYPE=multi THREADED=1 _build_
make[1]: Entering directory /pub/install/pure-data/externals/grill/py' mkdir -p pd-linux/release-multi/ g++ -c -msse -mfpmath=sse -ffast-math -O3 -march=pentium4 -pthread -fPIC -DPY_EXPORTS -DPY_NUMPY -DPY_USE_GIL -DNDEBUG -DFLEXT_THREADS -DFLEXT_SYS=2 -DPD -I/usr/include/python2.5 -I/usr/local/src/pd/src -I/usr/local/include/STK -I/usr/local/include/sndobj -I/usr/local/include/flext source/pybuffer.cpp -o pd-linux/release-multi/pybuffer.opp source/pybuffer.cpp:222: error: invalid conversion from 'int (*)(PyObject*, int, const char**)' to 'Py_ssize_t (*)(PyObject*, Py_ssize_t, char**)' source/pybuffer.cpp:440: warning: 'intargfunc' is deprecated (declared at /usr/include/python2.5/object.h:133) source/pybuffer.cpp:441: warning: 'intargfunc' is deprecated (declared at /usr/include/python2.5/object.h:133) source/pybuffer.cpp:442: warning: 'intintargfunc' is deprecated (declared at /usr/include/python2.5/object.h:134) make[1]: *** [pd-linux/release-multi/pybuffer.opp] Fehler 1 make[1]: Leaving directory
/pub/install/pure-data/externals/grill/py'
make: *** [build-release-multi] Fehler 2
Hi Michael,
source/pybuffer.cpp:222: error: invalid conversion from 'int (*)(PyObject*, int, const char**)' to 'Py_ssize_t (*)(PyObject*, Py_ssize_t, char**)'
are you sure you have the latest py/pyext from cvs? I can't find a possible problem on line 222 of pybuffer.cpp.
Apart from that i haven't tested py/pyext with Python 2.5, so there
might be some issues that i don't know of.
all the best, Thomas
-- Thomas Grill http://grrrr.org
Hi Thomas,
Python 2.5. definately is a problem with the latest cvs.
For Python2.4. I had to change Line 34 in pybuffer.cpp to
# include <python/numpy/arrayobject.h>
All the best, Michael
Thomas Grill schrieb:
Hi Michael,
source/pybuffer.cpp:222: error: invalid conversion from 'int (*)(PyObject*, int, const char**)' to 'Py_ssize_t (*)(PyObject*, Py_ssize_t, char**)'
are you sure you have the latest py/pyext from cvs? I can't find a possible problem on line 222 of pybuffer.cpp.
Apart from that i haven't tested py/pyext with Python 2.5, so there might be some issues that i don't know of.
all the best, Thomas
-- Thomas Grill http://grrrr.org
Hi Michael, is that on OSX?
greetings, Thomas
Michael Iber schrieb:
Hi Thomas,
Python 2.5. definately is a problem with the latest cvs.
For Python2.4. I had to change Line 34 in pybuffer.cpp to
# include <python/numpy/arrayobject.h>
All the best, Michael
Thomas Grill schrieb:
Hi Michael,
source/pybuffer.cpp:222: error: invalid conversion from 'int (*)(PyObject*, int, const char**)' to 'Py_ssize_t (*)(PyObject*, Py_ssize_t, char**)'
are you sure you have the latest py/pyext from cvs? I can't find a possible problem on line 222 of pybuffer.cpp.
Apart from that i haven't tested py/pyext with Python 2.5, so there might be some issues that i don't know of.
all the best, Thomas
-- Thomas Grill http://grrrr.org
no, Linux
Greetings, Michael
Thomas Grill schrieb:
Hi Michael, is that on OSX?
greetings, Thomas
Michael Iber schrieb:
Hi Thomas,
Python 2.5. definately is a problem with the latest cvs.
For Python2.4. I had to change Line 34 in pybuffer.cpp to
# include <python/numpy/arrayobject.h>
All the best, Michael
Thomas Grill schrieb:
Hi Michael,
source/pybuffer.cpp:222: error: invalid conversion from 'int (*)(PyObject*, int, const char**)' to 'Py_ssize_t (*)(PyObject*, Py_ssize_t, char**)'
are you sure you have the latest py/pyext from cvs? I can't find a possible problem on line 222 of pybuffer.cpp.
Apart from that i haven't tested py/pyext with Python 2.5, so there might be some issues that i don't know of.
all the best, Thomas
-- Thomas Grill http://grrrr.org