On Mon, May 2, 2011 at 1:04 PM, Adriano Vilela Barbosa <adriano.vil...@gmail.com> wrote: > On Sat, Apr 30, 2011 at 3:23 AM, Francesc Alted <fal...@pytables.org> wrote: >> 2011/4/28 Adriano Vilela Barbosa <adriano.vil...@gmail.com> >>> >>> Hello, >>> >>> When trying to install Pytables on Mac OS 10.6 using easy_install, I >>> run into the following error: >>> >>> mleblanc-vm:~ adriano$ easy_install tables >>> Searching for tables >>> Reading http://pypi.python.org/simple/tables/ >>> Reading http://www.pytables.org/ >>> Best match: tables 2.2.1 >>> Downloading >>> http://www.pytables.org/download/pytables-2.2.1/tables-2.2.1.tar.gz >>> Processing tables-2.2.1.tar.gz >>> Running tables-2.2.1/setup.py -q bdist_egg --dist-dir >>> >>> /var/folders/p2/p2Bhi9AYGIa9Cj+b58XKmU+++TI/-Tmp-/easy_install-klsC3N/tables-2.2.1/egg-dist-tmp-JL9Lip >>> .. ERROR:: You need numpy 1.4.1 or greater to run PyTables! >>> error: Setup script exited with 1 >> >> What's the output of this in your python shell? >>>>> import numpy >>>>> print numpy.__version__ >> > > The output of this command is 1.5.1. That's exactly the command I used > to find out the version of numpy that I have. > > I have just noticed that I have another numpy installation whose > version is 1.2.1, located at > > /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy > > Apparently, this came with Mac OS itself. So maybe the problem is that > this is the numpy version detected during the pytables installation? > The newer version of numpy, which was installed through easy_install, > is located at > > /Library/Python/2.6/site-packages/numpy-1.5.1-py2.6-macosx-10.6-universal.egg/numpy > > and, as I said before, is version 1.5.1. > > If the problem is indeed that the older version of numpy is detected > when running "easy_install tables", I guess I have to pass it some > command line arguments in order to direct it to the newer numpy? > > Thank you, > > Adriano > >>> >>> However, I have numpy 1.5.1 installed, which was also installed >>> through easy_install. Does anyone know how to work around this? >>> >>> Any help is much appreciated. >>> >>> Adriano >>> >> >> -- >> Francesc Alted >> >
So, I solved the problem. I moved the folder with the older numpy installation /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy out of the way (by temporarily renaming it to something else) and then the problem went away. However, I now run into a compile error when trying to install pytables using either easy_install or pip. Here's the error messages pip returns: lipo: can't figure out the architecture type of: /var/folders/p2/p2Bhi9AYGIa9Cj+b58XKmU+++TI/-Tmp-//ccHB591s.out error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -DNDEBUG=1 -DHAVE_LZO2_LIB=1 -DHAVE_BZ2_LIB=1 -Iblosc -I/Library/Python/2.6/site-packages/numpy-1.5.1-py2.6-macosx-10.6-universal.egg/numpy/core/include -I/usr/include -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c tables/linkExtension.c -o build/temp.macosx-10.6-universal-2.6/tables/linkExtension.o -Isrc -DH5_USE_16_API" failed with exit status 1 ---------------------------------------- Command /usr/bin/python -c "import setuptools;__file__='/Users/adriano/build/tables/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /var/folders/p2/p2Bhi9AYGIa9Cj+b58XKmU+++TI/-Tmp-/pip-stG4KW-record/install-record.txt failed with error code 1 Storing complete log in /Users/adriano/.pip/pip.log Does anybody have any ideas about how to fix this? Thanks a lot, Adriano ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users