Update: I changed my h5 source too /hdf5 and set my env var HDF5_DIR
to look there, everything compiled fine. I also re-compiled hdf5 on
my machine to make sure. Then I got this after I rebooted and flushed
the pram.
>>> import tables
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/tables/__init__.py",
line 31, in ?
from tables.utilsExtension import getPyTablesVersion, getHDF5Version
ImportError: Failure linking new module:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/tables/utilsExtension.so:
Library not loaded:
/Users/conor/desktop/hdf5-1.6.5/hdf5/lib/libhdf5.0.dylib
Referenced from:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/tables/utilsExtension.so
Reason: image not found
What I found out is that python was looking for the hdf5 libs in the
hdf5-1.6.5 dir I had downloaded to my desktop. I copied the compiled
/hdf5 back into the hdf5-1.6.5 on my desktop and everything works
great, except for the fact my install is a little strange to say the
least.
Thanks,
Conor
On 8/26/06, Conor Robinson <[EMAIL PROTECTED]> wrote:
> Thanks for the insite Francesc,
>
> Re-compiling hdf5 on my machine did the trick and it ignored ppc (
>
> /usr/bin/ld: warning /hdf5-1.6.5/hdf5/lib/libhdf5.dylib cputype (7,
> architecture i386) does not match cputype (18) for specified -arch
> flag: ppc (file not loaded)
>
> )
>
> However, now that everything is installed im getting this when I try
> and import tables:
>
> Python 2.4.3 (#1, Mar 30 2006, 11:02:16)
> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import tables
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "tables/__init__.py", line 31, in ?
> from tables.utilsExtension import getPyTablesVersion, getHDF5Version
> ImportError: No module named utilsExtension
>
>
> The utilsExtension.so is where its supposed to be in the tables
> site-package folder, however python fails to see it. My install look
> identical to my PPC install. Was utilsExtension compiled incorrectly
> as well? If so is there a way to force all gcc lines to use i686? I
> would actually like to force i686 on my hdf5 install as well...
>
> Thank you,
> Conor
>
> On 8/26/06, Francesc Altet <[EMAIL PROTECTED]> wrote:
> > Hi Conor,
> >
> > I'm not a Mac user, but will try to grasp what's going on there.
> >
> > A Dissabte 26 Agost 2006 05:52, Conor Robinson va escriure:
> > > OS 10.4.7 (intel)
> > > My install seems to go fine until setup seems to have trouble
> > > recognizing my platform or a certain dir. Any advise would be much
> > > appreciated. lhdf5??? See below...
> > >
> > > Thank you,
> > > Conor
> > [...]
> > > * Found HDF5 headers at ``/usr/include``, library at ``/usr/lib``.
> >
> > Mmmm, it seems that HDF5 library is located at /usr/lib, which is fine...
> >
> > [...]
> > > -L/usr/lib64 -L/usr/lib -L/usr/local/lib64 -L/usr/local/lib -lhdf5 -o
> > > build/lib.macosx-10.4-fat-2.4/tables/hdf5Extension.so
> > > /usr/bin/ld: warning -L: directory name (/lib64) does not exist
> > > /usr/bin/ld: warning -L: directory name (/lib) does not /existusr/bin/
> > > ld/: usrwarning/ bin-/Lld:: directorywarning -Lname: (directory
> > > /namelib64 )( /doesusr /notlib64 )exist
> > > does/ usrnot/ binexist/
> > > ld/:usr/ bin/warningld :- Lwarning: -directoryL :name directory(
> > > /namelib )( /doesusr /notlocal /existlib64
> > > )/ usrdoes/ binnot/ ldexist:
> > > /warningusr /-binL/:ld :directory forname architecture( /i386usr
> > > //lib64usr)/ bindoes/ ldnot: existcan
> > > '/tusr locate/ binfile/ ldfor:: warning --L:lhdf5
> > > directory name (/usr/local/lib64) does not exist
> > > /usr/bin/ld: for architecture ppc
> >
> > The output here got scrambled, but I'd say that this is saying that the
> > linker
> > is trying to locate the library for ppc while I understand that you are
> > using
> > a Mac Intel....
> >
> > OTOH, it might be possible that your hdf5 library is compiled for PPC
> > platform. Can you double check on this?
> >
> > Finally, and just in case, try adding:
> >
> > -L /usr/bin
> >
> > at the end of your 'python setup.py install' command.
> >
> > HTH,
> >
> > --
> > >0,0< Francesc Altet http://www.carabos.com/
> > V V Cárabos Coop. V. Enjoy Data
> > "-"
> >
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users