HDF5 library version mismatched error

Installing and setting up FaceSwap
Forum rules
Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.
Locked
User avatar
Swappingfaces
Posts: 3
Joined: Fri Jun 26, 2020 5:52 pm
Answers: 1
Has thanked: 1 time

HDF5 library version mismatched error

Post by Swappingfaces »

Hello!
I'm trying to get started with faceswap but I'm running into some problems.
I'm not so used with the cmd line but have tried to google the answer.
When im trying to open the graphical interface for faceswap with the command "python faceswap.py gui" I get the following error message:

"Setting Faceswap backend to NVIDIA
06/26/2020 19:43:33 INFO Log level set to: INFO
Warning! ***HDF5 library version mismatched error***
The HDF5 header files used to compile this application do not match
the version used by the HDF5 library to which this application is linked.
Data corruption or segmentation faults may occur if the application continues.
This can happen when an application was compiled by one version of HDF5 but
linked with a different version of static or shared HDF5 library.
You should recompile the application or check your shared library related
settings such as 'LD_LIBRARY_PATH'.
You can, at your own risk, disable this warning by setting the environment
variable 'HDF5_DISABLE_VERSION_CHECK' to a value of '1'.
Setting it to 2 or higher will suppress the warning messages totally.
Headers are 1.10.4, library is 1.10.5"

As the last line says, the headers are 1.10.4 and library is 1.10.5.

I understand that i have a newer library and probably convert to a older version but im not quite sure how to do that. Should i just reinstall a older version or is ther a cmd command for it?
I have tried some commands to install the older version but I get other errors like: "The following packages are not available from current channels: - 1.10.4."

Does anyone know what to do?

Thanks in advance! :)
by Swappingfaces » Fri Jun 26, 2020 7:07 pm
I found the solution! The HDF5 version 1.10.5 was created by visual studio 2017.

The fix for my issue was to run the commands:
"pip uninstall h5py"
"pip install h5py"

Now I can open the graphical interface without problems :)
Go to full post

User avatar
bryanlyon
Site Admin
Posts: 322
Joined: Fri Jul 12, 2019 12:49 am
Answers: 27
Location: San Francisco
Has thanked: 3 times
Been thanked: 87 times
Contact:

Re: HDF5 library version mismatched error

Post by bryanlyon »

This is a strange one, the installer should have installed compatible versions. If you installed with the installer, first step would be to delete the environment and install again. If that doesn't work, we can troubleshoot your install and get valid versions installed, but it may take some work to get it right.

User avatar
Swappingfaces
Posts: 3
Joined: Fri Jun 26, 2020 5:52 pm
Answers: 1
Has thanked: 1 time

Re: HDF5 library version mismatched error

Post by Swappingfaces »

Thank you for the quick reply!

I did remove the enviroment and reinstalled everything and you are right that it installs the right verison.
"Downloading and Extracting Packages
hdf5-1.10.4 | 7.9 MB | ############################################################################ | 100%"

Can the problem be that i have previously downloaded a later version and it has priority?
I can not recall downloading it but it might follow with some other programs.

User avatar
Swappingfaces
Posts: 3
Joined: Fri Jun 26, 2020 5:52 pm
Answers: 1
Has thanked: 1 time

Re: HDF5 library version mismatched error

Post by Swappingfaces »

I found the solution! The HDF5 version 1.10.5 was created by visual studio 2017.

The fix for my issue was to run the commands:
"pip uninstall h5py"
"pip install h5py"

Now I can open the graphical interface without problems :)

Locked