[SciPy-user] scipy.optimize.leastsq error estimates

Nils Wagner nwagner at iam.uni-stuttgart.de
Wed Feb 14 08:42:51 EST 2007


Chiara Caronna wrote:
> Ok, the error I got is this:
>
>   
>>>> import scipy.odr
>>>>         
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/local/lib/python2.4/site-packages/scipy/odr/__init__.py", line 
> 49, in
> ?
>     import odrpack
>   File "/usr/local/lib/python2.4/site-packages/scipy/odr/odrpack.py", line 
> 103, in
> ?
>     from scipy.sandbox.odr import __odrpack
> ImportError: No module named odr
>
> can you check you file : 
> "/usr/local/lib/python2.4/site-packages/scipy/odr/odrpack.py" at  line 103? 
> I think the problem is that it tries to import something from 
> scipy.sandbox.odr that doesn't exist...
>
>
>   
I have

from scipy.odr import __odrpack
What is the output of

scipy.__version__

on your machine ?

I suggest to remove the build directory and scipy below site-packages with

rm -rf build
rm -rf scipy

Afterwards reinstall everything from scratch with

python setput.py install

HTH

Nils





More information about the SciPy-User mailing list