[SciPy-user] desactivating R

Joshua Petterson joshuafr at gmail.com
Tue Dec 19 05:19:07 CST 2006


##################
#
# stats - Statistical Functions
#

from info_stats import __doc__

try:
    import pstats
except ImportError:
    import warnings
    import sys
    pyver = 'python%d.%d'%sys.version_info[:2]
    warnings.warn("The pstats module is not available.\nInstall the
%s-profiler Debian package if you need it"%pyver, UserWarning, stacklevel=2)
    del warnings
    del sys
    del pyver

from stats import *
from distributions import *
from rv import *
from morestats import *
try:  # use R functions if installed.
    import rpy
    from rfuncs import *
except ImportError:
    pass
##################

2006/12/19, Robert Kern <robert.kern at gmail.com>:
>
> Joshua Petterson wrote:
> > I don't understand why you say "an old version":
> > |Test_Basemap|[11]>import scipy
> > |Test_Basemap|[12]>scipy.__version__
> >           Out [12]:'0.5.1'
> > |Test_Basemap|[13]>import numpy
> > |Test_Basemap|[14]>numpy.__version__
> >           Out [14]:'1.0'
> > |Test_Basemap|[15]>from scipy.stats import stats
> > RHOME= /usr/lib/R
> > RVERSION= 2.3.1
> > RVER= 2031
> > RUSER= /home/joshua
> > Loading Rpy version 2031 .. Done.
> > Creating the R object 'r' ..  Done
>
> Huh. Can you show us the scipy/stats/__init__.py file that you are
> executing?
> Are you sure that it's not left over from an old install of scipy 0.3.x?
> Because, rpy is simply not in the code anymore except mentioned in a
> docstring:
>
> [Lib]$ glark -ri rpy *
> stats/.svn/text-base/info.py.svn-base:
>   216 -
>   217 - For many more stat related functions install the software R and
> the
>   218 : interface package rpy.
>   219 + """
>   220 +
> stats/info.py:
>   216 -
>   217 - For many more stat related functions install the software R and
> the
>   218 : interface package rpy.
>   219 + """
>   220 +
> [Lib]$
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma
> that is made terrible by our own mad attempt to interpret it as though it
> had
> an underlying truth."
>   -- Umberto Eco
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20061219/0b13667c/attachment.html 


More information about the SciPy-user mailing list