Error about h5py #138

Open
opened 2024-01-29 01:09:22 +01:00 by koosq · 1 comment
koosq commented 2024-01-29 01:09:22 +01:00 (Migrated from github.com)

I installed the 0_setup.sh file according to the steps, but encountered a build problem with h5py at the last step. Has anyone encountered this before, and how can it be resolved?(Chip is M2)

2C318684-2BDD-4574-9D6D-3F94CDD203CC

I installed the 0_setup.sh file according to the steps, but encountered a build problem with h5py at the last step. Has anyone encountered this before, and how can it be resolved?(Chip is M2) ![2C318684-2BDD-4574-9D6D-3F94CDD203CC](https://github.com/chychkan/DeepFaceLab_MacOS/assets/97004477/0063489c-5a62-4208-b3b9-9e2d07948ec3)
jackuh105 commented 2024-03-05 05:16:18 +01:00 (Migrated from github.com)

I also have this issue and I have managed to run the scripts by taking a few steps, but some step may be unnecessary in solving the problem, so I'll list them below FYR. My environment is Python 3.9.18 and M3 Max.

  1. Install hdf5 via brew
brew install hdf5
  1. Set the path of hdf5 to env
export HDF5_DIR=$(brew --prefix hdf5)
  1. Modify the specified version of h5py in requirements_3.9_arm64.txt from h5py==3.1.0 to h5py==3.6.0
  2. Now you shall be able to run 0_setup.sh. However, when I run 2_extract_images_from_video_data_src.sh, I encountered another problem about the version of protobuf, I solve it by downgrading the protobuf. If you doesn't encounter it, just omit this step.
pip install --upgrade "protobuf<=3.20.1"

Hope this may help you.

I also have this issue and I have managed to run the scripts by taking a few steps, but some step may be unnecessary in solving the problem, so I'll list them below FYR. My environment is Python 3.9.18 and M3 Max. 1. Install `hdf5` via brew ```zsh brew install hdf5 ``` 2. Set the path of `hdf5` to env ```zsh export HDF5_DIR=$(brew --prefix hdf5) ``` 3. Modify the specified version of `h5py` in `requirements_3.9_arm64.txt` from `h5py==3.1.0` to `h5py==3.6.0` 4. Now you shall be able to run `0_setup.sh`. However, when I run `2_extract_images_from_video_data_src.sh`, I encountered another problem about the version of `protobuf`, I solve it by downgrading the `protobuf`. If you doesn't encounter it, just omit this step. ```zsh pip install --upgrade "protobuf<=3.20.1" ``` Hope this may help you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CalvinBackup/DeepFaceLab_MacOS#138