[pyngl-talk] Help with PyNIO installation

Fan, Xingang xingang.fan at wku.edu
Tue Dec 6 12:38:23 MST 2016


Hi,

I am using Enthought Canopy as my default python. I would like to get PyNIO and PyNGL installed.

I have tried to download the prebuilt binaries, none of them work for my Ubuntu environment (I have to use the VirtualBox and have a Virtual Machine of Ubuntu system on my windows machines for our classroom use, because I wanted to have pygrib, PyNIO, and PyNGL). Although the prebuilt packages worked for my MacBook Pro, where the Canopy was also installed.

Then I had to try to install from the source code of PyNIO. I have followed the instructions online at https://www.pyngl.ucar.edu/Download/build_pynio_from_src.shtml<https://www.pyngl.ucar.edu/Download/build_pynio_from_src.shtml#HDF4>.
And all non-optional packages have been installed without problem. However, when I get down to install PyNIO, it seemed installed, but the import Nio showed the following error messages:

import Nio
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-d77b80fd2dfc> in <module>()
----> 1 import Nio

/home/xfan/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/PyNIO/Nio.py in <module>()
     61 '''
     62
---> 63 from nio import *
     64 from nio import _C_API
     65

ImportError: /home/xfan/Canopy/appdata/canopy-1.7.4.3348.rh5-x86_64/lib/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /home/xfan/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/PyNIO/nio.so)

PLEASE help see what's the problem. While installing, I have the following environment variables set:
export HAS_NETCDF4=1
export HAS_HDF5=1
export NETCDF_PREFIX=/usr/local
export F2CLIBS=gfortran
export F2CLIBS_PREFIX=/usr/lib/x86_64-linux-gnu

Thanks,
--
Xingang Fan, Ph. D.,        |      Department of Geography and Geology
Associate Professor         |      Western Kentucky University
of Meteorology                |      1906 College Heights Blvd., #31066
270-745-5980                 |      Bowling Green, KY 42101-1066
xingang.fan at wku.edu<mailto:xingang.fan at wku.edu>
http://people.wku.edu/xingang.fan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20161206/4dbec037/attachment.html 


More information about the pyngl-talk mailing list