20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.7k stars 737 forks source link

Error with module h5py #872

Open asupeduer opened 2 years ago

asupeduer commented 2 years ago

I have some issue with h5py, on UE4.26 or 4.27, with tensorflow load or save weights file .h5 (h5py module). I trace the bug into h5py module and it appear the same error msg as "Error with module h5py #651".

show: LogPython: Error: File "C:/Unreal Projects/TEST/Python/Lib/site-packages\h5py__init__.py", line 34, in LogPython: Error: from . import version LogPython: Error: File "C:/Unreal Projects/TEST/Python/Lib/site-packages\h5py\version.py", line 17, in LogPython: Error: from h5py import h5 as _h5 LogPython: Error: File "h5py\h5.pyx", line 1, in init h5py.h5 LogPython: Error: ImportError: DLL load failed: The specified procedure could not be found.

I tried to install h5py v.2.7.0 but can't work on UE4.26-4.27, show build error!

And I wonder what if the path error when I install tensorflow? When I pip install tensorflow , I got the path waring msg as follow:

Installing collected packages: tensorflow WARNING: The scripts estimator_ckpt_converter.exe, saved_model_cli.exe, tensorboard.exe, tf_upgrade_v2.exe, tflite_convert.exe, toco.exe and toco_from_protos.exe are installed in 'D:\UE_4.27\Engine\Binaries\ThirdParty\Python3\Win64\Scripts' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed tensorflow-2.2.0 WARNING: You are using pip version 19.2.3, however version 21.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Thanks very much.