Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported HDF5 version: 1.10.0 #160

Open
kaismax opened this issue May 8, 2018 · 4 comments
Open

Unsupported HDF5 version: 1.10.0 #160

kaismax opened this issue May 8, 2018 · 4 comments

Comments

@kaismax
Copy link

kaismax commented May 8, 2018

th train.lua -h5_file ../out/h5/file.h5 -style_image images/styles/starry_night.jpg -style_image_size 384 -content_weights 1.0 -style_weights 5.0 -gpu 0
/home/kaismax/torch/install/bin/luajit: /home/kaismax/torch/install/share/lua/5.1/trepl/init.lua:389:
/home/kaismax/torch/install/share/lua/5.1/trepl/init.lua:389: /home/kaismax/torch/install/share/lua/5.1
/hdf5/ffi.lua:71: Unsupported HDF5 version: 1.10.0
i can't solve this problem.. help please ,,
$luarocks list
Installed rocks:
....
0-0 (installed) - /home/kaismax/torch/install/lib/luarocks/rocks
...

$ th

______ __ | Torch7
/_ / ________/ / | Scientific computing for Lua.
/ / / _ / __/ / _ \ | Type ? for help
/_/ _
// _//// | https://github.com/torch
| http://torch.ch

@Keloo
Copy link

Keloo commented Jun 7, 2018

Did you find any solution? I have the same problem

@Achhhe
Copy link

Achhhe commented Jul 16, 2018

the same problem to me

@emerth
Copy link

emerth commented Dec 29, 2018

I solved this problem by building HDF5 1.8.18 from source and installing it in /opt/hdf5-1.8.18.

wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.18/src/hdf5-1.8.18.tar.gz
tar -xzvf hdf5-1.8.18.tar.gz
cd hdf5-1.8.18
./configure --prefix=/opt/hdf5-1.8.18
make
make install

Building HDF5 prints an unholy amount of warnings from the compiler!

Then did the following:

export PATH=/opt/hdf5-1.8.18/bin:$PATH
export LD_LIBRARY_PATH=/opt/hdf5-1.8.18/lib:$LD_LIBRARY_PATH
luarocks remove hdf5
luarocks install hdf5
pip uninstall h5py
pip install h5py

You do this because luarocks is invoking HDF5's CC wrapper script named h5cc to run the C compiler and h5cc does the script-foo to link against it's version of the libs. In the output from the "luarocks install hdf5" look for confirmation of the HDF5 location used.

I expect you'll need to export these environment variables each session you run the lua scripts.

TBH I didn't bother digging into the pip reinstall except to note that afterwards the file "/usr/local/lib/python2.7/dist-packages/h5py/version.py" contains this line "api_version_tuple = (1,8)"

train.lua is currently grinding away at a dataset!

@HandsomeDevilv112
Copy link

this got me going immediately
google-deepmind/torch-hdf5#76 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants