ncarg problem when attempting to import Nio

From: Jshgwave <jshgwave_at_nyahnyahspammersnyahnyah>
Date: Tue Dec 14 2010 - 16:54:47 MST

We installed the binaries for PyNGL and PyNIO on a 64-bit Debian Linux system.

Whenever I try to import Nio by following the example on the page,
the importing fails because ncarg is not found.

ncarg is not found even when sys.path.append is used to point to folders that contain ncarg,
as is illustrated by the following session:

midat:/home/hornstein> python2.6
Python 2.6.6 (r266:84292, Nov 28 2010, 18:42:58)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import numpy as np
>>> sys.path.append('/usr/lib/python2.6/site-packages/PyNGL')
>>> sys.path.append('/usr/lib/python2.6/site-packages/PyNIO')
>>> sys.path

['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6', '/usr/lib/python2.6/site-packages/PyNGL', '/usr/lib/python2.6/site-packages/PyNIO']

>>> # The last-named folder includes the files and Nio.pyc.
... import Nio

No path found to PyNIO/ncarg data directory and no usable NCARG installation found

As the last line shows, the failure to find ncarg always catapults me out of Python.

The following shows the two locations that contain folders named "ncarg":

midat:/home/hornstein> ls /usr/lib/python2.6/site-packages/PyNIO   coordsel.pyc  ncarg
alt-setup.pyc     _xarray.pyc    __init__.pyc  Nio.pyc  pynio_version.pyc

midat:/home/hornstein> ls /usr/lib/python2.6/site-packages/PyNGL  hlu.pyc     ncarg     Ngl.pyc       pyngl_version.pyc  __init__.pyc

The ncarg subfolders in the PyNIO and PyNGL folders contain completely different sub-subfolders:

midat:/home/hornstein> ls /usr/lib/python2.6/site-packages/PyNIO/ncarg

midat:/home/hornstein> ls /usr/lib/python2.6/site-packages/PyNGL/ncarg
colormaps  data  database  fontcaps  graphcaps    pynglex  sysresfile

By repeating the python session without any of the lines that pertain to PyNGL, I have verified that the difference between these two versions of the ncarg folder is not the problem.

Thanks for your help.

pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Tue Dec 14 16:54:51 2010

This archive was generated by hypermail 2.1.8 : Wed Jan 05 2011 - 09:09:56 MST