On 27 May 2010 00:57, Brandt Belson <bbel...@princeton.edu> wrote:
> Hi again,
> Thanks for your help. I followed your directions. First, I checked the file
> type of python (which I installed from python.org):
> $ file /Library/Frameworks/Python.framework/Versions/2.6/bin/python
> /Library/Frameworks/Python.framework/Versions/2.6/bin/python: Mach-O
> universal binary with 2 architectures
> /Library/Frameworks/Python.framework/Versions/2.6/bin/python (for
> architecture ppc): Mach-O executable ppc
> /Library/Frameworks/Python.framework/Versions/2.6/bin/python (for
> architecture i386): Mach-O executable i386
> I assumed this was the first case you mentioned.
> I then did export CC=gcc-4.0 CFLAGS='-arch i386' and LDFLAGS='-arch i386'
> Then I ran hdf5 configure with ./configure --enable-shared
> --prefix=/usr/local
> This gave no errors, so I did make and make install, and everything appeared
> to work fine.
> I checked the arch of hdf5's libraries:
> $ file /usr/local/lib/libhdf5.dylib
> /usr/local/lib/libhdf5.dylib: Mach-O dynamically linked shared library i386

That looks good so far

> I then tried installing pytables 4 different ways: the stable release from
> easy_install and from source, and the newest trunk from easy_install and
> from source. None of these worked.

That is bizarre, the trunk isn't working for other reasons now, but
2.1.2 or 2.2b3 should work.

So I downloaded and installed python from python.org and did the following:

export MACOSX_DEPLOYMENT_TARGET=10.6 (this may not be necessary, but
it removes some warnings)
wget 
http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar xzf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py install
easy_install numpy
easy_install numexpr (yes, do them one at a time and ignore the
numpy.distutils errors)
easy_install tables (ignore any lib64 and ppc warnings)
python -c "import tables; tables.test()"

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PyTables version:  2.1.2
HDF5 version:      1.8.4-patch1
NumPy version:     1.4.1
Zlib version:      1.2.3
LZO version:       2.03 (Apr 30 2008)
BZIP2 version:     1.0.5 (10-Dec-2007)
Python version:    2.6.5 (r265:79359, Mar 24 2010, 01:32:55)
[GCC 4.0.1 (Apple Inc. build 5493)]
Platform:          darwin-i386
Byte-ordering:     little
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Performing only a light (yet comprehensive) subset of the test suite.
If you want a more complete test, try passing the --heavy flag to this script
(or set the 'heavy' parameter in case you are using tables.test() call).
The whole suite will take more than 2 minutes to complete on a relatively
modern CPU and around 80 MB of main memory.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Skipping Numeric test suite.
Skipping numarray test suite.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
.......................................................................................................................................................................[snip].................
----------------------------------------------------------------------
Ran 6522 tests in 47.013s

OK

Give that a try, making sure you still have CC=gcc-4.0 set. Otherwise
it might be some other weirdness in you build system.

Tony


P.S. to satisfy yourself that the numpy warnings don't amount to much:

easy_install nose
python -c "import numpy; numpy.test()"

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

_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to