Repository navigation
Logistic regression example not working #1
Description
Activity
HPAT needs to be rebuilt after installing h5py/HDF5:
LDSHARED="mpicxx -shared" CXX=mpicxx LD=mpicxx \ CC="mpicxx -std=c++11" python setup.py installOk, thanks, at least now I get a building error 😄
mpicxx -shared build/temp.linux-x86_64-3.6/hpat/_io.o -L/home/alanm/miniconda3/envs/HPAT/lib -lpython3.6m -o build/lib.linux-x86_64-3.6/hio.cpython-36m-x86_64-linux-gnu.so -lmpi -lhdf5 /usr/bin/ld: cannot find -lmpi collect2: error: ld returned 1 exit status error: command 'mpicxx' failed with exit status 1
Anyway I installed PyArrow as well, shall I get rid of it or keep it since I don't see it mentioned in the documentation?
You can remove
-lmpifromsetup.pyand try again. PyArrow should be ok.I tried on another machine was able to rebuild HPAT correctly by removing
-lmpi(on the other I still couldn't, I will retry from scratch), but when I launchmpirun -n 4 python examples/logistic_regression.pyI getOSError: Failed at nopython (convert DataFrames) Unable to open file (file signature not found)And it seems an HDF5 issue because when I check the file with
h5debug lr.hdf5I getHDF5-DIAG: Error detected in HDF5 (1.8.17) thread 140576896845568: #000: H5F.c line 604 in H5Fopen(): unable to open file major: File accessibilty minor: Unable to open file #001: H5Fint.c line 1087 in H5F_open(): unable to read superblock major: File accessibilty minor: Read failed #002: H5Fsuper.c line 277 in H5F_super_read(): file signature not found major: File accessibilty minor: Not an HDF5 file cannot open fileBy the way, while the linear regression example generates data by launching
python generate_data/gen_linear_regression.py, to generate data for logistic regression I had to do it from an interactive python session, and I get the same HDF5 error with the linear regression example.Seems like an issue with your HDF5 setup. Maybe the HDF5 library used in h5py doesn't match the HDF5 library in the system path. There might be file corruption or file system access issues also. Can you read and write HDF5 files using C code?
That's likely one issue. I'm currently trying installing HPAT without HDF5 support and to avoid problems with previous installs I'm doing it in a Docker container.
I'll let you know how it goes
The new installation provides the HDF5 package which avoids these issues. Closing. Feel free to reopen if you still have issues.
- added a commit that references this issue
on Oct 10, 2019 - added a commit that references this issue
on Sep 9, 2020 - added a commit that references this issue
on Jan 29, 2021 - added a commit that references this issue
on Feb 19, 2021 - added a commit that references this issue
on May 14, 2021
Hi, I have an issue running the logistic regression example, when running it after installing h5py as recommended on documentation I get this import error: