Hi Todd, I attached my output for pip freeze. I am using python 2.7.12.
The reason version numbers aren't specified in the dependencies text files is for precisely this reason, that is to help us find out when newer versions of certain packages break ocw. In this case, I have at least confirmed that your first error is from incompatibility with matplotlib 2.x. I will file a JIRA issue for this. However I can't reproduce your other error, which appears to be dependent on the numpy version. I have ran the tests with numpy 1.11.1, 1.11.3, and 1.120. It would be much more useful if you could provide your pip freeze output for python2 specifically in case the numpy version isn't the same as the one you are using in your python3 environment. Since you appear to be using conda, can you also try doing the following?: conda config --add channels conda-forge conda create -n ocw ocw source activate ocw conda remove ocw cd /path/to/ocw python setup.py install This will let you test ocw in a clean environment with the latest versions of each dependency. Thanks, Alex On Sat, Feb 18, 2017 at 11:52 AM, Todd Greenwood-Geer < t.greenwoodg...@gmail.com> wrote: > Alex, > > I've attached the output of the pip libraries I have currently loaded for > python3. > > I think the underlying problem, at least for the tests, is that the > dependencies declared in deps_py{2|3}.txt are un-versioned. > > Can you post the output of these commands for both python2 and python3? > > $ python --version > > $ pip freeze > > I'll happily re-run the test suites and verify on my side. > > Once I have the test suites running, I'll start poking through the > examples to make sure they run, too. > > -Todd > > > > On 02/12/2017 03:21 PM, Todd Greenwood-Geer wrote: > > > > On Feb 12, 2017 2:02 PM, "Goodman, Alexander (398K)" < > alexander.good...@jpl.nasa.gov> wrote: > > Hi Todd, > > What versions of numpy and matplotlib are you using? I know that both of > these packages have had some major releases recently, and I suspect that > incompatibilities introduced in these releases may be the reason for the > errors your seeing as the last commit to the ocw repo came before that. > > Thanks, > Alex > > On Sun, Feb 12, 2017 at 12:33 PM, Todd Greenwood-Geer < > t.greenwoodg...@gmail.com> wrote: > > > I'd like to experiment with this workbench but so far, everything I have > > tried has been broken... > > > > REPRO 1: test fails > > ------------------------ > > > > $ git clone https://github.com/apache/climate.git > > $ cd climate > > $ git log | head > > commit 90b1b9ffe32d21af97f5437253f9621a14ec557f > > Merge: d98d172 21fe4ea > > Author: huikyole <huiky...@argo.jpl.nasa.gov> > > Date: Tue Jan 10 08:19:40 2017 -0800 > > > > CLIMATE-894 - Debugging regrid_spatial_mask > > > > $ ./test.sh > > ... > > > > ====================================================================== > > FAIL: test_odd_nice_intervals > > (ocw.tests.test_plotter.TestNiceIntervalsFunction) > > ---------------------------------------------------------------------- > > Traceback (most recent call last): > > File > > "/home/toddg/projects/climate/climate/ocw/tests/test_plotter.py", line > > 46, in test_odd_nice_intervals > > np.testing.assert_array_equal(result, expected_array) > > File > > "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/ > > numpy/testing/utils.py", > > line 871, in assert_array_equal > > verbose=verbose, header='Arrays are not equal') > > File > > "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/ > > numpy/testing/utils.py", > > line 796, in assert_array_compare > > raise AssertionError(msg) > > AssertionError: > > Arrays are not equal > > > > (mismatch 80.0%) > > x: array([-1.6, -0.8, 0. , 0.8, 1.6]) > > y: array([-2., -1., 0., 1., 2.]) > > > > ---------------------------------------------------------------------- > > Ran 206 tests in 126.232s > > > > FAILED (failures=1) > > > > REPRO 2: examples fail > > ------------------------------- > > (python27) [toddg@dino examples (master)]$ python > > simple_model_to_model_bias.py > > Loading > > /tmp/AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_tasmax.nc into > > an OCW Dataset Object > > KNMI_Dataset.values shape: (times, lats, lons) - (240, 201, 194) > > > > Loading /tmp/AFRICA_UC-WRF311_CTL_ERAINT_MM_50km-rg_1989-2008_tasmax.nc > > into an OCW Dataset Object > > WRF_Dataset.values shape: (times, lats, lons) - (240, 201, 194) > > > > Temporally Rebinning the Datasets to an Annual Timestep > > KNMI_Dataset.values shape: (20, 201, 194) > > WRF_Dataset.values shape: (20, 201, 194) > > > > > > The KNMI_Dataset spatial bounds (min_lat, max_lat, min_lon, max_lon) are: > > (-45.7599983215332, 42.2400016784668, -24.639999389648438, > > 60.279998779296875) > > > > The KNMI_Dataset spatial resolution (lat_resolution, lon_resolution) is: > > (0.43999863, 0.44000053) > > > > > > Spatially Regridding the KNMI_Dataset... > > Traceback (most recent call last): > > File "simple_model_to_model_bias.py", line 79, in <module> > > knmi_dataset = dsp.spatial_regrid(knmi_dataset, new_lats, new_lons) > > File > > "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/ > > ocw/dataset_processor.py", > > line 301, in spatial_regrid > > values_original.data[idx] = q_shifted[idx] > > File > > "/opt/anaconda3/envs/python27/lib/python2.7/site-packages/ > > numpy/ma/core.py", > > line 3168, in __getitem__ > > dout = self.data[indx] > > IndexError: in the future, 0-d boolean arrays will be interpreted as a > > valid boolean index > > > > -Todd > > > > > > -- > Alex Goodman > Data Scientist I > Science Data Modeling and Computing (398K) > Jet Propulsion Laboratory > California Institute of Technology > Tel: +1-818-354-6012 > > > > > -- Alex Goodman Data Scientist I Science Data Modeling and Computing (398K) Jet Propulsion Laboratory California Institute of Technology Tel: +1-818-354-6012
backports-abc==0.5 backports.ssl-match-hostname==3.5.0.1 basemap==1.0.8 beautifulsoup4==4.5.1 bottle==0.12.9 certifi==2017.1.23 cffi==1.6.0 coverage==4.2 coveralls==1.1 cryptography==1.4 cycler==0.10.0 docopt==0.6.2 enum34==1.1.6 esgf-pyclient==0.1.6 funcsigs==1.0.2 functools32==3.2.3.post2 future==0.16.0 gsw==3.0.3 gunicorn==19.6.0 h5py==2.6.0 idna==2.1 ipaddress==1.0.16 Jinja2==2.8 MarkupSafe==0.23 matplotlib==2.0.0 MechanicalSoup==0.6.0 mock==2.0.0 MyProxyClient==1.4.3 netCDF4==1.2.7 nose==1.3.7 numpy==1.12.0 ocw==1.2.0 PasteDeploy==1.5.2 pbr==1.10.0 podaacpy==1.7.0 pyasn1==0.1.9 pycparser==2.14 Pydap==3.2.0 pyOpenSSL==16.0.0 pyparsing==2.1.4 pyproj==1.9.5.1 pyshp==1.2.10 python-dateutil==2.5.3 pytz==2016.6.1 requests==2.11.1 scipy==0.18.1 singledispatch==3.4.0.3 six==1.10.0 subprocess32==3.2.7 tornado==4.4.2 waitress==0.9.0 WebOb==1.6.1 WebTest==2.0.21