elliottd / GroundedTranslation

Multilingual image description
https://staff.fnwi.uva.nl/d.elliott/GroundedTranslation/
BSD 3-Clause "New" or "Revised" License
46 stars 25 forks source link

NotImplementedError: Only byte-string vlens are currently supported #12

Closed kashifshah closed 8 years ago

kashifshah commented 8 years ago

The following command generates an error in h5py special data type. python util/jsonmat2h5.py --path iaprtc12_eng

Loaded JSON file with 19625 entries Loaded visual features file with 19625 entries Traceback (most recent call last): File "util/jsonmat2h5.py", line 57, in dtype=h5py.special_dtype(vlen=unicode)) File "h5t.pyx", line 1437, in h5py.h5t.special_dtype (h5py/h5t.c:11775) NotImplementedError: Only byte-string vlens are currently supported

My system has following versions of dependencies installed: python 2.7 and 3 numpy '1.10.1' scipy 0.13.2 theano 0.7.0 h5py 2.0.1

and operating system is: Linux 3.8.0-42-generic #63~precise1-Ubuntu x86_64 x86_64 x86_64 GNU/Linux

Any idea where it is coming from?

Thanks, Kashif

elliottd commented 8 years ago

Hi Kashif,

It looks like vlen support for a wide range of data types was not implemented until h5py v2.3.0.

Could you try updating the version of h5py on your machine to a newer version? We have only tested v2.5.0 in our experiments.

kashifshah commented 8 years ago

Thanks Desmond, It was indeed because of h5py version, it works fine with 2.5.0