[SciPy-dev] problems with openopt

dmitrey dmitrey.kroshko@scipy....
Sun Sep 21 03:27:35 CDT 2008


Hi Nils,
unfortunately I can't reproduce the bug.
Does anyone else encounter the one?

As for the bug, it means openopt can't find 
.../openopt/solvers/scipy_optim/scipy_leastsq_oo.py file. It could be 
raised if you use openopt from egg file. However, you say you have 
installed from svn, and with ordinary python setup.py install it 
shouldn't be happened.

D.

Nils Wagner wrote:
> Hi Dmitrey,
>
> I have installed the most recent openopt from svn.
>
> Now, several examples failed with a KeyError.
>
> python -i svn/openopt/scikits/openopt/examples/lsp_1.py
> OpenOpt checks user-supplied gradient df (shape: (3, 2) )
> according to:
>      prob.diffInt = [  1.00000000e-07]
>      |1 - info_user/info_numerical| <= prob.maxViolation = 
> 0.01
> derivatives are equal
> ========================
> Traceback (most recent call last):
>    File "svn/openopt/scikits/openopt/examples/lsp_1.py", 
> line 45, in <module>
>      r = p.solve('scipy_leastsq', plot=1, iprint = -1)
>    File 
> "build/bdist.linux-x86_64/egg/scikits/openopt/Kernel/BaseProblem.py", 
> line 186, in solve
>    File 
> "build/bdist.linux-x86_64/egg/scikits/openopt/Kernel/runProbSolver.py", 
> line 43, in runProbSolver
> KeyError: 'scipy_leastsq'
>   
> Nils
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>
>
>
>   



More information about the Scipy-dev mailing list