It sounds like your version of RPy may have been compiled without  
NumPy support.  Did you compile it yourself, or are you using a pre- 
build version.

-G


On Oct 8, 2007, at 5:18PM , Vince Fulco wrote:

> A review of the docs indicates that conversion s/b automatic.  I am
> trying to do some elementary calculations on a numpy array and am
> getting the following error.
>
>
>>>> spartable2[:]['OO']
> array([ 22.25,   5.75,  -1.5 , -25.  , -19.75,   8.5 , -38.75,  17.25,
>         18.75, -47.  ,  26.25,  -3.75,  18.5 ,  -1.75, -12.5 ,  -3.  ,
>          0.5 , -12.  ,   5.25,  10.25,   0.  ,   9.  ,  -9.75,   8.75,
>  -4.  ], dtype=float32)
>
>>>> r.mean(spartable2[:]['OO'])
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> rpy.RException: cannot convert from type 'numpy.float32'
>
>
>
> Any assistance would be much appreciated.  I am using the latest
> version of RPY on Python 2.5 and FC7.  Thank you.
>
> Vince Fulco
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a  
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to