[SciPy-dev] sandbox

Jeff Whitaker jswhit@fastmail...
Sat Sep 22 10:56:30 CDT 2007


Nils Wagner wrote:
> On Sat, 22 Sep 2007 09:34:01 -0600
>  Jeff Whitaker <jswhit@fastmail.fm> wrote:
>> Nils Wagner wrote:
>>> On Sat, 22 Sep 2007 08:37:31 -0600
>>>   Jeff Whitaker <jswhit@fastmail.fm> wrote:
>>>  
>>>> How do I import the sandbox packages?  With 0.6.0 I get
>>>>
>>>>    
>>>>>>> import scipy.sandbox
>>>>>>> dir(scipy.sandbox)
>>>>>>>           
>>>> ['__builtins__', '__doc__', '__file__', '__name__', '__path__']
>>>>
>>>>
>>>> even though
>>>>
>>>> [jsw@Macintosh:/Users/jsw] ls -l 
>>>> /sw/lib/python2.5/site-packages/scipy/sandbox/
>>>> total 16
>>>> -rw-r--r--   1 root admin    0 Sep 22 08:28 __init__.py
>>>> -rw-r--r--   1 root admin  144 Sep 22 08:04 __init__.pyc
>>>> -rw-r--r--   1 root admin  121 Sep 22 08:27 __init__.py~
>>>> drwxr-xr-x   9 root admin  306 Sep 22 08:22 buildgrid
>>>> drwxr-xr-x  16 root admin  544 Sep 22 08:22 cdavid
>>>> drwxr-xr-x  10 root admin  340 Sep 22 08:22 constants
>>>> drwxr-xr-x  13 root admin  442 Sep 22 08:22 delaunay
>>>> drwxr-xr-x  13 root admin  442 Sep 22 08:22 exmplpackage
>>>> drwxr-xr-x  12 root admin  408 Sep 22 08:22 fdfpack
>>>> drwxr-xr-x  39 root admin 1326 Sep 22 08:22 models
>>>> drwxr-xr-x  22 root admin  748 Sep 22 08:22 multigrid
>>>> drwxr-xr-x   6 root admin  204 Sep 22 08:22 netcdf
>>>> drwxr-xr-x  16 root admin  544 Sep 22 08:22 numexpr
>>>> drwxr-xr-x  26 root admin  884 Sep 22 08:22 pyem
>>>> drwxr-xr-x  11 root admin  374 Sep 22 08:22 rbf
>>>> drwxr-xr-x  10 root admin  340 Sep 22 08:22 rkern
>>>> -rw-r--r--   1 root admin 2719 Sep 22 07:47 setup.py
>>>> -rw-r--r--   1 root admin 1500 Sep 22 08:04 setup.pyc
>>>> drwxr-xr-x  14 root admin  476 Sep 22 08:22 spline
>>>> drwxr-xr-x  24 root admin  816 Sep 22 08:22 svm
>>>> drwxr-xr-x 114 root admin 3876 Sep 22 08:22 xplt
>>>>
>>>> -Jeff
>>>>
>>>>
>>>> -- 
>>>> Jeffrey S. Whitaker         Phone : (303)497-6313
>>>> NOAA/OAR/CDC  R/PSD1        FAX   : (303)497-6449
>>>> 325 Broadway                Boulder, CO, USA 80305-3328
>>>>
>>>> _______________________________________________
>>>> Scipy-dev mailing list
>>>> Scipy-dev@scipy.org
>>>> http://projects.scipy.org/mailman/listinfo/scipy-dev
>>>>     
>>>
>>>
>>> You have to enable them first.
>>> Create a file enabled_packages.txt in your
>>> directory scipy/scipy/sandbox with appropriate
>>> entries
>>> e.g.
>>>
>>> arpack
>>> lobpcg
>>> timeseries
>>> multigrid
>>>
>>>
>>> If you have rebuild scipy you can import them with
>>>
>>> from scipy.sandbox import arpack
>>>
>>>
>>> Cheers,
>>>   Nils
>>>   
>>
>> Nils:  I did this, and the packages were built and installed.  I just 
>> can't import them.  My scipy.sandbox __init__.py file is empty, is 
>> yours?
>>
>> -Jeff
>>
>> -- 
>> Jeffrey S. Whitaker         Phone : (303)497-6313
>> NOAA/OAR/CDC  R/PSD1        FAX   : (303)497-6449
>> 325 Broadway                Boulder, CO, USA 80305-3328
>>
> ls -l
> total 28
> drwxr-xr-x 3 root root 4096 2007-09-21 16:42 arpack
> -rw-r--r-- 1 root root    0 2007-09-01 13:01 __init__.py
> -rw-r--r-- 1 root root  153 2007-09-11 20:00 __init__.pyc
> drwxr-xr-x 3 root root 4096 2007-09-11 20:52 lobpcg
> drwxr-xr-x 3 root root 4096 2007-09-21 16:42 multigrid
> -rw-r--r-- 1 root root 2735 2007-09-01 13:01 setup.py
> -rw-r--r-- 1 root root 1094 2007-09-11 20:00 setup.pyc
> drwxr-xr-x 3 root root 4096 2007-09-21 16:42 timeseries
> nwagner@noname:/usr/local/lib64/python2.5/site-packages/scipy/sandbox>
>
>  
> Did you try from scipy.sandbox import multigrid ?
>
> Nils

Nils:

Ah, yes that works.  I was trying

from scipy.sandbox import netcdf

which doesn't work (although all the rest apparently do). So it must be 
a problem just with the netcdf package.

Thanks for the help

-Jeff

-- 
Jeffrey S. Whitaker         Phone : (303)497-6313
NOAA/OAR/CDC  R/PSD1        FAX   : (303)497-6449
325 Broadway                Boulder, CO, USA 80305-3328



More information about the Scipy-dev mailing list