Error when return-type is not explicitly set to float

Create issue
Issue #19 new
Kristian Buchardt created an issue

I'm trying to use pyCall. The function I'm calling is returning a variable with type

<class 'numpy.float64'>

but it fails. It seems to me that the type is not recognized in the function "py_to_r" in "CastPyObjects.c". Therefore the function "py_class" is called, and it fails with the error:

Couldn't find the object '__R__'

It is a very cryptic error message, and it took me a while to figure out it was because of the return type.

I did a simpe float() in python before I returned the value, and it solved the problem. Tell me if you need further information.

Comments (1)

  1. Log in to comment