ParlAI icon indicating copy to clipboard operation
ParlAI copied to clipboard

hdf5.h file not found.

Open fahr23 opened this issue 8 years ago • 6 comments

I am trying to setup ParlAI to ubuntu and mac os. I had following error in both operating configurations.

In file included from /var/folders/55/p9wjq0pn1vzg4rdpq_sxqzwc0000gn/T/easy_install-s03lcklg/h5py-2.7.1/h5py/defs.c:569: ./h5py/api_compat.h:27:10: fatal error: 'hdf5.h' file not found #include "hdf5.h" ^~~~~~~~ 1 warning and 1 error generated. error: Setup script exited with error: command '/usr/bin/clang' failed with exit status 1

fahr23 avatar Dec 31 '17 09:12 fahr23

Hi @fahr23, just to make sure we're on the same page, is this error appearing from pip install h5py?

alexholdenmiller avatar Jan 02 '18 16:01 alexholdenmiller

Hi @alexholdenmiller, just followed the following installation procedure. Thank you

Installing ParlAI Run the following commands to clone the repository and install ParlAI:

git clone https://github.com/facebookresearch/ParlAI.git ~/ParlAI cd ~/ParlAI; python setup.py develop

fahr23 avatar Jan 02 '18 18:01 fahr23

Sure thing--during the python setup.py develop phase, setup.py tries to install all of the requirements listed in the requirements file. One of them is h5py, and that seems to be failing on your machines. Can you try pip install h5py directly?

I tried pip uninstall h5py && pip install h5py on my mac and did not receive any errors.

alexholdenmiller avatar Jan 02 '18 19:01 alexholdenmiller

after separately run

pip install h5py

i can install successfully.

fahr23 avatar Jan 02 '18 19:01 fahr23

thank you

fahr23 avatar Jan 02 '18 19:01 fahr23

Great, thanks for reporting!

alexholdenmiller avatar Jan 02 '18 19:01 alexholdenmiller