Re: PyNIO on OSX 10.6

From: jsummers <jsummers_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 26 2010 - 07:07:59 MDT

On Mar 25, 2010, at 5:00 PM, David Brown wrote:

> What were the warnings you got when installing PyNIO?
===
python setup.py install
====> Installing Nio to the "PyNIO" site packages directory.
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-universal-2.6
creating build/lib.macosx-10.6-universal-2.6/PyNIO
copying ./__init__.py -> build/lib.macosx-10.6-universal-2.6/PyNIO
copying ./_xarray.py -> build/lib.macosx-10.6-universal-2.6/PyNIO
copying ./coordsel.py -> build/lib.macosx-10.6-universal-2.6/PyNIO
copying ./Nio.py -> build/lib.macosx-10.6-universal-2.6/PyNIO
copying ./pynio_version.py -> build/lib.macosx-10.6-universal-2.6/PyNIO
running build_ext
building 'nio' extension
creating build/temp.macosx-10.6-universal-2.6
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 -DNeedFuncProto=1 -I/Library/Python/2.6/site-packages/numpy/core/include -I/usr/local/include -Iinclude -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c niomodule.c -o build/temp.macosx-10.6-universal-2.6/niomodule.o
niomodule.c: In function 'NioFile_Options':
niomodule.c:3254: warning: format not a string literal and no format arguments
niomodule.c: In function 'NioVariable_WriteArray':
niomodule.c:2063: warning: 'dir' may be used uninitialized in this function
niomodule.c: In function 'NioFile_Options':
niomodule.c:3254: warning: format not a string literal and no format arguments
niomodule.c: In function 'NioVariable_WriteArray':
niomodule.c:2063: warning: 'dir' may be used uninitialized in this function
niomodule.c: In function 'NioFile_Options':
niomodule.c:3254: warning: format not a string literal and no format arguments
niomodule.c: In function 'NioVariable_WriteArray':
niomodule.c:2063: warning: 'dir' may be used uninitialized in this function
gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc -arch x86_64 build/temp.macosx-10.6-universal-2.6/niomodule.o -L/usr/local/lib -lnio -lmfhdf -ldf -ljpeg -lpng -lz -lnetcdf -o build/lib.macosx-10.6-universal-2.6/PyNIO/nio.so
ld: warning: in /usr/local/lib/libnetcdf.a, file is not of required architecture
ld: warning: in /usr/local/lib/libnio.a, file is not of required architecture
ld: warning: in /usr/local/lib/libmfhdf.a, file is not of required architecture
ld: warning: in /usr/local/lib/libdf.a, file is not of required architecture
ld: warning: in /usr/local/lib/libnetcdf.a, file is not of required architecture
ld: warning: in /usr/local/lib/libnio.a, file is not of required architecture
ld: warning: in /usr/local/lib/libmfhdf.a, file is not of required architecture
ld: warning: in /usr/local/lib/libdf.a, file is not of required architecture
running install_lib
creating /Library/Python/2.6/site-packages/PyNIO
copying build/lib.macosx-10.6-universal-2.6/PyNIO/__init__.py -> /Library/Python/2.6/site-packages/PyNIO
copying build/lib.macosx-10.6-universal-2.6/PyNIO/_xarray.py -> /Library/Python/2.6/site-packages/PyNIO
copying build/lib.macosx-10.6-universal-2.6/PyNIO/coordsel.py -> /Library/Python/2.6/site-packages/PyNIO
copying build/lib.macosx-10.6-universal-2.6/PyNIO/Nio.py -> /Library/Python/2.6/site-packages/PyNIO
copying build/lib.macosx-10.6-universal-2.6/PyNIO/nio.so -> /Library/Python/2.6/site-packages/PyNIO
copying build/lib.macosx-10.6-universal-2.6/PyNIO/pynio_version.py -> /Library/Python/2.6/site-packages/PyNIO
byte-compiling /Library/Python/2.6/site-packages/PyNIO/__init__.py to __init__.pyc
byte-compiling /Library/Python/2.6/site-packages/PyNIO/_xarray.py to _xarray.pyc
byte-compiling /Library/Python/2.6/site-packages/PyNIO/coordsel.py to coordsel.pyc
byte-compiling /Library/Python/2.6/site-packages/PyNIO/Nio.py to Nio.pyc
byte-compiling /Library/Python/2.6/site-packages/PyNIO/pynio_version.py to pynio_version.pyc
running install_data
running install_egg_info
Removing /Library/Python/2.6/site-packages/PyNIO-1.3.0b1-py2.6.egg-info
Writing /Library/Python/2.6/site-packages/PyNIO-1.3.0b1-py2.6.egg-info
===

