Well, now that's indeed strange... maybe old version that I had
installed from -experimental messed something up, and it doesn't
update this file so maybe it's old one?... this could explain why it
looks different... revision of this file is quite old, that's Id tag:
rpy.py 342 2007-02-20 16:41:47Z warnes... commenting this line out
result in:

sage: from rpy import *
sage: r
RPy version 1.0.1 [R version 2.6.1 (2007-11-26)]

I will remove this file, make sure write permission on all files are
ok and rebuild R spkg - I will be back with results in minutes...

On 10 Gru, 20:48, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Dec 10, 2007 11:33 AM, Andrzej Giniewicz <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 10 Gru, 19:57, "William Stein" <[EMAIL PROTECTED]> wrote:
> > > On Dec 10, 2007 10:50 AM, Andrzej Giniewicz <[EMAIL PROTECTED]> wrote:
>
> > > > Hi,
>
> > > > I've seen that R moved from experimental to optional, now as
> > > > r-2.6.1.p6, tryied it but got:
>
> > > > sage: import rpy
> > > > ---------------------------------------------------------------------------
> > > > <type 'exceptions.AttributeError'>        Traceback (most recent call
> > > > last)
>
> > > > /home/giniu/<ipython console> in <module>()
>
> > > > /opt/sage/local/lib/python2.5/site-packages/rpy.py in <module>()
> > > >     171
> > > >     172 # The new exception
> > > > --> 173 RException = _rpy.RException
> > > >     174
> > > >     175 # I/O setters
>
> > > > <type 'exceptions.AttributeError'>: 'module' object has no attribute
> > > > 'RException'
>
> > > > that can be known issue but I decided I will report... :)
>
> > > Thanks.  However:
> > >   (1) What operating system are you using exactly, and what gcc version?
>
> > to be most specific...
>
> Alright, I'm pretty stumped so far.   what happens if you
> just edit
>    /opt/sage/local/lib/python2.5/site-packages/rpy.py
> and put a # at the beginning of the line
>    RException = _rpy.RException
> and try again?  I'm just curious.
>
> Something is really weird, since for all my installs the context for the code
> you list above is:
>
> # Three new exceptions
> # base exception
> RPyException = _rpy.RPy_Exception;
>
> # R <-> Python conversion exception
> RPyTypeConversionException = _rpy.RPy_TypeConversionException;
>
> # Exception raised by R
> RPyRException = _rpy.RPy_RException
>
> # for backwards compatibility
> RException = RPyException
>
> I wonder why your code looks totally different, why you have
> # The new exception
> RException = _rpy.RException
>
> That code doesn't even appear in my rpy.py.
>
>
>
>
>
> > [EMAIL PROTECTED] ~]$ gcc --v
> > Using built-in specs.
> > Target: i686-pc-linux-gnu
> > Configured with: ../configure --prefix=/usr --enable-shared --enable-
> > languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit --
> > disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-
> > clocale=gnu --disable-libstdcxx-pch --with-tune=generic
> > Thread model: posix
> > gcc version 4.2.2
>
> > That's current Arch Linux, kernel 2.6.23.9 (stock distribution kernel)
> > and gLibc 2.7, my machine is 32bit Athlon Barton, exactly it's:
>
> > [EMAIL PROTECTED] ~]$ cat /proc/cpuinfo
> > processor       : 0
> > vendor_id       : AuthenticAMD
> > cpu family      : 6
> > model           : 10
> > model name      : AMD Athlon(tm) XP 2600+
> > stepping        : 0
> > cpu MHz         : 2091.122
> > cache size      : 256 KB
> > fdiv_bug        : no
> > hlt_bug         : no
> > f00f_bug        : no
> > coma_bug        : no
> > fpu             : yes
> > fpu_exception   : yes
> > cpuid level     : 1
> > wp              : yes
> > flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> > mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up ts
> > bogomips        : 4186.91
> > clflush size    : 32
>
> > >   (2) Could you send the build log for building R (i.e., the end of
> > >  SAGE_ROOT/install.log)?
>
> > it's not shortest so I've put it on net, it looks ok... it's at
> >http://giniu.ravenlord.ws/install.log- I renamed old log and did sage
> > -f r-2.6.1.p6 to be sure only needed lines are included
>
> > >   (3) If you type
> > >    sage: !R
> > > what happens?
>
> > R console starts, I can do for example hist(rnorm(1000)) so I can say
> > it mostly works...
>
> > >  --William
>
> > cheers,
> > Andrzej.
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washingtonhttp://wstein.org
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to