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

Nils Wagner nwagner@iam.uni-stuttgart...
Wed Feb 14 07:01:19 CST 2007


Chiara Caronna wrote:
>
>   
>> If you use 0.5.2
>>
>> look into the directory scipy/Lib/sandbox
>> and create a file called enabled_packages.txt which should contain
>>
>> odr
>>
>> in the first line (a new line for each package)
>>     
>
> I did what you said, but when reinstalling scipy I got this error:
>
>   File "Lib/sandbox/setup.py", line 22, in configuration
>     config.add_subpackage(p)
>   File 
> "/usr/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 
> 765, in add_subpackage
>     caller_level = 2)
>   File 
> "/usr/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 
> 741, in get_subpackage
>     caller_level = caller_level+1)
>   File 
> "/usr/local/lib/python2.4/site-packages/numpy/distutils/misc_util.py", line 
> 541, in __init__
>     raise ValueError("%r is not a directory" % (package_path,))
> ValueError: 'Lib/sandbox/odr' is not a directory
>
>
>   
 
What is the output of ls -l  in your sandbox directory
I have
Lib/sandbox> ls -l
 total 17
drwxr-xr-x   5 root root  272 2006-09-03 11:30 ann
drwxr-xr-x   6 root root  376 2006-11-21 08:45 arpack
drwxr-xr-x   4 root root  184 2006-11-06 08:48 arraysetops
drwxr-xr-x   3 root root  232 2006-06-27 08:32 buildgrid
drwxr-xr-x   5 root root  344 2006-12-15 15:35 cdavid
drwxr-xr-x   3 root root  192 2006-06-22 09:18 constants
drwxr-xr-x   3 root root  248 2006-03-15 08:29 cow
drwxr-xr-x   4 root root  544 2006-10-02 08:19 delaunay
-rw-r--r--   1 root root   40 2007-02-08 13:11 enabled_packages.txt
drwxr-xr-x   5 root root  272 2006-03-15 08:29 exmplpackage
drwxr-xr-x   6 root root  280 2006-04-24 08:41 fdfpack
drwxr-xr-x   3 root root  600 2006-09-03 11:30 ga
drwxr-xr-x   3 root root  360 2006-09-03 11:30 gplt
drwxr-xr-x   3 root root  352 2006-09-03 11:30 image
-rw-r--r--   1 root root    0 2006-02-28 08:50 __init__.py
drwxr-xr-x   4 root root  520 2007-02-12 08:33 maskedarray
drwxr-xr-x   6 root root  688 2007-02-12 08:33 models
drwxr-xr-x   5 root root  232 2006-11-23 08:29 montecarlo
drwxr-xr-x   3 root root  320 2006-07-10 08:09 netcdf
drwxr-xr-x   4 root root  264 2007-01-11 10:57 newoptimize
drwxr-xr-x   4 root root  432 2006-11-17 09:02 numexpr
drwxr-xr-x   3 root root   72 2006-10-05 08:30 oliphant
drwxr-xr-x   3 root root  456 2006-09-03 11:30 plt
drwxr-xr-x   6 root root  904 2006-12-07 09:05 pyem
drwxr-xr-x  13 root root  592 2006-08-16 16:21 pysparse
drwxr-xr-x   4 root root  232 2007-02-08 13:11 rbf
drwxr-xr-x   3 root root  184 2006-09-03 11:30 rkern
-rw-r--r--   1 root root 2732 2007-02-08 13:07 setup.py
-rw-r--r--   1 root root 1028 2007-02-08 13:11 setup.pyc
drwxr-xr-x   5 root root  360 2007-02-09 08:42 spline
drwxr-xr-x   3 root root  192 2006-10-10 08:22 stats
drwxr-xr-x   5 root root  464 2006-09-11 08:44 svm
drwxr-xr-x   9 root root  576 2007-02-13 08:27 timeseries
drwxr-xr-x   3 root root   72 2006-12-07 08:52 wavelet
drwxr-xr-x   6 root root 1864 2007-01-23 08:35 xplt

Note that I am using the svn version. So odr is not present in the sandbox.
How about 0.5.2 ?
Do you have a directory odr in the sandbox ?

Nils




More information about the SciPy-user mailing list