ImportError: No module named nc_time_axis with Iris==1.10.0.dev0

79 views
Skip to first unread message

Alex Pletzer

unread,
Aug 31, 2016, 8:21:17 PM8/31/16
to Iris
Iris'ians,

I'm having problems running quickplot (e.g. test_quickplot.py) after building iris from https://github.com/SciTools/iris.git.

$ python test_quickplot.py
/home/pletzera/anaconda2/lib/python2.7/site-packages/Iris-1.10.0.dev0-py2.7.egg/iris/fileformats/grib/__init__.py:59: IrisDeprecation: The module iris.fileformats.grib is deprecated since v1.10. Please install the package 'iris_grib' package instead.
  "The module iris.fileformats.grib is deprecated since v1.10. "
Traceback (most recent call last):
  File "test_quickplot.py", line 27, in <module>
    import iris.tests.test_plot as test_plot
  File "/home/pletzera/anaconda2/lib/python2.7/site-packages/Iris-1.10.0.dev0-py2.7.egg/iris/tests/test_plot.py", line 40, in <module>
    import iris.plot as iplt
  File "/home/pletzera/anaconda2/lib/python2.7/site-packages/Iris-1.10.0.dev0-py2.7.egg/iris/plot.py", line 40, in <module>
    import nc_time_axis
ImportError: No module named nc_time_axis

Anyone seeing this problem? I have netCDF4 installed

bash-4.2$ pip install netCDF4
Requirement already satisfied (use --upgrade to upgrade): netCDF4 in /home/pletzera/anaconda2/lib/python2.7/site-packages

Installing the latest version of netCDF4 (1.2.4) does not help.

Thanks in advance for any pointer!

Cheers,

--Alex

Andrew Dawson

unread,
Sep 1, 2016, 6:47:57 AM9/1/16
to Iris
There is a new dependency with this version of iris (currently a pre-release) on the nc_time_axis package https://github.com/SciTools/nc-time-axis. There is ongoing work to ensure that this package is an *optional* dependency in the final 1.10 release (currently it is not optional in the pre-release), see #2113 and #2115.
Reply all
Reply to author
Forward
0 new messages