Hi Jean-Charles,

On Tue, 11 May 2010 11:32:08 +0200, QUILLET Jean-Charles 
<jean-charles.quil...@alyotech.fr> wrote:
> I've got this problem I cannot solve. I've a c++ application from which I 
> create an array sending to python this string:
> 
> anArray = numpy.array((1, 2, 3))
> 
> After extracting the symbol "anArray" from the directory in a 
> boost::python::object, I'm trying to extract the values in C++:
> 
> int val = bp::extract<int>(anArray[0]);
> 
> It doesn't work and raise the error:

This is probably not what you wanted to hear, but my PyUblas package
solves your problem. :)

http://mathema.tician.de/software/pyublas

HTH,
Andreas
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to