Hi Heinz,

hab vor later Hektik am Donerstag verpennt zu Mailen
(Musste nach Stuugart un mich moralisch auf den Streik vorbereiten)
Kann leider nicht spielen, würde aber die saison gerne ein oder zweimal 
spielen
(falls mich meine kleine Tochter lässt)

Sorry
Gerhard

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <rpy-list@lists.sourceforge.net>
Sent: Thursday, October 11, 2007 5:20 PM
Subject: rpy-list Digest, Vol 17, Issue 5


> Send rpy-list mailing list submissions to
> rpy-list@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/rpy-list
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rpy-list digest..."
>
>
> Today's Topics:
>
>   1. Re: Python to R: Conversion puzzle... (Gregory Warnes)
>   2. Re: Python to R: Conversion puzzle... (Reinder Brolsma)
>   3. Re: Python to R: Conversion puzzle... (Gregory Warnes)
>   4. Re: Python to R: Conversion puzzle... (David J. Scholl)
>   5. Re: Python to R: Conversion puzzle... (Matthew Brett)
>   6. Re: Python to R: Conversion puzzle... (David J. Scholl)
>   7. Re: trouble with imorting rpy in python (Owen Haaga)
>   8. Re: Python to R: Conversion puzzle... (David J. Scholl)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 8 Oct 2007 17:35:22 -0400
> From: Gregory Warnes <[EMAIL PROTECTED]>
> Subject: Re: [Rpy] Python to R: Conversion puzzle...
> To: "RPy help, support and design discussion list"
> <rpy-list@lists.sourceforge.net>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> Something seems to be awry with Python 2.5.  Can you check Python 2.4?
>
> -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
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 09 Oct 2007 09:23:51 +0200
> From: Reinder Brolsma <[EMAIL PROTECTED]>
> Subject: Re: [Rpy] Python to R: Conversion puzzle...
> To: "RPy help, support and design discussion list"
> <rpy-list@lists.sourceforge.net>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I reported this already before, but not yet as an official bug, but the
> latest rpy release in combination with Python 2.5 and Numpy does'nt work
> with float32, but it seems to work with float64.
> float32 results in unexpected results. Hopefully this will be fixed soon.
>
> Ciao
>
> 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
>>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 9 Oct 2007 08:57:32 -0400
> From: Gregory Warnes <[EMAIL PROTECTED]>
> Subject: Re: [Rpy] Python to R: Conversion puzzle...
> To: "RPy help, support and design discussion list"
> <rpy-list@lists.sourceforge.net>
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
>
> 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
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 9 Oct 2007 11:56:49 -0400
> From: "David J. Scholl" <[EMAIL PROTECTED]>
> Subject: Re: [Rpy] Python to R: Conversion puzzle...
> To: "RPy help, support and design discussion list"
> <rpy-list@lists.sourceforge.net>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 10/9/07, Gregory Warnes <[EMAIL PROTECTED]> wrote:
>>
>> 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.
>>
>
> I have what appears to be a related issue.
> rpy 1.0RC3
> using numpy 1.0.3
>
> I compiled rpy on my system. I believe the setup.py should find numpy
>
> $ python
> Python 2.5.1 (r251:54863, Apr 19 2007, 11:03:39)
> [GCC 4.1.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import numpy
>>>> numpy.get_numpy_include()
> /usr/lib/python2.5/site-packages/numpy/lib/utils.py:89:
> DeprecationWarning: get_numpy_include is deprecated, use get_include
>  DeprecationWarning)
> '/usr/lib/python2.5/site-packages/numpy/core/include'
>>>>
>
> $ ls -R /usr/lib/python2.5/site-packages/numpy/core/include
> /usr/lib/python2.5/site-packages/numpy/core/include:
> numpy
>
> /usr/lib/python2.5/site-packages/numpy/core/include/numpy:
> __multiarray_api.h  config.h            npy_interrupt.h  ufuncobject.h
> __ufunc_api.h       multiarray_api.txt  old_defines.h
> arrayobject.h       ndarrayobject.h     oldnumeric.h
> arrayscalars.h      noprefix.h          ufunc_api.txt
>
>
> When using rpy to calculate the mean of an array, R segfaults unless the 
> array
> has a dtype of int32 or float64. The dtypes int8, int16, int64, float32,
> and float96 all produce the same error messages.
>
>
> $ python
> Python 2.5.1 (r251:54863, Apr 19 2007, 11:03:39)
> [GCC 4.1.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import numpy, rpy
> RHOME= /usr/lib/R
> RVERSION= 2.5.1
> RVER= 2051
> RUSER= /home/dscholl
> Loading Rpy version 2051 .. Done.
> Creating the R object 'r' ..  Done
>>>> x = numpy.array([1,2,3,4], dtype=numpy.float64)
>>>> rpy.r.mean(x)
> 2.5
>>>> x = numpy.array([1,2,3,4], dtype=numpy.float32)
>>>> rpy.r.mean(x)
>
> *** caught segfault ***
> address (nil), cause 'memory not mapped'
>
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace
> Selection: 3
> Exception thread.error: 'release unlocked lock' in <class
> 'thread.error'> ignored
>
> It appears that I can convert manually to float64 as a workaround, but 
> this
> strikes me as unexpected behavior. I studied the docs, but didn't 
> recognize this
> issue. Am I using rpy correctly?
>
> Regards, Dave
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 9 Oct 2007 20:35:22 +0100
> From: "Matthew Brett" <[EMAIL PROTECTED]>
> Subject: Re: [Rpy] Python to R: Conversion puzzle...
> To: "RPy help, support and design discussion list"
> <rpy-list@lists.sourceforge.net>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
>> >>> x = numpy.array([1,2,3,4], dtype=numpy.float32)
>> >>> rpy.r.mean(x)
>>
>>  *** caught segfault ***
>
> 32 or 64 bit?
>
> Matthew
>
>
>
> ------------------------------
>
> Message: 6
> Date: Tue, 9 Oct 2007 16:30:18 -0400
> From: "David J. Scholl" <[EMAIL PROTECTED]>
> Subject: Re: [Rpy] Python to R: Conversion puzzle...
> To: "RPy help, support and design discussion list"
> <rpy-list@lists.sourceforge.net>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 10/9/07, Matthew Brett <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> > >>> x = numpy.array([1,2,3,4], dtype=numpy.float32)
>> > >>> rpy.r.mean(x)
>> >
>> >  *** caught segfault ***
>>
>> 32 or 64 bit?
>>
>> Matthew
>>
>
> 32-bit Linux distribution (I think this is what you are asking)
>
> Dave
>
>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 10 Oct 2007 12:49:10 -0400
> From: "Owen Haaga" <[EMAIL PROTECTED]>
> Subject: Re: [Rpy] trouble with imorting rpy in python
> To: <rpy-list@lists.sourceforge.net>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> I had the same problem running R 2.5.1, python 2.5.1 on windows XP
> (almost the same memory address even), and I traced it down to a
> statement which tried to import _rpy2051.pyd.  I tried with R 2.4.1 as
> well, and had the same problem with _rpy2041.pyd.
>
> I'm afraid I don't know enough to say anything beyond that, but the
> binary which Manuzhai posted looks like it's working for me.
>
> I also use ArcGIS 9.2, and I haven't had any trouble running
> geoprocessing scripts with Python 2.5 (knock on wood), so you may or may
> not want to try upgrading to 2.5 and using Manuzhai's binary.
>
>
>
> Best of luck,
>
> Owen
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 8
> Date: Thu, 11 Oct 2007 11:20:38 -0400
> From: "David J. Scholl" <[EMAIL PROTECTED]>
> Subject: Re: [Rpy] Python to R: Conversion puzzle...
> To: "RPy help, support and design discussion list"
> <rpy-list@lists.sourceforge.net>
> Message-ID:
> <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> FWIW, on WindowsXP,
> python 2.5 compiled by the python project,
> numpy 1.0.3.1 compiled by the numpy project,
> the version of rpy from Manuzhai:
> http://manuzhai.nl/files/rpy-1.0-RC3.win32-py2.5.exe
> (the rpy build from sourceforge crashes at import, so I used Manuzhai's 
> build)
>
> I observe the same behavior of crashes or correct values with the same
> dtypes that I reported previously with Linux. The only difference is
> that when python crashes and exits in the Windows command shell, it
> prints no error messages.
>
> Dave
>
>
>
> ------------------------------
>
> -------------------------------------------------------------------------
> 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
>
>
> End of rpy-list Digest, Vol 17, Issue 5
> *************************************** 


-------------------------------------------------------------------------
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