[Rpy] Confusing Bug; 'import gtk' causing rpy to misbehave?!
import rpy rpy.r.library("rpart") rpy.r.library("MASS") stat = "rpart(syct~.,cpus,xval=10,minsplit=2,cp=1e-3)" stat2 = "rpart(syct~.,cpus,xval=10,minsplit=2,cp=0.01)" # working as expected now fits = map(rpy.r,[stat,stat2]) print map(lambda a : len(a['cptable']),fits) # 12, 7 # still working as exptected fits = map(rpy.r,[stat,stat2]) print map(lambda a : len(a['cptable']),fits) # 12, 7 # here comes the funny part import gtk fits = map(rpy.r,[stat,stat2]) print map(lambda a : len(a['cptable']),fits) # 12, 58 - It seems in the last case, that the cp parameter is set to cp=0. Parameters of type 1e-9 is still working correctly though. Bug has been replicated on two different (k)Ubuntu Dapper machines and one windows machine. All machines have been running Numeric, without Numpy installed. R 2.2.1 was used, aswell as python2.3 and python2.4. rpy. anybody smarter than me got any clue what's going on? regards Reidar Strand Hagen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
[Rpy] Problems with rpy import in Debian
Hello. I've got an error trying to import rpy in Debian (not in Windows, like some previous messages pointed out). The error message is: Python 2.3.5 (#2, Nov 20 2005, 16:40:39) >>> import rpy RHOME= /usr/lib/R RVERSION= 2.3.1 RVER= 2031 RUSER= /root Loading Rpy version 2031 .. Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.3/site-packages/rpy.py", line 112, in ? exec("import _rpy%s as _rpy" % RVER) File "", line 1, in ? ImportError: No module named _rpy2031 >>> from rpy_version import rpy_version >>> print rpy_version 1.0-RC1 >>> This is the version package obtained under Debian testing. Does anyone know something about this bug? Thanks for your help. Felipe. __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] Problems with rpy import in Debian
On 20 October 2006 at 12:46, Felipe Ortega wrote: | I've got an error trying to import rpy in Debian (not | in Windows, like some previous messages pointed out). | | The error message is: | | Python 2.3.5 (#2, Nov 20 2005, 16:40:39) | >>> import rpy | RHOME= /usr/lib/R | RVERSION= 2.3.1 ^^^ | >>> from rpy_version import rpy_version | >>> print rpy_version | 1.0-RC1 ^^^ | This is the version package obtained under Debian | testing. As of this week, current versions of R (2.4.0) and rpy (1.0-rc2) are in testing. You appear to be behind. Simply update, and these current version should work for you [ but note that 'python' is now python2.4.] I just (re-)tested, and my box runs 'import rpy' just fine using either python (2.4) or python2.3. Good luck, Dirk -- Hell, there are no rules here - we're trying to accomplish something. -- Thomas A. Edison - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] Confusing Bug; 'import gtk' causing rpy to misbehave?!
Hi Reidar, On 10/20/06, Reidar Strand Hagen <[EMAIL PROTECTED]> wrote: > > anybody smarter than me got any clue what's going on? I have experienced similar strange behaviors when mixing gtk and rpy. It may be that the gtk initialisation is interfering with rpy's. When those are preloaded (ie within an application), the problems go away. So if you have only a script, try putting a delay between imports and/or invert their order. Good luck. cheers -- Mario B. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list