cas3ymau3 / netcdf4-python

Automatically exported from code.google.com/p/netcdf4-python
Other
0 stars 0 forks source link

tst_netcdftime.py :: UnboundLocalError: local variable 'dparse' referenced before assignment #182

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Install hdf5 1.8.11

2. Install netcdf4.3.0

CPPFLAGS=-I/usr/local/hdf5/include LDFLAGS=-L/usr/local/hdf5/lib ./configure 
--enable-netcdf-4 --enable-shared 
make check install

3.
export USE_NCCONFIG=1
export HDF5_DIR=/usr/local

What is the expected output? What do you see instead?
python run_all.py
..........E....................................
======================================================================
ERROR: test_select_nc (tst_netcdftime.TestDate2index)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kho/Desktop/netCDF4-1.0.4/test/tst_netcdftime.py", line 329, in test_select_nc
    millisecs = int(date2num(d,unix_epoch,calendar='proleptic_gregorian'))
  File "utils.pyx", line 123, in netCDF4.date2num (netCDF4.c:3541)
  File "utils.pyx", line 20, in netCDF4._dateparse (netCDF4.c:2558)
UnboundLocalError: local variable 'dparse' referenced before assignment

----------------------------------------------------------------------
Ran 47 tests in 7.843s

FAILED (errors=1)

netcdf4-python version: 1.0.4
HDF5 lib version:       1.8.11
netcdf lib version:     4.3.0

What version of the product are you using? On what operating system?

netcdf4-python version: 1.0.4

Please provide any additional information below.

Please tell me if this will affect reading/writing of netcdf4 files.
I am quite new to linux and tried to install this on centOS 5. Many of the 
programs there are out of date... I really want to use this.

Original issue reported on code.google.com by k1c2...@gmail.com on 17 May 2013 at 11:28

GoogleCodeExporter commented 8 years ago
this is fixed in SVN.  It will not affect the reading or writing of data.

Original comment by whitaker.jeffrey@gmail.com on 18 May 2013 at 1:35

GoogleCodeExporter commented 8 years ago
thank you very much for your help.

Original comment by k1c2...@gmail.com on 18 May 2013 at 2:32

GoogleCodeExporter commented 8 years ago

Original comment by whitaker.jeffrey@gmail.com on 26 Feb 2014 at 2:04