[SciPy-user] how can I get fsolve() work?!

Ri Hai hai@lpt.rwth-aachen...
Fri Mar 30 10:14:07 CDT 2007


Hallo John,

 

I think there must be something wrong with my installation, but I don't know where. Please read the following message.   

 

>>> scipy.test()

 

Warning: FAILURE importing tests for <module 'scipy.linsolve.umfpack.umfpack' from '...y\\linsolve\\umfpack\\umfpack.pyc'>

C:\Python25\lib\site-packages\scipy\linsolve\umfpack\tests\test_umfpack.py:17: AttributeError: 'module' object has no attribute 'umfpack' (in <module>)

 

  Found 4 tests for scipy.io.array_import

  Found 1 tests for scipy.cluster.vq

  Found 128 tests for scipy.linalg.fblas

  Found 397 tests for scipy.ndimage

  Found 10 tests for scipy.integrate.quadpack

  Found 98 tests for scipy.stats.stats

  Found 53 tests for scipy.linalg.decomp

  Found 3 tests for scipy.integrate.quadrature

  Found 96 tests for scipy.sparse.sparse

  Found 20 tests for scipy.fftpack.pseudo_diffs

  Found 6 tests for scipy.optimize.optimize

  Found 6 tests for scipy.interpolate

  Found 12 tests for scipy.io.mmio

  Found 10 tests for scipy.stats.morestats

  Found 4 tests for scipy.linalg.lapack

  Found 4 tests for scipy.io.recaster

 

Warning: FAILURE importing tests for <module 'scipy.linsolve.umfpack' from '...\\linsolve\\umfpack\\__init__.pyc'>

C:\Python25\lib\site-packages\scipy\linsolve\umfpack\tests\test_umfpack.py:17: AttributeError: 'module' object has no attribute 'umfpack' (in <module>)

 

  Found 4 tests for scipy.optimize.zeros

  Found 6 tests for scipy.interpolate.fitpack

  Found 28 tests for scipy.io.mio

  Found 41 tests for scipy.linalg.basic

  Found 2 tests for scipy.maxentropy.maxentropy

  Found 358 tests for scipy.special.basic

  Found 128 tests for scipy.lib.blas.fblas

  Found 7 tests for scipy.linalg.matfuncs

  Found 42 tests for scipy.lib.lapack

  Found 18 tests for scipy.fftpack.basic

  Found 1 tests for scipy.optimize.cobyla

  Found 16 tests for scipy.lib.blas

  Found 1 tests for scipy.integrate

  Found 14 tests for scipy.linalg.blas

  Found 70 tests for scipy.stats.distributions

  Found 4 tests for scipy.fftpack.helper

  Found 4 tests for scipy.signal.signaltools

  Found 0 tests for __main__

 

Don't worry about a warning regarding the number of bytes read.

 

........................................................................................................................................................................................................................................................................................................................................................................................, at this point, python was closed.

 

Do you know why?    

 

 

Hai 

 

 

 

-----Ursprüngliche Nachricht-----
Von: scipy-user-bounces@scipy.org [mailto:scipy-user-bounces@scipy.org] Im Auftrag von John Hassler
Gesendet: Freitag, 30. März 2007 16:25
An: SciPy Users List
Betreff: Re: [SciPy-user] how can I get fsolve() work?!

 

I copy-pasted from your post, and it still works for me.  Does your scipy.test() work without errors?
john

Ri Hai wrote: 

Hell folks,

 

When I use fsolve, python crashes! Now I am testing fsolve with the code from the mailing list:
 
#-----------
from scipy.optimize import fsolve
 
 
def func2(x):
        out = [x[0]+2.*x[1]+2.*x[2]-1.]
        out.append(x[0]+x[2] - 2.*x[1])
        out.append(x[3]+x[4]-1.)
        out.append(1./5-2./5*x[2]+2./5*x[0]*x[3]-x[0])
        out.append(1./5-x[1]/5.-x[2]/5.+2/5.*x[1]*x[4]+x[1]/5.-x[1])
        #out.append(1/5-2/5*x[1]+2*x[2]/5+x[2]*x[3]/5)
        return out
 
x02 = fsolve(func2, [0.25,0.25,0.5,0.5,0.5])
 
#----------------
 
The code is taken form the mail from john in July 2006 and he said it did work. However my python crashed again! I really don't know how to solve this problem.  
 
I use python 2.5, scipy 0.5.2, numpy 1.01 and windows XP.
 
Has someone the same problem? Can somebody help me? Please...
 
Hai 
    
 

 

 

 



________________________________



 
_______________________________________________
SciPy-user mailing list
SciPy-user@scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user
  
 



________________________________



 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.22/739 - Release Date: 3/29/2007 1:36 PM
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20070330/4676be76/attachment-0001.html 


More information about the SciPy-user mailing list