PyInstaller+ Python3.5 (h5py import error)

Laura Creighton lac at openend.se
Thu Sep 24 07:11:53 EDT 2015


In a message of Thu, 24 Sep 2015 02:58:35 -0700, Heli Nix writes:
>Thanks Christian, 
>
>It turned out that h5py.defs was not the only hidden import that I needed to add. 
>
>I managed to get it working with the follwoing command adding 4 hidden imports. 
>
>
>pyinstaller --hidden-import=h5py.defs --hidden-import=h5py.utils  --hidden-import=h5py.h5ac --hidden-import=h5py._proxy  test.py
>
>
>is there anyway that you can use to add all h5py submodules all together?
>
>Thanks, 
>

Yes.  You can use a hook file.
see: https://pythonhosted.org/PyInstaller/#using-hook-files

Laura




More information about the Python-list mailing list