Tensorflow TypeError: Unable to convert function return value to a Python type! The signature was () -> handle #8001
Unanswered
skabirgithub
asked this question in
PyInstaller
Replies: 1 comment
-
See #7961 - for 2.14.0, you need to add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
File "tensorflow\python\framework\dtypes.py", line 37, in
TypeError: Unable to convert function return value to a Python type! The signature was
() -> handle
I have a hook file named hook-tensorflow.py:..................
from PyInstaller.utils.hooks import collect_all
def hook(hook_api):
packages = [
'tensorflow',
'tensorflow_core',
'astor'
]
for package in packages:
datas, binaries, hiddenimports = collect_all(package)
hook_api.add_datas(datas)
hook_api.add_binaries(binaries)
hook_api.add_imports(*hiddenimports)
Beta Was this translation helpful? Give feedback.
All reactions