On 5/13/10 6:18 PM, Buz Barstow wrote:
> Hi Derek, Alexander,
>
> Thanks for looking into this! I'm still at a loss too.
>
> All the best,
>
> --Buz
>
>
> On May 13, 2010, at 11:40 AM, Derek Homeier wrote:
>
>
>> 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*
>>>
>>
"dpkg -S mmap" also works--though it indicates what was installed rather
than what is currently on your system, since one can remove files manually.
>> - 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
>>
>> (!)
>>
>>
You were looking at the package description file for 10.4/10.5. "fink
dumpinfo -finfofile python2.5" will tell you which .info file is being
used. In this case (from my 10.6 setup):
$ fink dumpinfo -finfofile python25
Information about 8714 packages read in 2 seconds.
infofile:
/sw64/fink/dists/unstable/main/finkinfo/languages/python25-10.6.info
Alexander-Hansens-MacBook:~ hansen$ fink list python25
Information about 8714 packages read in 0 seconds.
boost1.35.pytho 1.35.0-6 Boost C++ Libraries: static and
source libs
boost1.35.pytho 1.35.0-6 Boost C++ Libraries (shared libs)
pil-systempytho 1.1.6-2 Python Imaging Library
python25 1:2.5.4-102 Interpreted, object-oriented language
python25-shlibs 1:2.5.4-102 Interpreted, object-oriented language
python25-socket 1:2.5.1-3 Obsolete socket plugin for python
python25-socket 1:2.5.1-3 Obsolete socket plugin for python
Alexander-Hansens-MacBook:~ hansen$ grep -A 3 -B 3 Version
/sw64/fink/dists/unstable/main/finkinfo/languages/python25-10.6.info
Package: python25
Version: 2.5.4
Revision: 102
Epoch: 1
Distribution: 10.6
>> 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
>>
>>
This appears to be a 10.6-specific issue. When building python25 as
either 32-bit or 64-bit, I don't get mmap.so, but on 10.5 I do. I've
uploaded build logs under
http://akhmac.blogdns.net/~hansen/finklogs/python25/
but I haven't looked at them as of yet (I was doing the builds while
waiting for some software I need for work-related stuff to install :-)
) I'll cc the maintainer.
--AKH
Test case is below
>>>>>> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users