On two different computers running Ubuntu 9.04, I downloaded and built
from source sage 3.4.1.  I also downloaded scipy using the synaptic
package manager.  I am under the impression that python and scipy in
sage lead completely separate lives from python and scipy outside
sage.  In normal python (i.e. running python from the command line),
the following works fine:

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy.stats
>>> scipy.stats.poisson.pmf(5,1)
0.00306566200976202

But when I run sage, I get the following:
----------------------------------------------------------------------
| Sage Version 3.4.1, Release Date: 2009-04-21                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: import scipy.stats
sage: scipy.stats.poisson.pmf(5,1)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call
last)

/home/awalker/sage-3.4.1/<ipython console> in <module>()

/home/awalker/sage-3.4.1/local/lib/python2.5/site-packages/scipy/stats/
distributions.pyc in pmf(self, k, *args, **kwds)
   3517         output = zeros(shape(cond),'d')
   3518         place(output,(1-cond0)*(cond1==cond1),self.badvalue)
-> 3519         goodargs = argsreduce(cond, *((k,)+args))
   3520         place(output,cond,self._pmf(*goodargs))
   3521         return output

/home/awalker/sage-3.4.1/local/lib/python2.5/site-packages/scipy/stats/
distributions.pyc in argsreduce(cond, *args)
    237         # make sure newarr is not a scalar
    238         newarr = atleast_1d(args[k])
--> 239         newargs[k] = extract(cond,newarr*expand_arr)
    240     return newargs
    241

TypeError: unsupported operand type(s) for *: 'numpy.ndarray' and
'numpy.bool_'
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to