Hi Alexander, Buz,

I can confirm that this appears to be an issue with python2.5 on 10.6, and it's 
apparently 
an installation problem on the python side (64bit-installation in my case). 

> find /System/Library/Frameworks/Python.framework -name mmap*
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload/mmap.so
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/mmap.so
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/mmap.so
> find /sw/lib/python2.6 -name mmap*
/sw/lib/python2.6/lib-dynload/mmap.so
> find /sw/lib/python2.5 -name mmap*

 - nothing there. numpy.test() also fails on importing mmap. I could not track 
this much 
further down, embarrassingly I could not even reproduce how I had installed 
python2.5 
in the first place, as there was a python25_2.5.4-102 installed, but the 
package descriptions 
both in stable and unstable state:
Package: python25
Version: 2.5.4
Revision: 1
Epoch: 1
Distribution: 10.4, 10.5

(!)

Nb. this is a distribution bootstrapped on Snow Leopard in 64bit, never updated 
from 10.5.

I tried to investigate a bit further, so I updated the package in my local tree 
to 2.5.5 and, 
noticing that one difference between the python25 and python26 packages was the 
ConfigureParams: --enable-shared  field, I added this flag to the python25 
package as well. 
python-2.5.5 builds that way and appears to work (is there a generic .test() 
for the python 
interpreter itself?), but still does not install mmap.so. 

I am out or my depth here for now, so I am passing this one to whoever else 
might have 
another suggestion.

HTH,
                                                                        Derek

>>>> 
>>>> Python 2.5.4 (r254:67916, Apr 22 2010, 12:57:40) 
>>>> Type "copyright", "credits" or "license" for more information.
>>>> 
>>>> IPython 0.8.2 -- An enhanced Interactive Python.
>>>> ?         -> Introduction and overview of IPython's features.
>>>> %quickref -> Quick reference.
>>>> help      -> Python's own help system.
>>>> object?   -> Details about 'object'. ?object also works, ?? prints more.
>>>> 
>>>> In [1]: import scipy
>>>> 
>>>> In [2]: from scipy.io.array_import import read_array
>>>> ---------------------------------------------------------------------------
>>>> ImportError                               Traceback (most recent call last)
>>>> 
>>>> /Users/buz/Documents/GTD/GTD Supporting Information/Work/Make an 
>>>> O2-tolerant Hydrogenase/Sequence 2_12_2/Homology Model/<ipython console> 
>>>> in <module>()
>>>> 
>>>> /sw/lib/python2.5/site-packages/scipy/io/__init__.py in <module>()
>>>>    78 
>>>>    79 # netCDF file support
>>>> ---> 80 from netcdf import netcdf_file, netcdf_variable
>>>>    81 
>>>>    82 from recaster import sctype_attributes, Recaster
>>>> 
>>>> /sw/lib/python2.5/site-packages/scipy/io/netcdf.py in <module>()
>>>>    16 
>>>>    17 import struct
>>>> ---> 18 import mmap
>>>>    19 
>>>>    20 from numpy import ndarray, zeros, array
>>>> 
>>>> ImportError: No module named mmap
>>>> 
>>>> In [3]: 
>>>> 
>>> 


------------------------------------------------------------------------------

_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to