OK...

so I removed this file, and it is now never... well... seems that at
switch from experimental to optional something went wrong on my local
machine... now it says:

sage: import rpy
sage: rpy.r

...

/opt/sage/local/lib/python2.5/site-packages/rpy.py in __repr__(self)
    321
    322     def __repr__(self):
--> 323         Rver = self.__getitem__('R_version_string')
    324         return "RPy version %s [%s]" % (rpy_version, Rver)
    325

/opt/sage/local/lib/python2.5/site-packages/rpy.py in
__getitem__(self, name)
    304     def __getitem__(self, name):
    305         # use r's 'get' function here, because the rpy one
only handles functions!
--> 306         obj = self.__dict__[name] = self.__dict__.get(name,
self.get(name))
    307         return obj
    308

<class 'rpy.RPy_RException'>: Error in function (x, pos = -1, envir =
as.environment(pos), mode = "any",  :
  variable "R_version_string" was not found

I remember I had same problem with experimental, I had to change
underscore to dot in name, and it was also on RPy mailing list for few
people... anyway I don't know if this is still some remaining part of
old version, or new... I'm going to build clean sage and then get this
package... will report back when it will be ready but it will take
some time...

sorry for troubles, didn't thought it can be old-file-problem,
A.

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