It does actually install but does not work for me. Probably a red herring but not sure.

Ideas?

Thanks

> -dave
> On Mar 25, 2010, at 3:33 PM, jsummers wrote:
>
>>
>> On Mar 25, 2010, at 4:21 PM, David Brown wrote:
>>
>>> PyNIO is imported as follows:
>>>
>>> import Nio
>>>
>>> The documentation mentions this but perhaps not prominently enough.
>>> -dave
>>>
>>
>> Thanks Dave. But still no joy.
>>
>> I changed the test file to:
>>
>> print "Importing Nio"
>> try:
>> import Nio
>> print "\tsucces!"
>> except:
>> print "\tfailed!"
>> raise
>>
>> and still get:
>>
>> bash-3.2# python ./test_pynio.py
>> Importing Nio
>> failed!
>> Traceback (most recent call last):
>> File "./test_pynio.py", line 3, in <module>
>> import Nio
>> File "/Library/Python/2.6/site-packages/PyNIO/Nio.py", line 61, in <module>
>> from nio import *
>> ImportError: dlopen(/Library/Python/2.6/site-packages/PyNIO/nio.so, 2): Symbol not found: _nclTypefloatClass
>> Referenced from: /Library/Python/2.6/site-packages/PyNIO/nio.so
>> Expected in: flat namespace
>> in /Library/Python/2.6/site-packages/PyNIO/nio.so
>>
>> I have:
>>
>> NCARG_ROOT=/usr/local
>>
>> exported.
>>
>> Not sure.
>>
>> Ideas??
>>
>> Thanks again
>>
>>
>>
>>>
>>> On Mar 25, 2010, at 3:04 PM, jsummers wrote:
>>>
>>>> Hello All,
>>>>
>>>> I am try to get PyNIO working for one of our researchers here.
>>>>
>>>> We are running on an Intel Mac in 64bit mode. I have installed:
>>>>
>>>> ncl_ncarg-5.1.1.MacOS_i386_9.7.0.tar
>>>> PyNIO-1.3.0b1
>>>>
>>>> The ncl test: ng4ex gsun01n works fine.
>>>>
>>>> The install of PyNIO seems to work, but with a few warnings.
>>>>
>>>> Then when testing with:
>>>> try:
>>>> print "Importing PyNIO"
>>>> import PyNIO
>>>> print "\tsucces!"
>>>> except:
>>>> print "\tfailed!"
>>>> raise
>>>>
>>>> print
>>>> print "Importing PyNIO.Nio"
>>>> try:
>>>> import PyNIO.Nio
>>>> print "\tsucces!"
>>>> except:
>>>> print "\tfailed!"
>>>> raise
>>>>
>>>> We do get a fail with the following:
>>>> Importing PyNIO
>>>> succes!
>>>>
>>>> Importing PyNIO.Nio
>>>> failed!
>>>> Traceback (most recent call last):
>>>> File "/idea/test_pynio.py", line 12, in <module>
>>>> import PyNIO.Nio
>>>> File "/Library/Python/2.6/site-packages/PyNIO/Nio.py", line 61, in <module>
>>>> from nio import *
>>>> ImportError: dlopen(/Library/Python/2.6/site-packages/PyNIO/nio.so, 2): Symbol not found: _nclTypefloatClass
>>>> Referenced from: /Library/Python/2.6/site-packages/PyNIO/nio.so
>>>> Expected in: flat namespace
>>>> in /Library/Python/2.6/site-packages/PyNIO/nio.so
>>>>
>>>> I am not sure the best way to proceed.
>>>>
>>>> Ideas / Suggestions??
>>>>
>>>> TIA
>>>>
>>>> ---
>>>> Jim Summers
>>>> School of Computer Science-University of Oklahoma
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> pyngl-talk mailing list
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>>
>>
>>
>> ---
>> Jim Summers
>> School of Computer Science-University of Oklahoma
>>
>>
>>
>>
>> _______________________________________________
>> pyngl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

---
Jim Summers
School of Computer Science-University of Oklahoma
_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Fri Mar 26 07:08:08 2010

This archive was generated by hypermail 2.1.8 : Mon Mar 29 2010 - 12:19:51 MDT