-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Using pyinstaller to generate executables from python code, hickle throws errors on dumping an loading files while running the generated executable.
hickle.dump(anything , "D:\\anything.hkl")
Traceback (most recent call last):
File "script.py", line 4, in
File "hickle\hickle.py", line 247, in dump
File "hickle\hickle.py", line 190, in _dump
File "hickle\hickle.py", line 291, in create_hkl_dataset
TypeError: cannot unpack non-iterable NoneType object
[2388] Failed to execute script 'script' due to unhandled exception!
anything = hickle.load("D:\\anything.hkl")
Traceback (most recent call last):
File "hickle\hickle.py", line 564, in load
File "hickle\hickle.py", line 648, in _load
File "hickle\hickle.py", line 595, in load_dataset
File "hickle\hickle.py", line 464, in no_match_load
RuntimeError: Cannot load <HDF5 dataset "data": shape (), type "<i4"> data type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "script.py", line 4, in
File "hickle\hickle.py", line 574, in load
ValueError: Provided argument 'file_obj' does not appear to be a valid hickle file! (Cannot load <HDF5 dataset "data": shape (), type "<i4"> data type)
Failed to execute script 'script' due to unhandled exception!
I used python 3.7.3, hickle 4.0.4, h5py 2.10.0, pyinstaller 4.5.1 on Windows 10
and python 3.8.10, hickle 4.0.1, h5py 2.10.0, pyinstaller 4.5.1 on Ubuntu 20.04.
To generate the executable wit pyinstaller, I used the following code:
pyinstaller -D --noconfirm --paths venv\Lib\site-packages\ --name test_sw script.py