From: Peter K. <pet...@wa...> - 2013-11-22 22:21:17
|
Ryan, Thanks. That pretty much exhausts the options. I'll write to python mac users list tomorrow to see if anyone has an idea. Peter > Hi Peter, > > Here's what happens this time: > > bash-3.2$ file /Library/Python/2.7/site-packages/ccplot/hdfeos.so > /Library/Python/2.7/site-packages/ccplot/hdfeos.so: Mach-O universal > binary with 2 architectures > /Library/Python/2.7/site-packages/ccplot/hdfeos.so (for architecture > i386): Mach-O > bundle i386 > /Library/Python/2.7/site-packages/ccplot/hdfeos.so (for architecture > x86_64): Mach-O 64-bit bundle x86_64 > > -Ryan > > > On Fri, Nov 22, 2013 at 2:05 PM, Peter Kuma <pet...@wa...> > wrote: > > > Ryan, > > > > This indicates that python was indeed running in 64-bit mode, because > > when forced to run in 32-bits it failed even earlier with basemap. The > > hdfeos library itself is 64-bit, which is good. The only remaining > > option is that the hdfeos.pyx module was compiled only as i386. Can you > > please check, so that we are sure? > > > > file /Library/Python/2.7/site-packages/ccplot/hdfeos.so > > > > The build output you sent me last time seems suspicious regarding this > > (the linker reports only -arch i386). If it is indeed to case, it will > > be easier to contact someone upstream about this. > > > > Peter > > > > On 11/22/2013 10:20 PM, Ryan Scott wrote: > > > Hi Peter, > > > > > > My machine is running Mac OS X 10.8.4. > > > > > > Here's the requested output: > > > > > > bash-3.2$ file `which python` > > > /usr/bin/python: Mach-O universal binary with 2 architectures > > > /usr/bin/python (for architecture i386):Mach-O executable i386 > > > /usr/bin/python (for architecture x86_64):Mach-O 64-bit executable > > > x86_64 bash-3.2$ file /opt/local/lib/libhdfeos.0.dylib > > > /opt/local/lib/libhdfeos.0.dylib: Mach-O 64-bit dynamically linked > > > shared library x86_64 > > > bash-3.2$ python -V > > > Python 2.7.2 > > > bash-3.2$ python -c 'import platform; print platform.machine(); print > > > > platform.architecture()' > > > x86_64 > > > > > > And here's output from ccplot -V > > > > > > bash-3.2$ ccplot -V > > > Traceback (most recent call last): > > > File "/usr/local/bin/ccplot", line 53, in <module> > > > from mpl_toolkits import basemap > > > File > > > "/Library/Python/2.7/site-packages/mpl_toolkits/basemap/__init__.py", > > > line 37, in <module> > > > import _geoslib > > > ImportError: dlopen(/Library/Python/2.7/site-packages/_geoslib.so, > > > 2): Symbol not found: _GEOSArea > > > Referenced from: /Library/Python/2.7/site-packages/_geoslib.so > > > Expected in: flat namespace > > > in /Library/Python/2.7/site-packages/_geoslib.so > > > > > > Thanks! > > > > > > Ryan > > > > > > > > > On Fri, Nov 22, 2013 at 1:04 PM, Peter Kuma <pet...@wa... > > > <mailto:pet...@wa...>> wrote: > > > > > > Ryan, > > > > > > The man page for the mac version of python mentions that it runs > > 64-bit > > > by default, but it can be instructed to run 32-bit with: > > > > > > export VERSIONER_PYTHON_PREFER_32_BIT=yes > > > > > > So you can try setting this environment variable before running > > ccplot > > > -V. But I'm not sure if it helps. > > > > > > Peter > > > > > > On 11/22/2013 09:48 PM, Peter Kuma wrote: > > > Ryan, > > > > > > It seems like libhdfeos.0.dylib is compiled as 64-bit, but python > > is > > > 32-bit (or vice-versa). Could you please try: > > > > > > file `which python` > > > file /opt/local/lib/libhdfeos.0.dylib > > > python -V > > > python -c 'import platform; print platform.machine(); print > > > platform.architecture()' > > > > > > Also if you can tell me your Mac OS X version... > > > > > > Hopefully, having more information will help. > > > > > > Cheers, > > > > > > Peter > > > > > > On 11/22/2013 08:57 PM, Ryan Scott wrote: > > > Hi Peter, > > > > > > Unfortunately, I'm running into new trouble. Perhaps the issue > > > might be > > > specific to my machine? > > > > > > Here is output from a simple command which should work if > > > installation > > > were successful. > > > > > > bash-3.2$ ccplot -V > > > Traceback (most recent call last): > > > File "/usr/local/bin/ccplot", line 56, in <module> > > > from ccplot.hdfeos import HDFEOS > > > ImportError: > > > dlopen(/Library/Python/2.7/site-packages/ccplot/hdfeos.so, > > > 2): Symbol not found: _for_init > > > Referenced from: /opt/local/lib/libhdfeos.0.dylib > > > Expected in: flat namespace > > > in /opt/local/lib/libhdfeos.0.dylib > > > > > > Thanks, > > > > > > Ryan > > > > |