[SciPy-user] newbie python & optimization

Travis Oliphant oliphant.travis at ieee.org
Fri Oct 4 15:03:55 EDT 2002


On Fri, 2002-10-04 at 02:39, Gerard Vermeulen wrote:
> On Thu, Oct 03, 2002 at 12:10:47PM -0500, Davidson, Daniel wrote:
> > 
> > >> Works fine for me. Without more information (OS, SciPy, Python, ...)
> > nobody can help you. 
> > Thanks, Gerard. Here is what I'm using
> > OS: NT (same for Windows 2000)
> > Python: Python 2.2.1
> > SciPy: Installed from running SciPy-0.2.0_alpha_133.4185.win32-py2.2
> > 
> > Is this configuration not supported? Is there a better windows alternative?
> > 
> > Thanks,
> > Dan
> Dan, I am not a Windows user, but trying the latest build
> (SciPy-0.2.0_alpha_140.4277.win32-py2.2.exe), I get:
> 
> Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
> Type "copyright", "credits" or "license" for more information.
> IDLE 0.8 -- press F1 for help
> >>> from Numeric import *
> >>> a = array([1, 2, 3])
> >>> a*a
> array([1, 4, 9])
> >>> import scipy
> Traceback (most recent call last):
>   File "<pyshell#3>", line 1, in ?
>     import scipy
>   File "C:\PYTHON22\Lib\site-packages\scipy\__init__.py", line 49, in ?
>     import special, io, linalg, stats, fftpack
>   File "C:\PYTHON22\Lib\site-packages\scipy\stats\__init__.py", line 195, in ?
>     from stats import *
>   File "C:\PYTHON22\Lib\site-packages\scipy\stats\stats.py", line 1434, in ?
>     import distributions
>   File "C:\PYTHON22\lib\site-packages\scipy\stats\distributions.py", line 3152
>     cond2 = (pr >= 1) || (pr <=0)
>                        ^


Unfortunately, this was a typo that was in CVS for a few hours (it's not
there anymore) --- long enough for an automatic build to get completed. 
You can easily fix it yourself by changing || to |  or get a new
version.

-Travis O.





More information about the SciPy-User mailing list