Ubuntu:hdf5 Error: HDF5 header version does not match the HDF5 library

Source: Internet
Author: User
Tags python script

Today, when executing a Python script that uses HDF5, the following error is encountered

warning! HDF5 Library version mismatched error***The HDF5 header files used to compile this application DoNot matchthe version used by the HDF5 library towhichThis application is linked. Data corruption or segmentation faults may occurifThe application continues. This can happen when an application is compiled by one version of the HDF5 butlinked with a different version of static or SH Ared HDF5 Library. You should recompile the application or check your shared library relatedsettings such as'Ld_library_path'. Can, at your own risk, disable this warning by setting the environmentvariable'Hdf5_disable_version_check'to a value of'1'. Setting it to2or higher'll suppress the warning messages totally. Headers is1.8. One, Library is1.8.9SUMMARY of the HDF5 CONFIGURATION=================================General Information:-------------------HDF5 Version:1.8.9configured On:fri Dec -  A: Wu: -Cst -configured by: [email protected] Configure mode:production Host system:x86_64-unknown-linux-GNU Uname information:linux centos5x642.6. --348. El5 #1SMP Tue Jan8  -: -: -Est -x86_64 x86_64 x86_64 gnu/Linux Byte sex:little-endian libraries:installation point:/opt/anaconda1anaconda2anaconda3compiling Options:------------------compilation mode:production C Compiler:/usr/bin/GCC(GCC(GCC)4.1.2 20080704) Cflags:h5_cflags:-std=c99-pedantic-wall-wextra-wundef-wshadow-wpointer-arith-wbad-function-cast-wcast-qual-wcast-align-wwrite-strings-wconversion-waggregate-return-wstrict-prototypes- wmissing-prototypes-wmissing-declarations-wredundant-decls-wnested-externs-winline-wno-Long-Long-wfloat-equal-wmissing-format-attribute-wmissing-noreturn-wpacked-wdisabled-optimization-wformat=2-WUNREACHABLE-CODE-WENDIF-LABELS-WDECLARATION-AFTER-STATEMENT-WOLD-STYLE-DEFINITION-WINVALID-PCH- Wvariadic-macros-wnonnull-winit-self-wmissing-include-dirs-wswitch-default-wswitch-enum-wunused-macros- wunsafe-loop-optimizations-wc++-compat-wvolatile-register-var-o3-fomit-frame-pointer-finline-functions AM_CFLAGS:CPPFLAGS:H5_CPPFLAGS:-d_posix_c_source=199506L-dndebug-Uh5_debug_api am_cppflags:-d_largefile_source-d_largefile64_source-d_bsd_source Shared c library:yes Static c Library:no statically Linked executables:n o LDFLAGS:H5_LDFLAGS:AM_LDFLAGS:Extra Librar IES:-LPTHREAD-LZ-LRT-LM archiver:arranlib:ranlib debugged Packages:api tracing:nolanguages:----------Fortran:no C++: nofeatures:---------Parallel Hdf5:no High Level Library:yes Threadsafety:yes Default API mapping:v18 with Deprecated public symbols:yes I/O Filters (external): Deflate (zlib) I/O Filters (internal): Shuffle,fletcher32,nbit,scaleoffset Mpe:no Direc T Vfd:no dmalloc:noclearfileBuffers beforeWrite: Yes Using memory checker:no Function Stack tracing:no gpfs:no St rict file Format checks:no optimization instrumentation:no Large file Support (LFS): Yesbye ... Aborted (core dumped)

Yesterday was good, how today there is a problem. I recalled it. As if Anaconda had been updated yesterday, it may have caused a conflict, and it has been viewed, indeed. Anaconda installed in the HDF5 library is 1.8.9, and before through the PIP Intall h5py Library should be 1.8.11, a mountain not two tigers, so the old version deleted

sudo pip uninstall h5py

Press ENTER, and sure enough, there is a previous version of h5py under the Python system.

Uninstalling H5py:/usr/local/lib/python2.7/dist-packages/h5py-2.3.1. egg-Info/usr/local/lib/python2.7/dist-packages/h5py/__init__.py/usr/local/lib/python2.7/dist-packages/h5py/__init__.pyc/usr/local/lib/python2.7/dist-packages/h5py/_conv.so/usr/local/lib/python2.7/dist-packages/h5py/_errors.so/usr/local/lib/python2.7/dist-packages/h5py/_hl/__init__.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/__init__.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/attrs.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Attrs.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/base.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Base.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/dataset.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Dataset.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/datatype.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Datatype.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/dims.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Dims.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Files.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/filters.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Filters.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/group.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Group.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/selections.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Selections.pyc/usr/local/lib/python2.7/dist-packages/h5py/_hl/selections2.py/usr/local/lib/python2.7/dist-packages/h5py/_hl/Selections2.pyc/usr/local/lib/python2.7/dist-packages/h5py/_objects.so/usr/local/lib/python2.7/dist-packages/h5py/_proxy.so/usr/local/lib/python2.7/dist-packages/h5py/defs.so/usr/local/lib/python2.7/dist-packages/h5py/h5.so/usr/local/lib/python2.7/dist-packages/h5py/h5a.so/usr/local/lib/python2.7/dist-packages/h5py/h5ac.so/usr/local/lib/python2.7/dist-packages/h5py/h5d.so/usr/local/lib/python2.7/dist-packages/h5py/h5ds.so/usr/local/lib/python2.7/dist-packages/h5py/h5f.so/usr/local/lib/python2.7/dist-packages/h5py/h5fd.so/usr/local/lib/python2.7/dist-packages/h5py/h5g.so/usr/local/lib/python2.7/dist-packages/h5py/h5i.so/usr/local/lib/python2.7/dist-packages/h5py/h5l.so/usr/local/lib/python2.7/dist-packages/h5py/h5o.so/usr/local/lib/python2.7/dist-packages/h5py/h5p.so/usr/local/lib/python2.7/dist-packages/h5py/h5r.so/usr/local/lib/python2.7/dist-packages/h5py/h5s.so/usr/local/lib/python2.7/dist-packages/h5py/h5t.so/usr/local/lib/python2.7/dist-packages/h5py/h5z.so/usr/local/lib/python2.7/dist-packages/h5py/highlevel.py/usr/local/lib/python2.7/dist-packages/h5py/Highlevel.pyc/usr/local/lib/python2.7/dist-packages/h5py/ipy_completer.py/usr/local/lib/python2.7/dist-packages/h5py/Ipy_completer.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/__init__.py/usr/local/lib/python2.7/dist-packages/h5py/tests/__init__.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/common.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Common.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_attrs.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_attrs.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_attrs_data.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_attrs_data.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_base.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_base.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_dataset.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_dataset.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_datatype.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_datatype.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_dimension_scales.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_dimension_scales.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_file.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_file.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_group.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_group.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_h5.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5f.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_h5f.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5p.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_h5p.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_h5t.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_h5t.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_objects.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_objects.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_selections.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_selections.pyc/usr/local/lib/python2.7/dist-packages/h5py/tests/test_slicing.py/usr/local/lib/python2.7/dist-packages/h5py/tests/Test_slicing.pyc/usr/local/lib/python2.7/dist-packages/h5py/utils.so/usr/local/lib/python2.7/dist-packages/h5py/version.py/usr/local/lib/python2.7/dist-packages/h5py/version.pycproceed (y/n)?y successfully uninstalled h5py

Ubuntu:hdf5 Error: HDF5 header version does not match the HDF5 library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.