[SciPy-user] desactivating R

Robert Kern robert.kern at gmail.com
Tue Dec 19 05:24:29 CST 2006


Joshua Petterson wrote:
> ##################
> #
> # 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
> ##################

Okay, yeah, that's a very old version of that file. This is what it's supposed
to look like:

  http://projects.scipy.org/scipy/scipy/browser/trunk/Lib/stats/__init__.py

I recommend that you delete that scipy and reinstall.

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


More information about the SciPy-user mailing list