Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hickle errors in combination with pyinstaller executables #163

Open
burnumburnum opened this issue Aug 22, 2022 · 1 comment
Open

hickle errors in combination with pyinstaller executables #163

burnumburnum opened this issue Aug 22, 2022 · 1 comment

Comments

@burnumburnum
Copy link

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

@telegraphic
Copy link
Owner

Hi @burnumburnum -- I don't have any experience with pyinstaller, assigning this to help-wanted tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants